Merge pull request #7598 from nicoddemus/setuptools-scm-pyproject

Configure setuptools_scm using pyproject.toml
This commit is contained in:
Anthony Sottile 2020-08-01 19:17:33 -07:00 committed by GitHub
commit 701998bf2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 8 deletions

12
.readthedocs.yml Normal file
View File

@ -0,0 +1,12 @@
version: 2
python:
version: 3.7
install:
- requirements: doc/en/requirements.txt
- method: pip
path: .
formats:
- epub
- pdf

View File

@ -1,12 +1,15 @@
[build-system]
requires = [
# sync with setup.py until we discard non-pep-517/518
"setuptools>=40.0",
"setuptools-scm",
"setuptools>=42.0",
"setuptools-scm[toml]>=3.4",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/_pytest/_version.py"
[tool.pytest.ini_options]
minversion = "2.0"
addopts = "-rfEX -p pytester --strict-markers"

View File

@ -1,9 +1,4 @@
from setuptools import setup
def main():
setup(use_scm_version={"write_to": "src/_pytest/_version.py"})
if __name__ == "__main__":
main()
setup()