]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Drop support for Python 3.7 (EOL since June 2023) (#1048)
authorAarni Koskela <akx@iki.fi>
Wed, 13 Dec 2023 11:28:43 +0000 (13:28 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Dec 2023 11:28:43 +0000 (13:28 +0200)
.github/workflows/ci.yml
babel/messages/extract.py
docs/dev.rst
pyproject.toml
setup.py
tox.ini

index 15f1712d1c1ffeb3949b9b95a86430b39c465dfd..c2096ea5b76335c9bbe322afc8ebcaa57b88836b 100644 (file)
@@ -29,12 +29,11 @@ jobs:
           - "windows-2022"
           - "macos-11"
         python-version:
-          - "3.7"
           - "3.8"
           - "3.9"
           - "3.10"
           - "3.11"
-          - "pypy-3.7"
+          - "pypy3.8"
           - "3.12"
     env:
       BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1"
@@ -71,7 +70,7 @@ jobs:
       - uses: actions/checkout@v4
       - uses: actions/setup-python@v4
         with:
-          python-version: "3.11"
+          python-version: "3.12"
           cache: "pip"
           cache-dependency-path: "**/setup.py"
       - run: pip install build -e .
index b13f1a9a60cd07a64918e6610ae9f1f4a43cd571..8e377987151950a02711a461760cc6975dfd33b0 100644 (file)
@@ -38,10 +38,10 @@ from typing import TYPE_CHECKING, Any
 from babel.util import parse_encoding, parse_future_flags, pathmatch
 
 if TYPE_CHECKING:
-    from typing import IO, Protocol
+    from typing import IO, Final, Protocol
 
     from _typeshed import SupportsItems, SupportsRead, SupportsReadline
-    from typing_extensions import Final, TypeAlias, TypedDict
+    from typing_extensions import TypeAlias, TypedDict
 
     class _PyOptions(TypedDict, total=False):
         encoding: str
index 97a105b98c6ba71b47f782087f525b71ab0ac73d..95f20d58cb1c0a8875cdc2815c33da1fa1bdb298 100644 (file)
@@ -30,8 +30,8 @@ Python Versions
 
 At the moment the following Python versions should be supported:
 
-*   Python 3.7 and up
-*   PyPy 3.7 and up
+*   Python 3.8 and up
+*   PyPy 3.8 and up
 
 Unicode
 -------
index c90b6e45e2757b76cb2be6aefa3e91b05db5ca00..5621c2eb7795b0d3058d25fff505be5ee43a905a 100644 (file)
@@ -1,5 +1,5 @@
 [tool.ruff]
-target-version = "py37"
+target-version = "py38"
 select = [
     "B",
     "C",
index 4da20aabff68af5f3244d80f19968eef7a45e527..b43e5e52b5ddba42defcf66cd3f99ad7595f216c 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,6 @@ setup(
         'Programming Language :: Python',
         'Programming Language :: Python :: 3',
         'Programming Language :: Python :: 3 :: Only',
-        'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
         'Programming Language :: Python :: 3.10',
@@ -57,7 +56,7 @@ setup(
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Software Development :: Libraries :: Python Modules',
     ],
-    python_requires='>=3.7',
+    python_requires='>=3.8',
     packages=['babel', 'babel.messages', 'babel.localtime'],
     package_data={"babel": ["py.typed"]},
     include_package_data=True,
diff --git a/tox.ini b/tox.ini
index f91ba5ba73824332b309206f322cdc391fdf7c96..cdb2514e207fd586b8f9cd366afc3d1c4f824d28 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,9 @@
 [tox]
 isolated_build = true
 envlist =
-    py{37,38,39,310,311,312}
+    py{38,39,310,311,312}
     pypy3
-    py{37,38}-pytz
+    py{38}-pytz
     py{311,312}-setuptools
 
 [testenv]
@@ -30,7 +30,6 @@ passenv =
 [gh-actions]
 python =
     pypy3: pypy3
-    3.7: py37
     3.8: py38
     3.9: py39
     3.10: py310