-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathtox.ini
More file actions
44 lines (40 loc) · 1.06 KB
/
tox.ini
File metadata and controls
44 lines (40 loc) · 1.06 KB
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
[tox]
envlist = py{310,311,312,313,314},pypy3-no_pycurl,coverage-report
[testenv]
setenv =
PYCURL_SSL_LIBRARY = {env:PYCURL_SSL_LIBRARY:openssl}
passenv =
LDFLAGS
CPPFLAGS
deps =
coverage
pytest>=3.0
pytest-httpbin
pytest-mock
requests
pycurl --global-option="--with-{env:PYCURL_SSL_LIBRARY}"
xdist: pytest-xdist
commands =
coverage run --source=pytest_recording -m pytest {posargs:tests}
# pypy3 + pycurl does not work
# https://github.com/pypy/pypy/issues/3958
[testenv:pypy3-no_pycurl]
deps =
coverage
pytest>=3.0
pytest-httpbin
pytest-mock
requests
commands = coverage run --source=pytest_recording -m pytest {posargs:tests}
[testenv:coverage-report]
description = Report coverage over all measured test runs.
basepython = python3.14
deps = coverage
skip_install = true
depends = {py310,py311,py312,py313,py314,pypy3}
commands =
coverage combine
coverage report --fail-under=100 --show-missing --skip-covered
[testenv:build]
deps = pep517
commands = python -m pep517.build --source . --binary --out-dir dist/