Debian Codegraph @

tox.ini

raw
1 [tox]
2 envlist = pre-commit,min,min-all,py39,py310,py311,py312,py313,all,scripts,docs,twinedeck
3
4 [base]
5 deps =
6 pytest
7 pytest-cov
8
9 [testenv]
10 deps =
11 {[base]deps}
12 parameterized
13 atheris; python_version < '3.12'
14 commands =
15 pytest --cov=dateparser --cov-report=xml {posargs: tests}
16
17 [testenv:all]
18 basepython = python3.13
19 extras =
20 calendars
21 fasttext
22 langdetect
23
24 [testenv:min]
25 basepython = python3.9
26 deps =
27 {[testenv]deps}
28 python-dateutil==2.7.0
29 pytz==2024.2
30 regex==2024.9.11
31 tzlocal==0.2
32
33 [testenv:min-all]
34 basepython = {[testenv:min]basepython}
35 extras = {[testenv:all]extras}
36 deps =
37 {[testenv:min]deps}
38 convertdate==2.2.1
39 hijridate==2.3.0
40 langdetect==1.0.0
41 numpy==1.19.3
42 # fasttext excluded due to
43 # https://github.com/facebookresearch/fastText/issues/512
44
45 [testenv:scripts]
46 deps =
47 {[base]deps}
48 -rdateparser_scripts/requirements.txt
49 commands =
50 pytest --cov=dateparser --cov-report=xml {posargs:tests/test_dateparser_data_integrity.py}
51
52 [testenv:pre-commit]
53 basepython = python3
54 deps =
55 pre-commit
56 commands =
57 pre-commit run {posargs:--all-files}
58
59 [testenv:docs]
60 changedir = docs
61 extras = []
62 deps =
63 {[testenv]deps}
64 -rdocs/requirements.txt
65 commands =
66 sphinx-build -W -b html . {envtmpdir}/html
67
68 [testenv:twinecheck]
69 basepython = python3
70 deps =
71 build
72 twine
73 commands =
74 python -m build --sdist --wheel
75 twine check dist/*