Skip to content

Commit d19d2cf

Browse files
committed
setuptools_scm: support reading version from archive
Currently, it's not possible to `pip install` the `labgrid` package by using the GitHub archive URL. However, `setuptools_scm` supports this[1] with a few files added to the repo. [1]: https://setuptools-scm.readthedocs.io/en/latest/usage/#git-archives Signed-off-by: Alex Tercete <[email protected]>
1 parent d98677c commit d19d2cf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.git_archival.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=v[0-9]*)$

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

0 commit comments

Comments
 (0)