Skip to content

Commit

Permalink
📦 Enable support for git archive installs (#1095)
Browse files Browse the repository at this point in the history
This patch enables the end-users to succeed installing from GitHub
source Git archive URLs, letting `setuptools-scm` calculate the
distribution version correctly, including the exports of non-tagged
commits[1].

[1] https://github.com/pypa/setuptools_scm#git-archives
  • Loading branch information
webknjaz authored Feb 2, 2023
1 parent 95d8a76 commit cabc062
Show file tree
Hide file tree
Showing 2 changed files with 9 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$
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Force LF line endings for text files
* text=auto eol=lf

# Needed for setuptools-scm-git-archive
.git_archival.txt export-subst

0 comments on commit cabc062

Please sign in to comment.