forked from collective/icalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (44 loc) · 1.18 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
# to run for a specific environment, use ``tox -e ENVNAME``
[tox]
envlist = py38,py39,py310,py311,312,pypy3,docs,nopytz
# Note: the 'docs' env creates a 'build' directory which may interfere in strange ways
# with the other environments. You might see this when you run the tests in parallel.
# See https://github.com/collective/icalendar/pull/359#issuecomment-1214150269
[testenv]
usedevelop=True
deps =
pytest
coverage
hypothesis
pytz
commands =
coverage run --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
coverage report
coverage html
coverage xml
[testenv:nopytz]
# install with dependencies
usedevelop = False
# use lowest version
basepython = python3.8
allowlist_externals =
rm
deps =
setuptools>=70.1.0
pytest
coverage
hypothesis
commands =
rm -rf build # do not mess up import
coverage run --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
coverage report
coverage html
coverage xml
[testenv:docs]
deps =
-r {toxinidir}/requirements_docs.txt
setuptools
changedir = docs
allowlist_externals = make
commands =
make html