forked from kiwicom/pytest-recording
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
67 lines (61 loc) · 1.39 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
[tox]
envlist = pylint,py{37,38,39,310,311,py3},no_pycurl,vcr_431,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
werkzeug<2.1.0
commands =
pip install pycurl --global-option="--with-{env:PYCURL_SSL_LIBRARY}"
coverage run --source=pytest_recording -m pytest {posargs:tests}
[testenv:no_pycurl]
basepython = python3.8
deps =
coverage
pytest>=3.0
pytest-httpbin
pytest-mock
requests
werkzeug<2.1.0
commands = coverage run --source=pytest_recording -m pytest {posargs:tests}
[testenv:vcr_431]
basepython = python3.8
deps =
coverage
pytest>=3.0
pytest-httpbin
pytest-mock
requests
werkzeug<2.1.0
commands =
pip install vcrpy<4.4.0
coverage run --source=pytest_recording -m pytest {posargs:tests}
[testenv:pylint]
basepython = python3.8
skip_install = true
deps =
pylint
pytest
vcrpy
attr
commands = pylint {posargs:} src/pytest_recording
[testenv:coverage-report]
description = Report coverage over all measured test runs.
basepython = python3.8
deps = coverage
skip_install = true
depends = {py37,py38,py39,py310,py311,pypy3}
commands =
coverage combine
coverage report
[testenv:build]
deps = pep517
commands = python -m pep517.build --source . --binary --out-dir dist/