Skip to content

Commit

Permalink
Re-release current version with 3.8 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Feb 1, 2024
1 parent 3061e9b commit 8868b15
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
strategy:
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
Expand Down
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -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)
==========================

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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",
Expand Down
7 changes: 3 additions & 4 deletions sphinxcontrib/qthelp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import os
import posixpath
import re
from collections.abc import Iterable
from os import path
from typing import Any, cast

Expand All @@ -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__))
Expand Down Expand Up @@ -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 + '</section>')
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
[tox]
minversion = 2.4.0
envlist =
py{39,310,311,312,313},
py{38,39,310,311,312,313},
flake8,
mypy
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 =
Expand Down

0 comments on commit 8868b15

Please sign in to comment.