[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/*