Skip to content

Commit

Permalink
Drop support for Python 3.7 (EOL since June 2023) (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Dec 13, 2023
1 parent a8505a4 commit 2a1709a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -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"
Expand Down Expand Up @@ -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 .
Expand Down
4 changes: 2 additions & 2 deletions babel/messages/extract.py
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/dev.rst
Expand Up @@ -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
-------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,5 +1,5 @@
[tool.ruff]
target-version = "py37"
target-version = "py38"
select = [
"B",
"C",
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -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',
Expand All @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions 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]
Expand All @@ -30,7 +30,6 @@ passenv =
[gh-actions]
python =
pypy3: pypy3
3.7: py37
3.8: py38
3.9: py39
3.10: py310
Expand Down

0 comments on commit 2a1709a

Please sign in to comment.