]> git.phdru.name Git - m_librarian.git/blob - tox.ini
Tests(tox): Remove `basepython`
[m_librarian.git] / tox.ini
1 [tox]
2 minversion = 3.15
3 envlist = py27-sqlite,py3{4,5,6,7,8,9,10}-sqlite,py{27,39}-flake8
4
5 # Base test environment settings
6 [testenv]
7 commands =
8     {envpython} --version
9     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
10     {envpython} -m pytest --version
11 deps =
12     -rdevscripts/requirements/requirements_tests.txt
13 passenv = CI DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR
14 platform = linux|darwin
15
16 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-sqlite]
17 commands =
18     {[testenv]commands}
19     -rm.py -f /tmp/test.sqdb
20     {envpython} -m pytest -D sqlite:///tmp/test.sqdb
21
22 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-sqlite-w32]
23 platform = win32
24 commands =
25     {[testenv]commands}
26     -rm.py -f {env:TEMP}/test.sqdb
27     pytest -D sqlite:/{env:TEMP}/test.sqdb?debug=1
28     rm.py -f {env:TEMP}/test.sqdb
29
30 # flake8
31 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-flake8]
32 deps =
33     flake8
34     pytest < 7.0
35 commands =
36     {[testenv]commands}
37     flake8