1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-12-20 13:55:49 +01:00
pypiserver/tox.ini
Mitja O 6e4ccd8ba9
fix: use importlib_resources only when needed (#627)
* fix: `importlib_resources` only for Py 3.8 to 3.12

* chore: return `py37-py39` to tox envlist
2024-11-24 22:16:31 +01:00

26 lines
664 B
INI

[tox]
envlist = py37, py38, py39, py310, py311, py312, pypy3
[testenv]
deps=-r{toxinidir}/requirements/test.pip
allowlist_externals=
/bin/sh
sitepackages=False
commands=
/bin/sh -c "{env:PYPISERVER_SETUP_CMD:true}"
pytest --cov=pypiserver {posargs:tests}
[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.
allowlist_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