Modernize python setup

Use pyproject.toml instead of deprecated setup.py arguments and unpin dependencies in tox.ini.
This commit is contained in:
link2xt
2021-10-27 20:58:36 +00:00
parent 300f5be4f3
commit 5b5b26122e
3 changed files with 9 additions and 10 deletions

7
python/pyproject.toml Normal file
View File

@@ -0,0 +1,7 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2", "cffi>=1.0.0"]
[tool.setuptools-scm]
root = ".."
tag_regex = '^(?P<prefix>py-)?(?P<version>[^\+]+)(?P<suffix>.*)?$'
git_describe_command = "git describe --dirty --tags --long --match py-*.*"