forked from github.com/pypiserver
8639ad3d40
Resolves #203 Related to pypa/twine#314 This commit adds an ``sh -c`` call, whose argument is the value of the environment variable ``PYPISERVER_SETUP_CMD``, or ``true`` if that variable is not set. This was specifically added to enable the ``pre_twine`` environment, which is provided to automatically test pre-releases of twine, both for our use (e.g. #203) and for the use of the twine maintainers (pypa/twine#314). The capacity to specify an arbitrary setup command via an environment variable may also wind up being useful in other cases in the future. In addition, the envlist is updated to include only Python versions we actually support. This commit also alphabetizes the ``dev.pip`` requirements and rmeoves specific requirements for testing using Python 2.5 (which we do not test against anymore).
25 lines
618 B
INI
25 lines
618 B
INI
[tox]
|
|
envlist = py27,py34,py35,py36,pypy,pypy3
|
|
|
|
[testenv]
|
|
deps=-r{toxinidir}/requirements/dev.pip
|
|
whitelist_externals=
|
|
/bin/sh
|
|
commands=
|
|
/bin/sh -c "{env:PYPISERVER_SETUP_CMD:true}"
|
|
pytest []
|
|
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
|