Skip to content

Commit

Permalink
Ensure git archives contains version info (#51)
Browse files Browse the repository at this point in the history
Using setuptools-scm to resolve the version of a source archive is not
possible unless that information is exported during the archival
process. This creates issues for downstream packagers as they must
manually add version information in their packages or switch to another
source.

See https://github.com/pypa/setuptools_scm/#git-archive for more
information.
  • Loading branch information
carlsmedstad committed Feb 2, 2023
1 parent 0ca1962 commit df7f420
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
ref-names: $Format:%D$
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 df7f420

Please sign in to comment.