summaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2024-07-18 20:53:39 (GMT)
committerMats Wichmann <mats@linux.com>2024-07-19 14:10:12 (GMT)
commitec3f26db2ea892005e5fe59b1ba7ee2ad2bac3c2 (patch)
treeeea318aab3d0d530fa1dc75d9113c849c19eaed4 /pyproject.toml
parent97366202220a4e62ce2b621b85dd5b9c7ca32585 (diff)
downloadSCons-ec3f26db2ea892005e5fe59b1ba7ee2ad2bac3c2.zip
SCons-ec3f26db2ea892005e5fe59b1ba7ee2ad2bac3c2.tar.gz
SCons-ec3f26db2ea892005e5fe59b1ba7ee2ad2bac3c2.tar.bz2
Switch scons build to use setuptools version hook [skip appveyor]
The stanza we used, still published in the Python packaging docs, is now considered the least desirable of the alternatives for keeping a "single package version", so update to a better one. Note there's what's considered a "better" one than this, but it requires Python 3.8 ("provisional" until 3.10) or a backport of importlib.metadata. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 60bc9e6..cb824b7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -52,6 +52,9 @@ zip-safe = false
include-package-data = true
license-files = ["LICENSE"]
+[tool.setuptools.dynamic]
+version = {attr = "SCons.__version__"}
+
[tool.setuptools.packages.find]
exclude = ["template"]
namespaces = false