1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
[tox]
envlist = py{py3,37,38,39,310,311,312,313}{,-cryptographyMinimum}{,-useWheel}{,-randomorder},check-manifest,lint,py313-mypy,docs,coverage-report
[testenv]
allowlist_externals =
openssl
passenv =
ARCHFLAGS
CFLAGS
LC_ALL
LDFLAGS
PATH
LD_LIBRARY_PATH
TERM
RUSTUP_TOOLCHAIN
RUSTUP_HOME
extras =
test
deps =
coverage>=4.2
cryptographyMinimum: cryptography==41.0.5
randomorder: pytest-randomly
setenv =
# Do not allow the executing environment to pollute the test environment
# with extra packages.
PYTHONPATH=
PIP_NO_BINARY=cryptography
useWheel: PIP_NO_BINARY=
commands =
cryptographyMain: pip install -U git+https://github.com/pyca/cryptography.git
openssl version
coverage run --parallel -m OpenSSL.debug
coverage run --parallel -m pytest -v {posargs}
[testenv:lint]
basepython = python3
deps =
ruff
skip_install = true
commands =
ruff check .
ruff format --check .
[testenv:py313-mypy]
extras =
test
deps =
mypy
commands =
mypy src/ tests/
[testenv:check-manifest]
deps =
check-manifest
skip_install = true
commands =
check-manifest
[testenv:docs]
extras =
docs
commands =
sphinx-build -W -b html doc doc/_build/html {posargs}
[testenv:coverage-report]
deps = coverage[toml]>=4.2
skip_install = true
commands =
coverage combine
coverage report
|