Skip to content

Commit a4144c6

Browse files
authored
chore: update Python version (#1241)
* chore: update Python version
1 parent 6a7c91c commit a4144c6

File tree

6 files changed

+41
-25
lines changed

6 files changed

+41
-25
lines changed

.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[flake8]
22

33
max-line-length = 119
4-
ignore = W503, E203, E501, E722, F401
4+
ignore = W503, E203, E501, E722, F401, E701, E704
55

66
exclude =
77
docs/conf.py

.github/workflows/main.yml

+27-19
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,30 +32,44 @@ 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.12" # Keep in sync with tox.ini
4551
env:
4652
TOXENV: docs
4753
steps:
4854
- uses: actions/checkout@v3
4955
- name: 'Set up Python ${{ matrix.python-version }}'
50-
uses: actions/setup-python@v4
56+
uses: actions/setup-python@v5
5157
with:
52-
python-version: '${{ matrix.python-version }}'
58+
python-version: ${{ matrix.python-version }}
5359
- name: Install language-pack-fr
54-
run: sudo apt-get update && sudo apt-get install language-pack-fr
55-
- name: Install python dependencies
56-
run: pip install tox
57-
- name: tox
58-
run: tox -e py
60+
run: sudo apt-get update && sudo apt-get install -y language-pack-fr build-essential
61+
- name: Install dependencies
62+
run: |
63+
python -m pip install --upgrade pip
64+
pip install tox
65+
- name: Run tests
66+
run: tox -e ${{ matrix.env.TOXENV }}
5967
- name: Upload coverage.xml to codecov
60-
if: ${{ matrix.python-version == '3.9' && matrix.env.TOXENV == 'latest'}}
68+
if: ${{ matrix.env.python-version == '3.9' && matrix.env.TOXENV == 'latest' }}
6169
uses: codecov/codecov-action@v3
6270

6371
pre-commit:
6472
runs-on: ubuntu-latest
6573
steps:
66-
- uses: actions/checkout@v3
67-
- uses: pre-commit/[email protected]
74+
- uses: actions/checkout@v3
75+
- uses: pre-commit/[email protected]

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v3
1313
- name: Set up Python
14-
uses: actions/setup-python@v4
14+
uses: actions/setup-python@v5
1515
with:
1616
python-version: "3.x"
1717
- name: Install dependencies

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

setup.cfg

+8
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ ignore =
2121
dateparser/freshness_date_parser.py E722
2222
dateparser/parser.py E722
2323
dateparser/docs/conf.py E402
24+
25+
# Additional ignored codes
26+
E203
27+
E501
28+
E722
29+
F401
30+
E701
31+
E704

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.8", # Python 3.8 is required for fuzzing
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)