Add tox environment for building and checking distributions

This commit is contained in:
dgelessus 2020-04-19 16:16:21 +02:00
parent 7c77c4ef20
commit c5c3f24a10

11
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
# When adding a new Python version here, please also update the list of Python versions called by the GitHub Actions workflow (.github/workflows/ci.yml).
envlist = py{36,37,38},flake8,mypy
envlist = py{36,37,38},flake8,mypy,package
[testenv]
commands = python -m unittest discover --start-directory ./tests
@ -16,3 +16,12 @@ commands = flake8
deps =
mypy
commands = mypy
[testenv:package]
deps =
twine
wheel
commands =
python setup.py sdist bdist_wheel
twine check dist/*