Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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