Added tox configuration.

This commit is contained in:
Russell Keith-Magee 2020-10-24 09:42:57 +08:00
parent 4204e68741
commit a86b718a86
No known key found for this signature in database
GPG key ID: 3D2DAB6A37BB5BC3
2 changed files with 28 additions and 0 deletions

3
.gitignore vendored
View file

@ -7,3 +7,6 @@ dist
build build
_build _build
distribute-* distribute-*
.tox/
.vscode/
venv/

25
tox.ini Normal file
View 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/*