-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtox.ini
66 lines (60 loc) · 1.31 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
[tox]
# if you change the envlist, please update .travis.yml file as well
minversion = 3.7.0
isolated_build = true
envlist=
py{37,38,39,310,311}-pytest{310,46,54,62,latest}
flakes
build-dists
metadata-validation
[testenv]
deps =
pycmd
# to avoid .eggs
setuptools_scm
pytest310: pytest~=3.10
pytest46: pytest~=4.6
pytest54: pytest~=5.4
pytest62: pytest~=6.2
pytestlatest: pytest
pytestmain: git+https://github.com/pytest-dev/pytest.git@main
platform=linux|darwin
commands=
pytest {posargs}
[testenv:flakes]
changedir=
deps = flake8
commands = flake8 setup.py testing src/pytest_forked/
[testenv:build-dists]
basepython = python3
isolated_build = true
# `usedevelop = true` overrides `skip_install` instruction, it's unwanted
usedevelop = false
# don't install pytest-forked itself in this env
skip_install = true
deps =
pep517 >= 0.7.0
commands =
rm -rfv {toxinidir}/dist/
{envpython} -m pep517.build \
--source \
--binary \
--out-dir {toxinidir}/dist/ \
{toxinidir}
whitelist_externals =
rm
[testenv:metadata-validation]
description =
Verify that dists under the dist/ dir have valid metadata
depends =
build-dists
deps =
twine
usedevelop = false
skip_install = true
commands =
twine check {toxinidir}/dist/*
[pytest]
addopts = -rsfxX
[flake8]
max-line-length = 88