forked from jamielennox/requests-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
94 lines (83 loc) · 2.5 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[tox]
envlist =
py{27,34,35,36,37,38,39,310}
pypy
pypy3
pep8
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/requests-mock
commands =
pytest tests/pytest
python setup.py testr
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
pbr
[testenv:pep8]
commands = flake8 requests_mock tests
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:oldest-requirements]
install_command = pip install -U {opts} -c {toxinidir}/.tox.oldest.txt {packages}
commands =
python setup.py testr --testr-args='{posargs}'
deps =
-r{toxinidir}/test-requirements.txt
-c{toxinidir}/.tox.oldest.txt
pbr
[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
deps =
-r{toxinidir}/rtfd-requirements.txt
{[testenv]deps}
[testenv:requests-tip]
deps =
six
-egit+https://github.com/kennethreitz/requests.git#egg=requests
-r{toxinidir}/test-requirements.txt