-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
50 lines (46 loc) · 992 Bytes
/
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]
envlist=py3
skipsdist=True
minversion=2.9.0
skip_missing_interpreters=True
[testenv]
description=
run tests with pytest under {basepython} - the posargs specify the tests to run
whitelist_externals=
mv
rm
deps=
-r{toxinidir}/requirements.txt
asynctest
pytest-asyncio
pytest>=6.0.0
pytest-cov>=2.5.1
pytest-html>=1.14.2
pytest-mock>=1.6.0
pytest-profiling>=1.2.6
pylint>=1.7.1
pylint-quotes>=0.1.5
commands=
pytest -s \
--cov-report term \
--cov=aionetbox \
-p no:warnings \
{posargs}
[testenv:lint]
deps=
-r{toxinidir}/requirements.txt
flake8
commands=
flake8 --show-source --statistics aionetbox tests
[testenv:release]
description=
publish a tagged release to pypi. Used in CI automation.
deps=
-r{toxinidir}/requirements.txt
twine>=1.5.0
passenv=
TWINE_USERNAME
TWINE_PASSWORD
commands=
python setup.py sdist bdist_wheel
twine upload dist/* --verbose