forked from pyparsing/pyparsing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
28 lines (25 loc) · 922 Bytes
/
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
[tox]
skip_missing_interpreters=true
envlist =
py{36,37,38,39,310,py3},mypy-test,pyparsing_packaging
isolated_build = True
[testenv]
deps=coverage
extras=diagrams
commands=
coverage run --parallel --branch -m unittest
[testenv:mypy-test]
deps = mypy==0.960
# note: cd to tests/ to avoid mypy trying to check pyparsing (which fails)
changedir = tests
commands = mypy --show-error-codes --warn-unused-ignores mypy-ignore-cases/
[testenv:pyparsing_packaging]
basepython=py37
deps=
pretend
pytest
commands=
python -c "import shutil,os,stat;os.path.exists('packaging') and shutil.rmtree('packaging', onerror=lambda fn, path, _:os.chmod(path,stat.S_IWRITE) or fn(path))"
git clone --depth 10 https://github.com/pypa/packaging.git
python -m pytest packaging/tests
python -c "import shutil,os,stat;shutil.rmtree('packaging', onerror=lambda fn, path, _:os.chmod(path,stat.S_IWRITE) or fn(path))"