Skip to content

Commit

Permalink
Add .git_archival.txt
Browse files Browse the repository at this point in the history
This will ensure that setuptools-scm also works with `git archive` outputs, and not only with repo clones.
  • Loading branch information
dweindl committed Nov 20, 2024
1 parent 1029797 commit 24ecba0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/python/.git_archival.txt export-subst
3 changes: 3 additions & 0 deletions src/python/.git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
2 changes: 1 addition & 1 deletion src/python/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mkdir $BUILD_DIR
# Copy code
cp -r \
$CODE_DIR \
"pyproject.toml" "MANIFEST.in" \
"pyproject.toml" "MANIFEST.in" ".git_archival.txt" \
"../../LICENSE" "../../README.md" \
$BUILD_DIR
# Remove link
Expand Down

0 comments on commit 24ecba0

Please sign in to comment.