-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
60 lines (53 loc) · 1.32 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
[tox]
envlist =
py37,py38,py39,py310,py311,pypy3,cover,docs,lint
[testenv]
commands =
python setup.py -q test -q
deps =
mock
ZODB==5.*
ZEO==5.*
[testenv:cover]
basepython =
python3.9
commands =
python setup.py nosetests --with-xunit --with-xcoverage
deps =
{[testenv]deps}
nose
coverage
nosexcover
# we separate coverage into its own testenv because a) "last run wins" wrt
# cobertura jenkins reporting and b) pypy and jython can't handle any
# combination of versions of coverage and nosexcover that i can find.
# coverage==3.4 is required by nosexcover.
[testenv:docs]
basepython =
python3.11
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
deps =
Sphinx
pylons-sphinx-themes
[testenv:lint]
skip_install = true
commands =
check-manifest
deps =
check-manifest
[testenv:build]
skip_install = true
commands =
# clean up build/ and dist/ folders
python -c 'import shutil; shutil.rmtree("dist", ignore_errors=True)'
python setup.py clean --all
# build sdist
python setup.py sdist --dist-dir {toxinidir}/dist
# build wheel from sdist
pip wheel -v --no-deps --no-index --no-build-isolation --wheel-dir {toxinidir}/dist --find-links {toxinidir}/dist zodburi
twine check dist/*
deps =
setuptools
twine
wheel