diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8cd7db1..b71bcaf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: strategy: matrix: python: + - "3.8" - "3.9" - "3.10" - "3.11" diff --git a/CHANGES b/CHANGES index 807b668..3696b21 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +1.0.6+md1 (2024-02-01) +====================== + +* Re-release current version with 3.8 support. + Release 1.0.6 (2024-01-13) ========================== diff --git a/pyproject.toml b/pyproject.toml index a68d669..34641b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ urls.Download = "https://pypi.org/project/sphinxcontrib-qthelp/" urls.Homepage = "https://www.sphinx-doc.org/" urls."Issue tracker" = "https://github.com/sphinx-doc/sphinx/issues" license.text = "BSD-2-Clause" -requires-python = ">=3.9" +requires-python = ">=3.8" # Classifiers list: https://pypi.org/classifiers/ classifiers = [ @@ -27,6 +27,7 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/sphinxcontrib/qthelp/__init__.py b/sphinxcontrib/qthelp/__init__.py index 0eb6bc7..9323220 100644 --- a/sphinxcontrib/qthelp/__init__.py +++ b/sphinxcontrib/qthelp/__init__.py @@ -6,7 +6,6 @@ import os import posixpath import re -from collections.abc import Iterable from os import path from typing import Any, cast @@ -23,8 +22,8 @@ from sphinx.util.template import SphinxRenderer -__version__ = '1.0.6' -__version_info__ = (1, 0, 6) +__version__ = '1.0.6+md1' +__version_info__ = (1, 0, 6, 'md1') logger = logging.getLogger(__name__) package_dir = path.abspath(path.dirname(__file__)) @@ -172,7 +171,7 @@ def write_toc(self, node: Node, indentlevel: int = 4) -> list[str]: parts.append(' ' * 4 * indentlevel + item) bullet_list = cast(nodes.bullet_list, node[1]) - list_items = cast(Iterable[nodes.list_item], bullet_list) + list_items = bullet_list for list_item in list_items: parts.extend(self.write_toc(list_item, indentlevel + 1)) parts.append(' ' * 4 * indentlevel + '') diff --git a/tox.ini b/tox.ini index e54e565..477ec6c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 2.4.0 envlist = - py{39,310,311,312,313}, + py{38,39,310,311,312,313}, flake8, mypy isolated_build = True @@ -9,7 +9,8 @@ isolated_build = True [testenv] deps= pytest - git+https://github.com/sphinx-doc/sphinx + !py38: git+https://github.com/sphinx-doc/sphinx + py38: sphinx extras= test setenv =