2017-12-03 08:00:23 +01:00
|
|
|
[tox]
|
2020-08-01 17:58:21 +02:00
|
|
|
envlist = py27,py35,py36,py37,py38,py39,pypy,pypy3,coverage-report
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
# Prevent random setuptools/pip breakages like
|
|
|
|
# https://github.com/pypa/setuptools/issues/1042 from breaking our builds.
|
|
|
|
setenv =
|
|
|
|
VIRTUALENV_NO_DOWNLOAD=1
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:py27]
|
|
|
|
deps=
|
2019-02-03 07:39:14 +01:00
|
|
|
dbus-python
|
2017-12-03 08:00:23 +01:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:py35]
|
|
|
|
deps=
|
2019-02-03 07:39:14 +01:00
|
|
|
dbus-python
|
2017-12-03 08:00:23 +01:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:py36]
|
|
|
|
deps=
|
2019-02-03 07:39:14 +01:00
|
|
|
dbus-python
|
2017-12-03 08:00:23 +01:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
2018-09-06 04:55:16 +02:00
|
|
|
[testenv:py37]
|
|
|
|
deps=
|
2019-02-03 07:39:14 +01:00
|
|
|
dbus-python
|
2018-09-06 04:55:16 +02:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-01-29 12:41:59 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-01-29 12:41:59 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
2019-02-18 05:28:37 +01:00
|
|
|
flake8 . --count --show-source --statistics
|
2018-09-06 04:55:16 +02:00
|
|
|
|
2020-01-06 00:56:54 +01:00
|
|
|
[testenv:py38]
|
|
|
|
deps=
|
|
|
|
dbus-python
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
|
|
|
commands =
|
|
|
|
python setup.py compile_catalog
|
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
|
|
|
|
2020-08-01 17:58:21 +02:00
|
|
|
[testenv:py39]
|
|
|
|
deps=
|
|
|
|
dbus-python
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
|
|
|
commands =
|
|
|
|
python setup.py compile_catalog
|
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
|
|
|
|
2017-12-03 08:00:23 +01:00
|
|
|
[testenv:pypy]
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
2019-02-03 07:39:14 +01:00
|
|
|
[testenv:pypy3]
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2020-11-14 18:29:32 +01:00
|
|
|
# Last supported cryptography version that can link against
|
|
|
|
# OpenSSL v1.0.2 (which pypy35 uses) is 3.1.1
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2020-11-14 18:29:32 +01:00
|
|
|
pip install --upgrade cryptography==3.1.1
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:coverage-report]
|
|
|
|
deps = coverage
|
|
|
|
skip_install = true
|
|
|
|
commands=
|
|
|
|
coverage combine
|
|
|
|
coverage report
|