Skip to content

Commit e787749

Browse files
committed
pyproject.toml: new file
Add a pyproject.toml file, so it becomes possible to build python whl packages with: $ python3 -m build With this change, Linux distributions could package PyHSS similar to other python projects, it should be possible to install it via pip (from the git repo), and the whl can be used to directly install PyHSS into a venv. Upstreaming: nickvsnetworking#258
1 parent a226cc8 commit e787749

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ lib/__pycache__/milenage.cpython-36.pyc
2828
.gitignore
2929
.vscode/settings.json
3030
.cspell/custom-dictionary-workspace.txt
31+
pyhss.egg-info

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "pyhss"
7+
version = "1.0.2"
8+
9+
[project.scripts]
10+
pyhss_api = "pyhss.services.apiService:main"
11+
pyhss_database = "pyhss.services.databaseService:main"
12+
pyhss_diameter = "pyhss.services.diameterService:main"
13+
pyhss_geored = "pyhss.services.georedService:main"
14+
pyhss_gsup = "pyhss.services.gsupService:main"
15+
pyhss_hss = "pyhss.services.hssService:main"
16+
pyhss_log = "pyhss.services.logService:main"
17+
pyhss_metric = "pyhss.services.metricService:main"
18+
19+
[tool.setuptools]
20+
packages = [
21+
"pyhss.lib",
22+
"pyhss.lib.gsup",
23+
"pyhss.lib.gsup.controller",
24+
"pyhss.lib.gsup.protocol",
25+
"pyhss.services",
26+
"pyhss.tools",
27+
]
28+
29+
[tool.setuptools.package-dir]
30+
pyhss = ""

0 commit comments

Comments
 (0)