Skip to content

Commit 3b8dab3

Browse files
authored
📦 Support Versioning in Git Archives (#187)
Following https://scikit-hep.org/developer/packaging#versioning-mediumhigh-priority, this PR adds the necessary steps to allow git archives (including the ones generated from GitHub) to also support versioning. This requires `setuptools_scm>=7`. Signed-off-by: Lukas Burgholzer <lukas.burgholzer@jku.at>
1 parent 8379249 commit 3b8dab3

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.git_archival.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4+
ref-names: $Format:%D$

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
test/circuits/** linguist-vendored
2+
.git_archival.txt export-subst

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"setuptools>=61",
4-
"setuptools_scm[toml]>=6.4",
4+
"setuptools_scm[toml]>=7",
55
"ninja>=1.10; sys_platform != 'win32'",
66
"cmake>=3.14",
77
]

0 commit comments

Comments
 (0)