Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python-3.8 #109 #111

Merged
merged 1 commit into from
Nov 10, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions sphinx_intl/sphinx_util.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down