Skip to content

Commit 5e25e47

Browse files
committed
MNT: add static configuration for setuptools-scm
1 parent 2b5cbbc commit 5e25e47

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"setuptools>=61.2",
4-
"setuptools_scm>=6.2",
4+
"setuptools_scm>=8.0.0",
55
"wheel",
66
"jinja2>=2.10.3",
77
"numpy>=2.0.0rc1",
@@ -47,6 +47,9 @@ include-package-data = false
4747
exclude = ["erfa._dev"]
4848
namespaces = false
4949

50+
[tool.setuptools_scm]
51+
version_file = "erfa/_version.py"
52+
5053
[tool.pytest.ini_options]
5154
minversion = "4.6"
5255
testpaths = ["erfa", "docs", "README.rst"]

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ def get_extensions():
198198
liberfadir=LIBERFADIR)
199199

200200
use_scm_version = {
201-
'write_to': os.path.join('erfa', '_version.py'),
202201
'version_scheme': guess_next_dev,
203202
}
204203

0 commit comments

Comments
 (0)