📦 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
This commit is contained in:
Sviatoslav Sydorenko 2023-02-02 06:50:41 +01:00 committed by GitHub
parent 95d8a76fb7
commit cabc0621b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

4
.git_archival.txt Normal file
View File

@ -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
.gitattributes vendored Normal file
View File

@ -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