
Include all supported Python versions as trove classifiers. Helps library users know, at a glance, if the library can be integrated with a project. Remove Python 2.6 trove classifier, support was removed in 9bcf955af8dd62aa52c86e48a4868d2725353531 Also add trove classifier for PyPy as it is included in the tox test matrix. Change-Id: Iff7dcec47260006b325e3059cfaf8b8e912d2318
82 lines
2.2 KiB
INI
82 lines
2.2 KiB
INI
[tox]
|
|
envlist = py36,py35,py34,py27,pypy,pep8
|
|
|
|
[testenv]
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}:{toxinidir}/requests-mock
|
|
commands = python setup.py testr
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
pbr
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 requests_mock
|
|
deps =
|
|
flake8
|
|
{[testenv]deps}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:coverage]
|
|
commands =
|
|
coverage erase
|
|
coverage run --source requests_mock -m testtools.run discover
|
|
coverage html
|
|
deps =
|
|
coverage
|
|
{[testenv]deps}
|
|
|
|
[testenv:requests123]
|
|
commands =
|
|
{envbindir}/pip install "requests==1.2.3"
|
|
python setup.py testr --testr-args='{posargs}'
|
|
|
|
[testenv:doctest]
|
|
# note this only works under python 3 because of unicode literals
|
|
commands =
|
|
python -m doctest README.rst
|
|
|
|
[testenv:sphinx-doctest]
|
|
# note this only works under python 3 because of unicode literals
|
|
commands =
|
|
mkdir build/sphinx/doctest
|
|
sphinx-build -b doctest docs build/sphinx/doctest
|
|
deps =
|
|
pbr
|
|
{[testenv]deps}
|
|
|
|
[testenv:keystoneclient-tip]
|
|
deps =
|
|
six
|
|
-r{toxinidir}/test-requirements.txt
|
|
-egit+https://git.openstack.org/openstack/python-keystoneclient#egg=python-keystoneclient
|
|
-egit+https://github.com/kennethreitz/requests.git#egg=requests
|
|
changedir = {envdir}/src/python-keystoneclient
|
|
commands =
|
|
{envbindir}/pip install -r requirements.txt -r test-requirements.txt
|
|
{envbindir}/pip install pbr -t {envsitepackagesdir} # work around pbr being build installed in {toxinidir}
|
|
python setup.py testr --testr-args='{posargs}'
|
|
|
|
[testenv:novaclient-tip]
|
|
deps =
|
|
six
|
|
-r{toxinidir}/test-requirements.txt
|
|
-egit+https://git.openstack.org/openstack/python-novaclient#egg=python-novaclient
|
|
-egit+https://github.com/kennethreitz/requests.git#egg=requests
|
|
changedir = {envdir}/src/python-novaclient
|
|
commands =
|
|
{envbindir}/pip install -r requirements.txt -r test-requirements.txt
|
|
{envbindir}/pip install pbr -t {envsitepackagesdir} # work around pbr being build installed in {toxinidir}
|
|
python setup.py testr --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:requests-tip]
|
|
deps =
|
|
six
|
|
-egit+https://github.com/kennethreitz/requests.git#egg=requests
|
|
-r{toxinidir}/test-requirements.txt
|