Skip to content

Commit f62b847

Browse files
committed
Enable dynamic versioning via setuptools-scm in pyproject.toml
Add [project] section with dynamic versioning support using setuptools-scm as required by setuptools-scm>=7. - Declares `dynamic = ["version"]` under [project] to comply with PEP 621. - Ensures version is derived automatically from VCS tags. - Aligns with modern setuptools configuration practices.
1 parent adb329e commit f62b847

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pyproject.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1+
[project]
2+
name = "python-xmlsec"
3+
dynamic = ["version"]
4+
15
[build-system]
2-
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4", "pkgconfig>=1.5.1", "lxml>=3.8, !=4.7.0"]
6+
requires = [
7+
"setuptools>=42",
8+
"wheel",
9+
"setuptools_scm[toml]>=3.4",
10+
"pkgconfig>=1.5.1",
11+
"lxml>=3.8, !=4.7.0"
12+
]
13+
build-backend = "setuptools.build_meta"
314

415
[tool.mypy]
516
files = ['src']

0 commit comments

Comments
 (0)