Skip to content

Commit 63c8b07

Browse files
committed
chore: update Python version
1 parent 6a7c91c commit 63c8b07

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

.github/workflows/main.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- python-version: 3.8
17+
- python-version: 3.9
1818
env:
1919
TOXENV: flake8
20-
- python-version: 3.7
21-
env:
22-
TOXENV: py
23-
- python-version: 3.8
24-
env:
25-
TOXENV: py
2620
- python-version: 3.9
2721
env:
2822
TOXENV: py
@@ -38,10 +32,22 @@ jobs:
3832
- python-version: "3.11"
3933
env:
4034
TOXENV: latest
41-
- python-version: "3.11"
35+
- python-version: "3.12"
36+
env:
37+
TOXENV: py
38+
- python-version: "3.12"
39+
env:
40+
TOXENV: latest
41+
- python-version: "3.13"
42+
env:
43+
TOXENV: py
44+
- python-version: "3.13"
45+
env:
46+
TOXENV: latest
47+
- python-version: "3.13"
4248
env:
4349
TOXENV: twinecheck
44-
- python-version: "3.11" # Keep in sync with tox.ini
50+
- python-version: "3.13" # Keep in sync with tox.ini
4551
env:
4652
TOXENV: docs
4753
steps:

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ are executed, you can do so through the
156156
Installation
157157
------------
158158

159-
Dateparser supports Python >= 3.7. You can install it by doing:
159+
Dateparser supports Python >= 3.9. You can install it by doing:
160160

161161
::
162162

dateparser/date_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def parse(self, date_string, parse_method, settings=None):
3232
else:
3333
if "local" in _settings_tz:
3434
stz = get_localzone()
35-
if hasattr(stz, "localize") and sys.version_info < (3, 6):
35+
if hasattr(stz, "localize") and sys.version_info < (3, 9):
3636
date_obj = stz.localize(date_obj)
3737
else:
3838
date_obj = date_obj.replace(tzinfo=stz)

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@
4848
license="BSD",
4949
zip_safe=False,
5050
keywords="dateparser",
51-
python_requires=">=3.7",
51+
python_requires=">=3.9",
5252
classifiers=[
5353
"Development Status :: 5 - Production/Stable",
5454
"Intended Audience :: Developers",
5555
"License :: OSI Approved :: BSD License",
5656
"Natural Language :: English",
5757
"Programming Language :: Python :: 3",
58-
"Programming Language :: Python :: 3.7",
59-
"Programming Language :: Python :: 3.8",
6058
"Programming Language :: Python :: 3.9",
6159
"Programming Language :: Python :: 3.10",
6260
"Programming Language :: Python :: 3.11",
61+
"Programming Language :: Python :: 3.12",
62+
"Programming Language :: Python :: 3.13",
6363
"Programming Language :: Python :: Implementation :: CPython",
6464
],
6565
)

0 commit comments

Comments
 (0)