Skip to content

Commit ca6ab21

Browse files
committed
Add fallback version for setuptools_scm
This will work even from a git archive or when git is not installed. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent d6fe59f commit ca6ab21

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Ignore all Git auto CR/LF line endings conversions
22
* -text
3+
pyproject.toml export-subst

Diff for: pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ requires = ["setuptools >= 50", "wheel", "setuptools_scm[toml] >= 4"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]
6+
fallback_version = "v9999.$Format:%h-%cs$"
67

78
[tool.pytest.ini_options]
89
norecursedirs = [

0 commit comments

Comments
 (0)