Skip to content

Commit 84868bb

Browse files
committed
📦 Enable support for versioning Git archives
It's a follow-up to #735 that lacks this property. It's also an internal change. It essentially allows one to ``` $ pip install https://github.com/antonbabenko/pre-commit-terraform/archive/ae5057d.zip ``` and get a correctly computed version in the installed metadata. [1]: https://setuptools-scm.rtfd.io/en/latest/usage/#git-archives
1 parent e251eb2 commit 84868bb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.git_archival.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true)$

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

0 commit comments

Comments
 (0)