forked from wroberts/pytimeparse
-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
85 lines (78 loc) · 1.7 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[tox]
envlist = flake,mypy,py36-coverage,py3{7,8,9,10,11}-install
skipsdist = True
[gh-actions]
python =
3.6: flake,mypy,py36-coverage
3.7: py37-install
3.8: py38-install
3.9: py39-install
3.10: py310-install
3.11: py311-install
[testenv]
setenv =
CCACHE_DIR = {envdir}/.ccache
passenv =
CC
allowlist_externals =
rm
ls
ln
bash
pwd
cd
find
xargs
commands =
pwd
pip uninstall pytimeparse2 -y
install: rm -rfv {envdir}/dist/
install: python {toxinidir}/setup.py bdist_wheel --dist-dir {envdir}/dist/
install: bash -c "pip install -U {envdir}/dist/$(ls {envdir}/dist)[dateutil]"
coverage: python setup.py install_egg_info
coverage: pip install -U -e .[dateutil]
install: bash -c "cd {envdir} && python {toxinidir}/tests.py -vv --failfast"
coverage: coverage debug sys
coverage: coverage erase
coverage: coverage run tests.py -vv --failfast {posargs}
coverage: coverage combine
coverage: coverage report
rm -rf .eggs build pytimeparse2.egg-info {envdir}/dist
install: pip uninstall pytimeparse2 -y
deps =
coverage: coverage~=5.1
mock==3.0.5
[testenv:flake]
basepython = python3.6
deps =
flake8
commands =
flake8 --config=.pep8 pytimeparse2.py
[testenv:mypy]
basepython = python3.6
deps =
mypy
types-python-dateutil
commands =
mypy pytimeparse2.py
[testenv:contrib]
basepython = python3.6
skipsdist = True
envdir = {toxinidir}/venv
passenv = *
allowlist_externals = *
commands =
python setup.py install_egg_info
pip install -U -e .
deps =
tox
[testenv:build]
passenv = *
changedir = .
allowlist_externals =
tox
rm
commands =
rm -rf dist build
tox -c tox_build.ini --workdir {toxworkdir}
deps =