Skip to content

Commit 3208ccb

Browse files
Merge pull request #7 from ISISComputingGroup/setuptools_scm_version
Set version from setuptools_scm
2 parents df9dbd8 + 80fabb9 commit 3208ccb

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,6 @@ cython_debug/
162162
.idea/
163163

164164
_build/
165+
166+
# setuptools_scm-generated file
167+
src/genie_python/_version.py

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "setuptools_scm>=8"]
2+
requires = ["setuptools>=64", "setuptools_scm>=8"]
33
build-backend = "setuptools.build_meta"
44

55

@@ -119,5 +119,6 @@ reportUntypedClassDecorator = true
119119
reportUntypedFunctionDecorator = true
120120

121121
[tool.setuptools_scm]
122+
version_file = "src/genie_python/_version.py"
122123

123124
[tool.build_sphinx]

src/genie_python/version.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
VERSION = "0.0.0.qualifier"
1+
from genie_python._version import version
2+
3+
__all__ = ["VERSION"]
4+
5+
# Shim for backwards-compatibility. Version now auto-generated by setuptools_scm.
6+
VERSION = version

0 commit comments

Comments
 (0)