Skip to content

Commit cabc062

Browse files
authored
📦 Enable support for git archive installs (#1095)
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
1 parent 95d8a76 commit cabc062

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎.git_archival.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4+
ref-names: $Format:%D$

‎.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Force LF line endings for text files
2+
* text=auto eol=lf
3+
4+
# Needed for setuptools-scm-git-archive
5+
.git_archival.txt export-subst

0 commit comments

Comments
 (0)