Skip to content

Commit

Permalink
Configure git-archive for setuptools_scm
Browse files Browse the repository at this point in the history
Trying to install zipped archives from Github would fail because
`_version.py` does not exist, but git>=2.35 and setuptools_scm>=7 can
store the version in `.git_archival.txt` upon creating the archive.
  • Loading branch information
pfheatwole committed Jul 10, 2022
1 parent 12cca5f commit 0fdec89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe)$
ref-names: $Format:%D$
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=51", "setuptools_scm>=6.2"]
requires = ["setuptools>=51", "setuptools_scm>=7"]
build-backend = "setuptools.build_meta"

[tool.isort]
Expand Down

0 comments on commit 0fdec89

Please sign in to comment.