diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8cd3127..1cc9dbd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.9, '3.10', '3.11', '3.12', '3.13'] + python-version: [3.9, '3.10', '3.11', '3.12', '3.13'] max-parallel: 1 steps: @@ -69,7 +69,7 @@ jobs: - name: Setup python uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.9 - name: Install tox and any other dependencies for test run: | diff --git a/pyproject.toml b/pyproject.toml index d343047..b937b8b 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.8" +requires-python = ">=3.9" license = {file = "LICENSE"} dependencies = [ "setuptools", @@ -26,7 +26,6 @@ classifiers = [ "Topic :: Text Processing :: General", "Topic :: Utilities", "Operating System :: OS Independent", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/sphinx_intl/sphinx_util.py b/sphinx_intl/sphinx_util.py index b433060..6f55cfc 100644 --- a/sphinx_intl/sphinx_util.py +++ b/sphinx_intl/sphinx_util.py @@ -1,9 +1,9 @@ -from typing import Iterator, List +from collections.abc import Iterator # port from https://github.com/sphinx-doc/sphinx/blob/ad41e0b/sphinx/util/tags.py class Tags: - def __init__(self, tags: List[str] = None) -> None: + def __init__(self, tags: list[str] = None) -> None: self.tags = dict.fromkeys(tags or [], True) def has(self, tag: str) -> bool: diff --git a/tox.ini b/tox.ini index 5c4703c..3d76503 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,11 @@ [tox] envlist = - py{38,39,310,311,312,313}, + py{39,310,311,312,313}, lint, mypy [gh-actions] python = - 3.8: py38 3.9: py39 3.10: py310 3.11: py311