Fix a few dependencies; clean up setup.py when moving to pyproject.toml

This commit is contained in:
Pim van Pelt
2025-11-09 05:24:29 +01:00
parent e106cbac47
commit b4652c6d93
2 changed files with 10 additions and 14 deletions

View File

@@ -1,6 +1,13 @@
[project]
name = "vppcfg"
dynamic = ["version"]
dependencies = [
"requests",
"importlib-metadata; python_version >= '3.8'",
"yamale",
"netaddr",
"vpp_papi",
]
authors = [
{ name="Pim van Pelt", email="pimg@ipng.ch" }
]
@@ -14,6 +21,9 @@ classifiers = [
license = "Apache-2.0"
license-files = ["LICENSE"]
[project.scripts]
vppcfg = "vppcfg.vppcfg:main"
[project.urls]
Homepage = "https://git.ipng.ch/ipng/vppcfg"

View File

@@ -9,21 +9,7 @@ with open(version_file) as f:
exec(f.read())
setup(
name="vppcfg",
version=__version__,
install_requires=[
"requests",
'importlib-metadata; python_version >= "3.8"',
"yamale",
"netaddr",
"vpp_papi",
],
packages=["vppcfg", "vppcfg/config", "vppcfg/vpp"],
entry_points={
"console_scripts": [
"vppcfg = vppcfg.vppcfg:main",
]
},
test_suite="vppcfg.config",
package_data={"vppcfg": ["*.yaml"]},
)