• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[tox]
2envlist = {pypy,pypy3,py27,py35,py36,py37,py38,py39}{,-cryptographyMaster,-cryptographyMinimum}{,-randomorder},py37-twistedMaster,pypi-readme,check-manifest,flake8,docs,coverage-report
3
4[testenv]
5whitelist_externals =
6    openssl
7passenv = ARCHFLAGS CFLAGS LC_ALL LDFLAGS PATH LD_LIBRARY_PATH TERM
8extras =
9    test
10deps =
11    coverage>=4.2
12    cryptographyMaster: git+https://github.com/pyca/cryptography.git
13    cryptographyMinimum: cryptography==3.2
14    randomorder: pytest-randomly
15setenv =
16    # Do not allow the executing environment to pollute the test environment
17    # with extra packages.
18    PYTHONPATH=
19    PIP_NO_BINARY=cryptography
20commands =
21    openssl version
22    coverage run --parallel -m OpenSSL.debug
23    coverage run --parallel -m pytest -v {posargs}
24
25[testenv:py37-twistedMaster]
26deps =
27    Twisted[all_non_platform] @ git+https://github.com/twisted/twisted
28setenv =
29passenv = ARCHFLAGS CFLAGS LC_ALL LDFLAGS PATH LD_LIBRARY_PATH TERM
30commands =
31    python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))"
32    python -c "import cryptography; print(cryptography.__version__)"
33    python -m twisted.trial --reporter=text twisted
34
35[testenv:flake8]
36basepython = python3
37deps =
38    black
39    flake8
40skip_install = true
41commands =
42    black --check .
43    flake8 .
44
45[testenv:pypi-readme]
46deps =
47    readme_renderer
48skip_install = true
49commands =
50    python setup.py check -r -s
51
52[testenv:check-manifest]
53deps =
54    check-manifest
55skip_install = true
56commands =
57    check-manifest
58
59[testenv:docs]
60extras =
61    docs
62basepython = python2.7
63commands =
64     sphinx-build -W -b html doc doc/_build/html
65
66[testenv:coverage-report]
67deps = coverage>=4.2
68skip_install = true
69commands =
70    coverage combine
71    coverage report
72
73[flake8]
74ignore = E203,W503,W504
75