[tox] envlist = py27,py34,py35,py36,pypy,pypy3 [testenv] deps=-r{toxinidir}/requirements/dev.pip whitelist_externals= /bin/sh commands= # Allow a custom setup command to be specified via env vars, # which is used in the `pre_twine` test below. /bin/sh -c "{env:PYPISERVER_SETUP_CMD:true}" pytest {posargs} sitepackages=False [pytest] norecursedirs = bin parts develop-eggs eggs venv .* _* CVS {args} [testenv:pre_twine] # Allow calling ``tox -e pre_twine`` to test pypiserver with the most # recent prerelease of twine. whitelist_externals= tox setenv= PYPISERVER_SETUP_CMD=pip install --upgrade --pre --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple twine commands= tox