- updated CI configs so that Python 3.2 can actually finish running the test suite without crashing since it is stuck on an older version of Cryptography - added additional tests to test setup.py on all versions of Python after I noticed that a recent change would have made it break on Python 3.2 - enum34 should no longer be installed needlessly on Python 3.4 or newer - added --no-cache-dir to tox's call to pip to install dependencies needed for testing
63 lines
1.2 KiB
INI
63 lines
1.2 KiB
INI
[tox]
|
|
envlist = pypy, pypy3, py27, py32, py33, py34, pep8, setup34, setup33, setup32, setup27
|
|
skipsdist = True
|
|
|
|
[pytest]
|
|
addopts = -vv -s --color=yes
|
|
norecursedirs = testdata
|
|
|
|
[flake8]
|
|
exclude = .git,.idea,__pycache__,.tox,tests/*,docs/*,test_load_asc_bench.py
|
|
ignore = E201,E202,E221,E251,E265,F821,N805
|
|
max-line-length = 160
|
|
|
|
[testenv]
|
|
passenv = HOME ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH PATH
|
|
deps =
|
|
py{py,py3,27,33,34}: cryptography>=0.8
|
|
py32: cryptography>=0.8,<0.9
|
|
py32: cffi<=1.1.0
|
|
enum34
|
|
pyasn1
|
|
six>=1.7.2
|
|
singledispatch
|
|
pytest
|
|
pytest-cov
|
|
install_command = pip install {opts} --no-cache-dir {packages}
|
|
commands =
|
|
py.test --cov pgpy --cov-report term-missing tests/
|
|
|
|
[test-setup]
|
|
commands =
|
|
pip install -e .
|
|
rm -rf PGPy.egg-info
|
|
|
|
[testenv:setup34]
|
|
recreate = True
|
|
basepython = python3.4
|
|
commands = {[test-setup]commands}
|
|
|
|
[testenv:setup33]
|
|
recreate = True
|
|
basepython = python3.3
|
|
commands = {[test-setup]commands}
|
|
|
|
[testenv:setup32]
|
|
recreate = True
|
|
basepython = python3.2
|
|
commands = {[test-setup]commands}
|
|
|
|
[testenv:setup27]
|
|
recreate = True
|
|
deps = pip
|
|
basepython = python2.7
|
|
commands = {[test-setup]commands}
|
|
|
|
[testenv:pep8]
|
|
basepython = python3.4
|
|
deps =
|
|
flake8
|
|
pep8-naming
|
|
commands =
|
|
flake8
|