diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15f1712d1..c2096ea5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 . diff --git a/babel/messages/extract.py b/babel/messages/extract.py index b13f1a9a6..8e3779871 100644 --- a/babel/messages/extract.py +++ b/babel/messages/extract.py @@ -38,10 +38,10 @@ 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 diff --git a/docs/dev.rst b/docs/dev.rst index 97a105b98..95f20d58c 100644 --- a/docs/dev.rst +++ b/docs/dev.rst @@ -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 ------- diff --git a/pyproject.toml b/pyproject.toml index c90b6e45e..5621c2eb7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.ruff] -target-version = "py37" +target-version = "py38" select = [ "B", "C", diff --git a/setup.py b/setup.py index 4da20aabf..b43e5e52b 100755 --- a/setup.py +++ b/setup.py @@ -47,7 +47,6 @@ def run(self): '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 @@ def run(self): '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 f91ba5ba7..cdb2514e2 100644 --- 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