Added tox configuration.
This commit is contained in:
parent
4204e68741
commit
a86b718a86
2 changed files with 28 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -7,3 +7,6 @@ dist
|
|||
build
|
||||
_build
|
||||
distribute-*
|
||||
.tox/
|
||||
.vscode/
|
||||
venv/
|
||||
25
tox.ini
Normal file
25
tox.ini
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
[tox]
|
||||
envlist = flake,package,py{36,37,38,39}
|
||||
skip_missing_interpreters = true
|
||||
|
||||
[testenv]
|
||||
commands =
|
||||
python setup.py test
|
||||
|
||||
[testenv:flake8]
|
||||
skip_install = True
|
||||
deps =
|
||||
flake8
|
||||
commands = flake8 {posargs}
|
||||
|
||||
[testenv:package]
|
||||
skip_install = True
|
||||
deps =
|
||||
check_manifest
|
||||
wheel
|
||||
twine
|
||||
commands =
|
||||
check-manifest -v
|
||||
python setup.py sdist bdist_wheel
|
||||
python -m twine check dist/*
|
||||
Loading…
Reference in a new issue