Skip to content

Commit

Permalink
Drop Python 3.8 and support 3.13 (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria authored Oct 12, 2024
1 parent e34e0e3 commit d24eb72
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
fail-fast: false
matrix:
include:
- { name: "3.8", python: "3.8", tox: py38 }
- { name: "3.12", python: "3.12", tox: py312 }
- { name: "3.9", python: "3.9", tox: py39 }
- { name: "3.13", python: "3.13", tox: py313 }
steps:
- uses: actions/checkout@v4.0.0
- uses: actions/setup-python@v5
Expand All @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.13"
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
Expand All @@ -54,7 +54,7 @@ jobs:
- uses: actions/checkout@v4.0.0
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.13"
- run: python -m pip install tox
- run: python -m tox -e lint
publish-to-pypi:
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ Changelog
------------------

- Remove `:cwe:` and `:cve:` roles, as these are officially included in Sphinx>=8.1.0.
- Support Python 3.9-3.13. Python 3.8 is no longer supported.

4.1.0 (2024-04-14)
------------------
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"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",
"Topic :: Software Development :: Documentation",
]
keywords = ["sphinx", "issues", "github"]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = ["sphinx"]

[project.urls]
Expand Down
6 changes: 3 additions & 3 deletions src/sphinx_issues/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import importlib.metadata
import re
from typing import Callable, Optional, Tuple
from typing import Callable, Optional

from docutils import nodes, utils
from sphinx.config import Config
Expand All @@ -13,7 +13,7 @@

def _get_default_group_and_project(
config: Config, uri_config_option: str
) -> Optional[Tuple[str, str]]:
) -> Optional[tuple[str, str]]:
"""
Get the default group/project or None if not set
"""
Expand Down Expand Up @@ -110,7 +110,7 @@ def _get_uri(
uri_config_option: str,
config: Config,
number: str,
group_and_project: Optional[Tuple[str, str]] = None,
group_and_project: Optional[tuple[str, str]] = None,
) -> str:
"""
Get a URI based on the given configuration and do some sanity checking
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = lint,py{38,39,310,311,312}
envlist = lint,py{39,310,311,312,313}

[testenv]
extras = tests
Expand Down

0 comments on commit d24eb72

Please sign in to comment.