kopia lustrzana https://github.com/collective/icalendar
46 wiersze
1.1 KiB
INI
46 wiersze
1.1 KiB
INI
# 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
|
|
|
|
[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
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-r {toxinidir}/requirements_docs.txt
|
|
setuptools
|
|
changedir = docs
|
|
allowlist_externals = make
|
|
commands =
|
|
make html
|