Skip to content

Commit

Permalink
setuptools_scm: support reading version from archive
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
alextercete committed Jan 7, 2025
1 parent d98677c commit d19d2cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=v[0-9]*)$
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst

0 comments on commit d19d2cf

Please sign in to comment.