Skip to content

Commit e7a8127

Browse files
committed
Setup tests for minimum deps
1 parent 1719258 commit e7a8127

File tree

3 files changed

+35
-11
lines changed

3 files changed

+35
-11
lines changed

.github/workflows/main.yml

+7
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,18 @@ jobs:
1616
include:
1717
- python-version: "3.13"
1818
toxenv: pre-commit
19+
- python-version: "3.9"
20+
toxenv: min
21+
- python-version: "3.9"
22+
toxenv: min-all
1923
- python-version: "3.9"
2024
- python-version: "3.10"
2125
- python-version: "3.11"
2226
- python-version: "3.12"
2327
- python-version: "3.13"
28+
toxenv: all
29+
- python-version: "3.13"
30+
toxenv: scripts
2431
- python-version: "3.12" # Keep in sync with tox.ini
2532
toxenv: docs
2633
- python-version: "3.13"

setup.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,18 @@
2929
packages=find_packages(exclude=("tests", "tests.*")),
3030
include_package_data=True,
3131
install_requires=[
32-
"python-dateutil",
33-
"pytz",
34-
# https://bitbucket.org/mrabarnett/mrab-regex/issues/314/import-error-no-module-named
35-
"regex !=2019.02.19,!=2021.8.27",
36-
"tzlocal",
32+
"python-dateutil>=2.7.0",
33+
"pytz>=2024.2",
34+
"regex>=2015.06.24,!=2019.02.19,!=2021.8.27",
35+
"tzlocal>=0.2",
3736
],
3837
entry_points={
3938
"console_scripts": ["dateparser-download = dateparser_cli.cli:entrance"],
4039
},
4140
extras_require={
42-
"calendars": ["hijridate", "convertdate"],
43-
"fasttext": ["fasttext", "numpy<2"],
44-
"langdetect": ["langdetect"],
41+
"calendars": ["convertdate>=2.2.1", "hijridate"],
42+
"fasttext": ["fasttext>=0.9.1", "numpy>=1.19.3,<2"],
43+
"langdetect": ["langdetect>=1.0.0"],
4544
},
4645
license="BSD",
4746
zip_safe=False,

tox.ini

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
[tox]
2-
; envlist = pre-commit,min,min-all,py39,py310,py311,py312,py313,all,scripts,docs,twinedeck
3-
; TODO: Setup min envs
4-
envlist = pre-commit,py39,py310,py311,py312,py313,all,scripts,docs,twinedeck
2+
envlist = pre-commit,min,min-all,py39,py310,py311,py312,py313,all,scripts,docs,twinedeck
53

64
[base]
75
deps =
@@ -23,6 +21,26 @@ extras =
2321
fasttext
2422
langdetect
2523

24+
[testenv:min]
25+
basepython = python3.9
26+
deps =
27+
{[testenv]deps}
28+
python-dateutil==2.7.0
29+
pytz==2024.2
30+
regex==2015.06.24
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+
fasttext==0.9.1
40+
hijridate==2.3.0
41+
langdetect==1.0.0
42+
numpy==1.19.3
43+
2644
[testenv:scripts]
2745
deps =
2846
{[base]deps}

0 commit comments

Comments
 (0)