[tox] envlist = py3,check-manifest [testenv] deps = pytest git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings commands = {envpython} -m pytest {posargs} [testenv:check-manifest] basepython = python3 skip_install = true deps = check-manifest commands = {envpython} -m check_manifest {toxinidir} [pytest] testpaths = test python_files = *test_*.py [testenv:pypi-publish] basepython = python3 skip_install = true whitelist_externals = rm deps = twine passenv = TWINE_USERNAME TWINE_PASSWORD commands = rm -rf build dist .egg .egg-info python3 setup.py sdist bdist_wheel twine check dist/* twine upload --skip-existing dist/*