-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathtox.ini
62 lines (58 loc) · 1.63 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
[tox]
requires =
tox>=4
env_list = lint,{py39,py310,py311,py312,py313}-{flakes,requests27,requests26,requests25,requests24,requests23,requests22,requests1,httplib2,urllib317,urllib319,urllib3110},coverage
isolated_build = true
[testenv]
skip_install = false
allowlist_externals = pdm
deps =
coverage[toml]
requests_mock>=1.11.0
vcrpy>=4.3.1
flakes: flake8>=6.1.0
requests27: requests>=2.7.0,<2.8.0
requests26: requests>=2.6.0,<2.7.0
requests25: requests>=2.5.0,<2.6.0
requests24: requests>=2.4.0,<2.5.0
requests23: requests>=2.3.0,<2.4.0
requests22: requests>=2.2.0,<2.3.0
requests1: requests>=1.0.0,<2.0.0
httplib2: httplib2>=0.9.2
urllib317: urllib3>=1.7.0,<1.8.0
urllib319: urllib3>=1.9.0,<1.10.0
urllib3110: urllib3>=1.10.0,<1.11.0
commands_pre =
pdm install -G :all
pip install -e .
commands =
python -m coverage run -m unittest discover
python -m coverage report
[testenv:lint]
skip_install = false
allowlist_externals = pdm
deps = flake8>=6.1.0
commands_pre =
pdm install
pip install -e .
commands =
python -m flake8 .
[testenv:coverage]
skip_install = false
allowlist_externals = pdm
deps = coverage[toml]
commands_pre =
pdm install -G :all
pip install -e .
commands =
python -m coverage run -m unittest discover
python -m coverage report
[testenv:readme]
description = check that the long description is valid and can be rendered on PyPI
skip_install = true
deps = twine>=4.0.1
allowlist_externals = python
commands_pre = pdm install
commands =
python -m pip wheel -w {envtmpdir}/build --no-deps .
python -m twine check {envtmpdir}/build/*