Skip to content

Commit 3eb3d51

Browse files
authored
feat(build): Add Git archives version files (deepmodeling#3669)
When downloading the source code of a branch or a release from GitHub or the mirror, there is no Git version information, making setuptools-scm unable to read the version. The alternative way is to add a git archive file supported by setuptools-scm. See: * https://setuptools-scm.readthedocs.io/en/latest/usage/#git-archives (available in setuptools-scm 7.0.0) * https://git-scm.com/docs/git-archive#Documentation/git-archive.txt-export-subst * https://docs.github.com/en/repositories/working-with-files/using-files/downloading-source-code-archives Generated by the task: njzjz-bot/njzjz-bot#4.
1 parent a26b680 commit 3eb3d51

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# do not show up detailed difference on GitHub
22
source/3rdparty/* linguist-generated=true
33
source/3rdparty/README.md linguist-generated=false
4+
.git_archival.txt export-subst

0 commit comments

Comments
 (0)