]> git.phdru.name Git - m_librarian.git/blob - tox.ini
Tests(tox): Limit `pip` and `setuptools` versions for Python 3.4
[m_librarian.git] / tox.ini
1 [tox]
2 minversion = 3.15
3 envlist = py27-sqlite,py3{4,5,6,7,8,9}-sqlite,py{27,39}-flake8
4
5 # Base test environment settings
6 [testenv]
7 basepython =
8     py27: {env:TOXPYTHON:python2.7}
9     py34: {env:TOXPYTHON:python3.4}
10     py35: {env:TOXPYTHON:python3.5}
11     py36: {env:TOXPYTHON:python3.6}
12     py37: {env:TOXPYTHON:python3.7}
13     py38: {env:TOXPYTHON:python3.8}
14     py39: {env:TOXPYTHON:python3.9}
15 commands =
16     {envpython} --version
17     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
18 deps =
19     pip < 19.2
20     setuptools < 44
21     -rdevscripts/requirements/requirements_tests.txt
22 passenv = CI TRAVIS TRAVIS_* APPVEYOR DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR
23 setenv =
24     VIRTUALENV_PIP = 19.1.1
25 platform = linux
26
27 [testenv:{py27,py34,py35,py36,py37,py38,py39}-sqlite]
28 commands =
29     {[testenv]commands}
30     -rm.py -f /tmp/test.sqdb
31     {envpython} -m pytest --cov=m_librarian -D sqlite:///tmp/test.sqdb
32
33 [testenv:{py27,py34,py35,py36,py37,py38,py39}-sqlite-w32]
34 platform = win32
35 commands =
36     {[testenv]commands}
37     -rm.py -f C:/projects/m-librarian/test.sqdb
38     pytest --cov=m_librarian -D sqlite:/C:/projects/m-librarian/test.sqdb?debug=1
39     rm.py -f C:/projects/m-librarian/test.sqdb
40
41 # flake8
42 [testenv:{py27,py34,py35,py36,py37,py38,py39}-flake8]
43 deps =
44     flake8
45 commands =
46     {[testenv]commands}
47     flake8