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
|
[tox]
envlist = pre-commit,min,min-all,py39,py310,py311,py312,py313,all,scripts,docs,twinedeck
[base]
deps =
pytest
pytest-cov
[testenv]
deps =
{[base]deps}
parameterized
atheris; python_version < '3.12'
commands =
pytest --cov=dateparser --cov-report=xml {posargs: tests}
[testenv:all]
basepython = python3.13
extras =
calendars
fasttext
langdetect
[testenv:min]
basepython = python3.9
deps =
{[testenv]deps}
python-dateutil==2.7.0
pytz==2024.2
regex==2024.9.11
tzlocal==0.2
[testenv:min-all]
basepython = {[testenv:min]basepython}
extras = {[testenv:all]extras}
deps =
{[testenv:min]deps}
convertdate==2.2.1
hijridate==2.3.0
langdetect==1.0.0
numpy==1.19.3
# fasttext excluded due to
# https://github.com/facebookresearch/fastText/issues/512
[testenv:scripts]
deps =
{[base]deps}
-rdateparser_scripts/requirements.txt
commands =
pytest --cov=dateparser --cov-report=xml {posargs:tests/test_dateparser_data_integrity.py}
[testenv:pre-commit]
basepython = python3
deps =
pre-commit
commands =
pre-commit run {posargs:--all-files}
[testenv:docs]
changedir = docs
extras = []
deps =
{[testenv]deps}
-rdocs/requirements.txt
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:twinecheck]
basepython = python3
deps =
build
twine
commands =
python -m build --sdist --wheel
twine check dist/*
|