mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Don't use setup.py in doc tests (#8820)
This commit is contained in:
parent
392835b8a4
commit
9d70b87ff5
3 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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/*")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue