-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
50 lines (46 loc) · 1.07 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
[tox]
envlist = py{38,39,310,311}
minversion = 3.0.0
[testenv]
extras = testing
commands =
pytest {posargs}
[testenv:htmlcov]
setenv = CYTHON_TRACE=1
skip_install = true
deps =
cython
pip >= 18.0
commands =
python -c 'import shutil; shutil.rmtree("build", ignore_errors=True)'
pip install -e .[testing]
coverage run -m pytest {posargs}
coverage report
coverage html
[testenv:wheel]
description = build wheel package for upload to PyPI
skip_install = true
deps =
setuptools >= 36.4.0
pip >= 18.0
wheel >= 0.31.0
changedir = {toxinidir}
commands =
python -c 'import shutil; shutil.rmtree("dist", ignore_errors=True)'
pip wheel --no-deps --wheel-dir dist .
[pytest]
minversion = 3.0
testpaths =
src/python/pathops
tests
python_files =
*_test.py
python_classes =
*Test
# NOTE: The -k option is to skip all tests containing the substring "__test__".
# This is needed to prevent running doctests embedded in .pyx files twice,
# for reasons which I still haven't figured out...
addopts =
-v
-r a
-k "not __test__"