Skip to content

Commit

Permalink
Support for building from git archives
Browse files Browse the repository at this point in the history
`.git_archival.txt` and `.gitattributes` were added so that git archives contain the necessary metadata for setuptools-scm. (See https://setuptools-scm.readthedocs.io/en/latest/usage/#git-archives).

Pull request #30
  • Loading branch information
mitya57 authored Jun 29, 2024
1 parent 939a318 commit a52feb4
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=*[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 a52feb4

Please sign in to comment.