diff options
-rw-r--r-- | setup.py | 6 | ||||
-rw-r--r-- | tox.ini | 24 |
2 files changed, 14 insertions, 16 deletions
@@ -57,12 +57,11 @@ else: requirements.append("cffi>=1.4.1") setup_requirements.append("cffi>=1.4.1") -# If you add a new dep here you probably need to add it in the tox.ini as well test_requirements = [ "pytest", "pretend", "iso8601", - "hypothesis", + "hypothesis>=1.11.4", "pyasn1_modules", ] @@ -308,6 +307,9 @@ setup( install_requires=requirements, tests_require=test_requirements, + extras_require={ + "test": test_requirements, + }, # for cffi zip_safe=False, @@ -4,12 +4,8 @@ envlist = py26,py27,pypy,py33,py34,py35,docs,pep8,py3pep8 [testenv] # If you add a new dep here you probably need to add it in setup.py as well deps = + .[test] coverage - iso8601 - pretend - pytest - hypothesis>=1.11.4 - pyasn1_modules ./vectors passenv = ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH USERNAME commands = @@ -22,6 +18,15 @@ commands = coverage combine coverage report -m +# This target disables coverage on pypy because of performance problems with +# coverage.py on pypy. +[testenv:pypy-nocoverage] +basepython = pypy +commands = + pip list + python -c "from cryptography.hazmat.backends.openssl.backend import backend; print(backend.openssl_version_text())" + py.test --capture=no --strict {posargs} + [testenv:docs] deps = doc8 @@ -46,15 +51,6 @@ basepython = python2.7 commands = sphinx-build -W -b linkcheck docs docs/_build/html -# This target disables coverage on pypy because of performance problems with -# coverage.py on pypy. -[testenv:pypy-nocoverage] -basepython = pypy -commands = - pip list - python -c "from cryptography.hazmat.backends.openssl.backend import backend; print(backend.openssl_version_text())" - py.test --capture=no --strict {posargs} - [testenv:pep8] deps = flake8 |