Skip to content

Commit 9b6fa7a

Browse files
committed
add ability to remove base crypto backend for tests
commands_pre requires tox >= 3.4.0
1 parent b4d6ca2 commit 9b6fa7a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tox.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[tox]
2-
envlist = py{27,34,35,36,py}-{base,cryptography,pycryptodome,pycrypto,compatibility},flake8
2+
minversion = 3.4.0
3+
envlist =
4+
py{27,34,35,36,py}-{base,cryptography-only,pycryptodome,pycrypto,compatibility},
5+
flake8
36
skip_missing_interpreters = True
47

58
[testenv:basecommand]
@@ -19,6 +22,9 @@ deps =
1922
pytest-cov
2023
pytest-runner
2124
compatibility: {[testenv:compatibility]deps}
25+
commands_pre =
26+
# Remove the python-rsa backend
27+
only: pip uninstall -y ecdsa rsa
2228
commands =
2329
# Test the python-rsa backend
2430
base: {[testenv:basecommand]commands} -m "not (cryptography or pycryptodome or pycrypto or backend_compatibility)"

0 commit comments

Comments
 (0)