setup packaging and testing

This commit is contained in:
Fedor Lyanguzov
2024-12-19 20:38:06 +03:00
parent f5354e8ff8
commit b13c53686a
5 changed files with 55 additions and 0 deletions
+15
View File
@@ -1,2 +1,17 @@
# vpn-manager # vpn-manager
Manage WireGuard VPN peers (both server and clients) Manage WireGuard VPN peers (both server and clients)
# Development
To start developing:
```
python -m venv .venv
source .venv/Scripts/activate
pip install -e .
# work related commands here
deactivate
```
To run tests:
```
pytest
```
+28
View File
@@ -0,0 +1,28 @@
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["vpn_manager"]
[project]
name = "vpn-manager"
version = "2024.12.0a"
requires-python = ">=3.8"
dependencies = ["click>=8.1"]
authors = [
{name = "Fedor Lyanguzov"},
]
license = {file = "LICENSE"}
readme = "README.md"
description = "Manage WireGuard VPN peers (both server and clients)"
[project.optional-dependencies]
test = ["pytest"]
lint = [
"black",
"flake8"
]
[project.scripts]
example = "vpn_manager.__main__:main"
+3
View File
@@ -0,0 +1,3 @@
def test_true():
assert True
View File
+9
View File
@@ -0,0 +1,9 @@
def main():
print("run")
if __name__=="__main__":
main()