forked from mpdavis/python-jose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (46 loc) · 1.52 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
[tox]
minversion = 3.4.0
envlist =
py{27,34,35,36,py}-{base,cryptography-only,pycryptodome-norsa,pycrypto-norsa,compatibility},
flake8
skip_missing_interpreters = True
[testenv:basecommand]
commands =
pip --version
py.test --cov-report term-missing --cov jose {posargs}
[testenv:compatibility]
extras =
cryptography
pycrypto
pycryptodome
[testenv]
deps =
pytest
pytest-cov
pytest-runner
commands_pre =
# Remove the python-rsa and python-ecdsa backends
only: pip uninstall -y ecdsa rsa
# Remove just the python-rsa backend
norsa: pip uninstall -y rsa
commands =
# Test the python-rsa backend
base: {[testenv:basecommand]commands} -m "not (cryptography or pycryptodome or pycrypto or backend_compatibility)"
# Test the pyca/cryptography backend
cryptography: {[testenv:basecommand]commands} -m "not (pycryptodome or pycrypto or backend_compatibility)"
# Test the pycryptodome backend
pycryptodome: {[testenv:basecommand]commands} -m "not (cryptography or pycrypto or backend_compatibility)"
# Test the pycrypto backend
pycrypto: {[testenv:basecommand]commands} -m "not (cryptography or pycryptodome or backend_compatibility)"
# Test cross-backend compatibility and coexistence
compatibility: {[testenv:basecommand]commands}
extras =
cryptography: cryptography
pycryptodome: pycryptodome
pycrypto: pycrypto
compatibility: {[testenv:compatibility]extras}
[testenv:flake8]
skip_install= True
deps =
flake8
commands = flake8 jose setup.py