setup packaging and testing
This commit is contained in:
@@ -1,2 +1,17 @@
|
||||
# vpn-manager
|
||||
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
|
||||
```
|
||||
@@ -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"
|
||||
@@ -0,0 +1,3 @@
|
||||
def test_true():
|
||||
assert True
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
print("run")
|
||||
|
||||
if __name__=="__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user