diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b72cf4..36dde00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false max-parallel: 5 matrix: - python-version: [3.9, '3.10', '3.11', '3.12', '3.13', '3.14'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15'] steps: - name: Print github context diff --git a/pyproject.toml b/pyproject.toml index e86e3da..c24ca88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [ ] description = "Sphinx utility that make it easy to translate and to apply translation." readme = "README.rst" -requires-python = ">=3.9" +requires-python = ">=3.10" license = "BSD-2-Clause" license-files = ["LICENSE"] dependencies = [ @@ -25,12 +25,12 @@ classifiers = [ "Topic :: Text Processing :: General", "Topic :: Utilities", "Operating System :: OS Independent", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Framework :: Sphinx", ] @@ -70,5 +70,8 @@ local_scheme = "no-local-version" ignore_missing_imports = true strict_optional = false +[tool.ruff] +target-version = "py310" + [tool.uv.sources] sphinx-intl = { workspace = true } diff --git a/sphinx_intl/pycompat.py b/sphinx_intl/pycompat.py index 23e9b1d..a205620 100644 --- a/sphinx_intl/pycompat.py +++ b/sphinx_intl/pycompat.py @@ -5,7 +5,8 @@ import os import sys import warnings -from typing import Any, Callable +from collections.abc import Callable +from typing import Any # ------------------------------------------------------------------------------ # Python 2/3 compatibility diff --git a/tests/path.py b/tests/path.py index ca78554..21ad702 100755 --- a/tests/path.py +++ b/tests/path.py @@ -182,4 +182,4 @@ def joinpath(self, *args): __div__ = __truediv__ = joinpath def __repr__(self): - return '{}({})'.format(self.__class__.__name__, str.__repr__(self)) + return f'{self.__class__.__name__}({str.__repr__(self)})' diff --git a/tox.ini b/tox.ini index abebb07..484754b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,17 +1,17 @@ [tox] envlist = - py{39,310,311,312,313,314}, + py{310,311,312,313,314,315}, lint, mypy [gh-actions] python = - 3.9: py39 3.10: py310 3.11: py311, lint, check 3.12: py312 3.13: py313 3.14: py314 + 3.15: py315 [testenv] deps=-e.[test]