-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
82 lines (71 loc) · 1.73 KB
/
tox.ini
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
71
72
73
74
75
76
77
78
79
80
81
82
[tox]
envlist = pypy, pypy3, py27, py34, py35, py36, py37, pep8, setup37, setup36, setup35, setup34, setup27
skipsdist = True
[pytest]
addopts = -vv -r a -s --color=yes
norecursedirs = testdata
testpaths = tests
markers =
regression: mark test as a regression test.
[flake8]
exclude = .git,.idea,__pycache__,.tox,tests/*,docs/*,test_load_asc_bench.py
ignore = E201,E202,E221,E251,E265,F403,F821,N805
max-line-length = 160
[testenv]
passenv = HOME ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH PATH
deps =
cryptography>=2.6
enum34
gpg==1.8.0
pyasn1
six>=1.9.0
singledispatch
pytest
pytest-cov
pytest-ordering
install_command = pip install {opts} --no-cache-dir {packages}
commands =
py.test --cov pgpy --cov-report term-missing tests/
[test-setup]
whitelist_externals = /usr/bin/rm
deps =
commands =
pip install -e .
rm -rf PGPy2.egg-info
[testenv:setup37]
recreate = True
basepython = python3.7
whitelist_externals = {[test-setup]whitelist_externals}
deps =
commands = {[test-setup]commands}
[testenv:setup36]
recreate = True
basepython = python3.6
whitelist_externals = {[test-setup]whitelist_externals}
deps =
commands = {[test-setup]commands}
[testenv:setup35]
recreate = True
basepython = python3.5
whitelist_externals = {[test-setup]whitelist_externals}
deps =
commands = {[test-setup]commands}
[testenv:setup34]
recreate = True
basepython = python3.4
whitelist_externals = {[test-setup]whitelist_externals}
deps =
commands = {[test-setup]commands}
[testenv:setup27]
recreate = True
deps = pip
basepython = python2.7
whitelist_externals = {[test-setup]whitelist_externals}
commands = {[test-setup]commands}
[testenv:pep8]
basepython = python3.7
deps =
flake8
pep8-naming
commands =
flake8