Skip to content

Commit b60b40a

Browse files
committed
Use versioningit's git-archive method, to support zip archive installs
https://versioningit.readthedocs.io/en/stable/configuration.html#git-archive
1 parent bfd1069 commit b60b40a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitattributes

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

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@ non_interactive = true
252252
# enable_recursive_aliases = true
253253

254254
[tool.versioningit.vcs]
255-
method = "git"
255+
method = "git-archive"
256256
default-tag = "0.0.0"
257+
describe-subst = "$Format:%(describe:tags)$"
257258

258259
# ===================
259260
# Tasks configuration

0 commit comments

Comments
 (0)