Skip to content

Commit 6a86ea2

Browse files
committed
Revert "ci: replace setuptools_scm write_to with version_file"
To maintain Python 3.7 compatibility, revert the version file location reference back to `write_to` under the `tool.setuptools_scm` section. Without doing so, the Python 3.7 test job fails with an error like the following: ``` return cls(relative_to=name, **args) TypeError: __init__() got an unexpected keyword argument 'version_file' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. ``` This reverts commit bd1ce14.
1 parent 537da12 commit 6a86ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dynamic = ["version"]
1919
testing = ["pytest", "pytest-cov", "black", "flake8", "flake8-pyproject", "isort"]
2020

2121
[tool.setuptools_scm]
22-
version_file = "si_prefix/_version.py"
22+
write_to = "si_prefix/_version.py"
2323

2424
[tool.setuptools]
2525
packages = ["si_prefix"]

0 commit comments

Comments
 (0)