forked from Ezibenroc/PyRoaringBitMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
80 lines (68 loc) · 1.1 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
[tox]
envlist =
cython_pre3
cython3
test_wheel
[testenv]
setenv =
PYTHONFAULTHANDLER=1
[testenv:cython_pre3]
deps =
hypothesis
pytest
cython<3.0.0
passenv =
HYPOTHESIS_PROFILE
commands =
py.test test.py
python cydoctest.py
[testenv:cython3]
deps =
hypothesis
pytest
cython>=3.0.2
passenv =
HYPOTHESIS_PROFILE
commands =
py.test test.py -v
python cydoctest.py
[testenv:test_wheel]
deps =
hypothesis
pytest
wheel
build
twine
skip_sdist = true
skip_install = true
passenv =
HYPOTHESIS_PROFILE
allowlist_externals =
rm
mkdir
commands =
# Clear our prebuilt wheels so we have a fresh directory
python -m build
# Install from the wheel in that directory
pip install --only-binary ":all:" --find-links=dist --no-index pyroaring
py.test test.py -v
python cydoctest.py
[testenv:linting]
deps =
flake8
flake8-isort
flake8-noqa
flake8-pyi
skip_sdist = true
skip_install = true
commands =
flake8
[testenv:type_check]
deps =
mypy
hypothesis
skip_sdist = true
skip_install = true
commands =
# This serves to check that our stubs at least match the usages we test
mypy test.py