Don't use setup.py in doc tests (#8820)

This commit is contained in:
Alex Gaynor 2023-04-24 20:10:54 -06:00 committed by GitHub
parent 392835b8a4
commit 9d70b87ff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# This is named ambigiously, but it's a pip constraints file, named like a
# requirements file so dependabot will update the pins.
# It was originally generated with;
# pip-compile --extra=docs --extra=docstest --extra=pep8test --extra=test --extra=test-randomorder --extra=nox --resolver=backtracking --strip-extras --unsafe-package=cffi --unsafe-package=pycparser --unsafe-package=setuptools pyproject.toml
# pip-compile --extra=docs --extra=docstest --extra=pep8test --extra=test --extra=test-randomorder --extra=nox --extra=sdist --resolver=backtracking --strip-extras --unsafe-package=cffi --unsafe-package=pycparser --unsafe-package=setuptools pyproject.toml
# and then manually massaged to add version specifiers to packages whose
# versions vary by Python version
@ -16,7 +16,9 @@ black==23.3.0
bleach==6.0.0
# via readme-renderer
build==0.10.0
# via check-manifest
# via
# check-manifest
# cryptography (pyproject.toml)
certifi==2022.12.7
# via requests
charset-normalizer==3.1.0

View file

@ -106,7 +106,7 @@ def docs(session: nox.Session) -> None:
# This is in the docs job because `twine check` verifies that the README
# is valid reStructuredText.
session.run("python", "setup.py", "sdist")
session.run("python", "-m", "build", "--sdist")
session.run("twine", "check", "dist/*")

View file

@ -80,7 +80,7 @@ test = [
test-randomorder = ["pytest-randomly"]
docs = ["sphinx >=5.3.0", "sphinx-rtd-theme >=1.1.1"]
docstest = ["pyenchant >=1.6.11", "twine >=1.12.0", "sphinxcontrib-spelling >=4.0.1"]
sdist = ["setuptools_rust >=0.11.4"]
sdist = ["build"]
pep8test = ["black", "ruff", "mypy", "check-manifest"]
[tool.black]