Skip to content

Commit 24ecba0

Browse files
committed
Add .git_archival.txt
This will ensure that setuptools-scm also works with `git archive` outputs, and not only with repo clones.
1 parent 1029797 commit 24ecba0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.gitattributes

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

src/python/.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,match=*[0-9]*)$

src/python/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mkdir $BUILD_DIR
2525
# Copy code
2626
cp -r \
2727
$CODE_DIR \
28-
"pyproject.toml" "MANIFEST.in" \
28+
"pyproject.toml" "MANIFEST.in" ".git_archival.txt" \
2929
"../../LICENSE" "../../README.md" \
3030
$BUILD_DIR
3131
# Remove link

0 commit comments

Comments
 (0)