Skip to content

Commit 2a1709a

Browse files
authored
Drop support for Python 3.7 (EOL since June 2023) (#1048)
1 parent a8505a4 commit 2a1709a

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ jobs:
2929
- "windows-2022"
3030
- "macos-11"
3131
python-version:
32-
- "3.7"
3332
- "3.8"
3433
- "3.9"
3534
- "3.10"
3635
- "3.11"
37-
- "pypy-3.7"
36+
- "pypy3.8"
3837
- "3.12"
3938
env:
4039
BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1"
@@ -71,7 +70,7 @@ jobs:
7170
- uses: actions/checkout@v4
7271
- uses: actions/setup-python@v4
7372
with:
74-
python-version: "3.11"
73+
python-version: "3.12"
7574
cache: "pip"
7675
cache-dependency-path: "**/setup.py"
7776
- run: pip install build -e .

babel/messages/extract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
from babel.util import parse_encoding, parse_future_flags, pathmatch
3939

4040
if TYPE_CHECKING:
41-
from typing import IO, Protocol
41+
from typing import IO, Final, Protocol
4242

4343
from _typeshed import SupportsItems, SupportsRead, SupportsReadline
44-
from typing_extensions import Final, TypeAlias, TypedDict
44+
from typing_extensions import TypeAlias, TypedDict
4545

4646
class _PyOptions(TypedDict, total=False):
4747
encoding: str

docs/dev.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Python Versions
3030

3131
At the moment the following Python versions should be supported:
3232

33-
* Python 3.7 and up
34-
* PyPy 3.7 and up
33+
* Python 3.8 and up
34+
* PyPy 3.8 and up
3535

3636
Unicode
3737
-------

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.ruff]
2-
target-version = "py37"
2+
target-version = "py38"
33
select = [
44
"B",
55
"C",

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def run(self):
4747
'Programming Language :: Python',
4848
'Programming Language :: Python :: 3',
4949
'Programming Language :: Python :: 3 :: Only',
50-
'Programming Language :: Python :: 3.7',
5150
'Programming Language :: Python :: 3.8',
5251
'Programming Language :: Python :: 3.9',
5352
'Programming Language :: Python :: 3.10',
@@ -57,7 +56,7 @@ def run(self):
5756
'Programming Language :: Python :: Implementation :: PyPy',
5857
'Topic :: Software Development :: Libraries :: Python Modules',
5958
],
60-
python_requires='>=3.7',
59+
python_requires='>=3.8',
6160
packages=['babel', 'babel.messages', 'babel.localtime'],
6261
package_data={"babel": ["py.typed"]},
6362
include_package_data=True,

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
22
isolated_build = true
33
envlist =
4-
py{37,38,39,310,311,312}
4+
py{38,39,310,311,312}
55
pypy3
6-
py{37,38}-pytz
6+
py{38}-pytz
77
py{311,312}-setuptools
88

99
[testenv]
@@ -30,7 +30,6 @@ passenv =
3030
[gh-actions]
3131
python =
3232
pypy3: pypy3
33-
3.7: py37
3433
3.8: py38
3534
3.9: py39
3635
3.10: py310

0 commit comments

Comments
 (0)