From c5c3f24a10efae5ccc293d425c0fc0bb64a79d67 Mon Sep 17 00:00:00 2001 From: dgelessus Date: Sun, 19 Apr 2020 16:16:21 +0200 Subject: [PATCH] Add tox environment for building and checking distributions --- tox.ini | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 3ec1157..5b390d0 100644 --- a/tox.ini +++ b/tox.ini @@ -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/*