diff options
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pyproject.toml b/pyproject.toml index ac28b6e..c839da5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,9 @@ [build-system] -requires = ["setuptools>=61"] -build-backend = "setuptools.build_meta" +requires = ["setuptools>=61", "setuptools-git-versioning>=1.8"] +build-backend = "setuptools.build_meta:__legacy__" [project] name = "snekbox" -version = "1.0.0" description = "HTTP REST API for sanboxed execution of arbitrary Python code." readme = "README.md" license = {text = "MIT"} @@ -22,6 +21,7 @@ classifiers = [ "Topic :: Security", "Topic :: Software Development :: Interpreters", ] +dynamic = ["version"] requires-python = ">=3.10" dependencies = [ @@ -45,6 +45,10 @@ snekbox = "snekbox.__main__:main" [tool.setuptools] packages = ["snekbox"] +[tool.setuptools-git-versioning] +enabled = true +version_callback = "scripts.version:get_version" + [tool.coverage.report] exclude_lines = [ "pragma: no cover", |