We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ba8df commit 09265ebCopy full SHA for 09265eb
pyproject.toml
@@ -2,11 +2,14 @@
2
requires = [
3
# sync with setup.py until we discard non-pep-517/518
4
"setuptools>=40.0",
5
- "setuptools-scm",
+ "setuptools-scm>=3.4",
6
"wheel",
7
]
8
build-backend = "setuptools.build_meta"
9
10
+[tool.setuptools_scm]
11
+write_to = "src/_pytest/_version.py"
12
+
13
[tool.pytest.ini_options]
14
minversion = "2.0"
15
addopts = "-rfEX -p pytester --strict-markers"
setup.py
@@ -1,9 +1,4 @@
1
from setuptools import setup
-
-def main():
- setup(use_scm_version={"write_to": "src/_pytest/_version.py"})
if __name__ == "__main__":
- main()
+ setup()
0 commit comments