Skip to content

Commit 5c7a7e8

Browse files
committed
refactor(pyproject): use setuptools_scm for git-based version
1 parent f0daff0 commit 5c7a7e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ dev = [
2323
"black",
2424
"build",
2525
"flake8",
26-
"pre-commit"
26+
"pre-commit",
27+
"setuptools_scm>=8"
2728
]
2829
test = [
2930
"coverage",
@@ -35,7 +36,7 @@ test = [
3536
compiler-admin = "compiler_admin.main:main"
3637

3738
[build-system]
38-
requires = ["setuptools>=64", "wheel", "setuptools-git-versioning<2"]
39+
requires = ["setuptools>=65", "setuptools-scm>=8"]
3940
build-backend = "setuptools.build_meta"
4041

4142
[tool.black]
@@ -63,6 +64,5 @@ norecursedirs = [
6364
".vscode",
6465
]
6566

66-
[tool.setuptools-git-versioning]
67-
enabled = true
68-
dev_template = "{tag}+{ccount}.{sha}"
67+
[tool.setuptools_scm]
68+
# intentionally left blank, but we need the section header to activate the tool

0 commit comments

Comments
 (0)