diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 39 |
1 files changed, 14 insertions, 25 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = {pypy,pypy3,py27,py34,py35,py36,py37}{,-cryptographyMaster,-cryptographyMinimum},py27-twistedMaster,pypi-readme,check-manifest,flake8,docs,coverage-report +envlist = {pypy,pypy3,py27,py35,py36,py37,py38,py39}{,-cryptographyMaster,-cryptographyMinimum}{,-randomorder},py37-twistedMaster,pypi-readme,check-manifest,flake8,docs,coverage-report [testenv] whitelist_externals = @@ -10,7 +10,8 @@ extras = deps = coverage>=4.2 cryptographyMaster: git+https://github.com/pyca/cryptography.git - cryptographyMinimum: cryptography==2.3.0 + cryptographyMinimum: cryptography==3.2 + randomorder: pytest-randomly setenv = # Do not allow the executing environment to pollute the test environment # with extra packages. @@ -21,40 +22,25 @@ commands = coverage run --parallel -m OpenSSL.debug coverage run --parallel -m pytest -v {posargs} -[testenv:py27-twistedMaster] +[testenv:py37-twistedMaster] deps = - # [tls,conch] syntax doesn't work here so we enumerate all dependencies. - git+https://github.com/twisted/twisted - idna - service_identity - bcrypt + Twisted[all_non_platform] @ git+https://github.com/twisted/twisted +setenv = passenv = ARCHFLAGS CFLAGS LC_ALL LDFLAGS PATH LD_LIBRARY_PATH TERM commands = python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))" python -c "import cryptography; print(cryptography.__version__)" python -m twisted.trial --reporter=text twisted -[testenv:py35-urllib3Master] -basepython=python3.5 -deps = - pyasn1 - ndg-httpsclient -passenv = ARCHFLAGS CFLAGS LC_ALL LDFLAGS PATH LD_LIBRARY_PATH TERM TRAVIS_INFRA -whitelist_externals = - rm -commands = - python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))" - python -c "import cryptography; print(cryptography.__version__)" - {toxinidir}/.travis/install_urllib3.sh - pytest urllib3/test - rm -rf ./urllib3 - [testenv:flake8] +basepython = python3 deps = - flake8 + black + flake8 skip_install = true commands = - flake8 src tests examples setup.py + black --check . + flake8 . [testenv:pypi-readme] deps = @@ -83,3 +69,6 @@ skip_install = true commands = coverage combine coverage report + +[flake8] +ignore = E203,W503,W504 |