forked from TestInABox/stackInABox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (48 loc) · 1.91 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
[tox]
minversion=1.8
envlist = {py3.8,py3.9,py3.10,py3.11,py3.12},py3-httpretty,py3-requests-mock,py3-responses,pep8,docs
skip_missing_interpreters=True
[testenv]
basepython =
pypy: pypy
pypy3: pypy3
py3.8: python3.8
py3.9: python3.9
py3.10: python3.10
py3.11: python3.11
py3.12: python3.12
pep8: python3
docs: python3
deps =
pypy: -r{toxinidir}/tools/py2-test-requirements.txt
pypy3,py3.8,py3.9,py3.10,py3.11,py3.12,docs: -r{toxinidir}/tools/test-requirements.txt
pep8: -r{toxinidir}/tools/pep8-requirements.txt
docs: -r{toxinidir}/tools/docs-requirements.txt
commands =
pypy,pypy3,py3.8,py3.9,py3.10,py3.11,py3.12: pytest {toxinidir}/tests --cov-config=.coveragerc --cov=stackinabox {posargs}
pep8: pycodestyle --exclude=.tox,dist,doc,docs,*env*,.*env*,build --ignore=E128,W504
docs: sphinx-build -b html -d {envtmpdir}/doctrees docs docs/_build/html
docs: sphinx-build -b latex -d {envtmpdir}/doctrees docs docs/_build/latex
docs: sphinx-build -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
docs: doc8 --allow-long-titles docs/
setenv =
pypy3,py3.8,py3.9,py3.10,py3.11,py3.12,py3-httpretty,py3-requests-mock,py3-responses: VIRTUAL_ENV={envdir} LC_ALL = en_US.utf-8
# Unfortunately the below doesn't seem to integrate well into the form above
# but it's valuable for testing the setup with extra dependencies to make sure things install right
[testenv:py3-httpretty]
basepython = python3
deps = .[httpretty]
commands = python -c "import stackinabox.util.httpretty"
setenv ={envdir} LC_ALL = en_US.utf-8
[testenv:py3-requests-mock]
basepython = python3
deps = .[requests-mock]
commands = python -c "import stackinabox.util.requests_mock"
setenv ={envdir} LC_ALL = en_US.utf-8
[testenv:py3-responses]
basepython = python3
deps = .[responses]
commands = python -c "import stackinabox.util.responses"
setenv ={envdir} LC_ALL = en_US.utf-8
[doc8]
extensions = rst