Skip to content

Commit 1a61de9

Browse files
authored
Allow sphinx v6 & bump version (#22)
* try out Sphinx v6 and py311, see what happens 🤷 * Skip py36 and py37 with sphinx v6 * Remove obsolete skip referencing sphinx 3.5.4 * Correctly use py311 in CI * Changelog entry and version bump
1 parent 581e2aa commit 1a61de9

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

.github/workflows/test_build_docs.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
13+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
1414
docs-dir: ["doc", "doc_copybutton"]
15-
sphinx-ver: ["4.5.0", "5.3.0"]
15+
sphinx-ver: ["4.5.0", "5.3.0", "6.1.3"]
1616
exclude:
17-
# py 3.10 + sphinx 3.5.4 has issues with typing
18-
- python-version: "3.10"
19-
sphinx-ver: "3.5.4"
17+
# Sphinx v6 does not support python 3.6:
18+
- python-version: "3.6"
19+
sphinx-ver: "6.1.3"
20+
# Sphinx v6 does not support python 3.7
21+
- python-version: "3.7"
22+
sphinx-ver: "6.1.3"
2023

2124
steps:
2225

doc/index.rst

+7
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ There's an example of this in the doc_copybutton folder.
154154
Changelog
155155
================================
156156

157+
V0.4.0 - 08-apr-2023
158+
-----------------------
159+
160+
- Loosened max sphinx version to v6, up from v5.
161+
- Enabled Python 3.11 in CI tests.
162+
163+
157164
V0.3.1 - 11-dec-2022
158165
-----------------------
159166

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
package_data={'sphinx_toggleprompt': ['_static/toggleprompt.js_t']},
2929
classifiers=["License :: OSI Approved :: MIT License"],
3030
install_requires=[
31-
"sphinx>=4.5.0,<6",
31+
"sphinx>=4.5.0,<7",
3232
]
3333
)

sphinx_toggleprompt/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33

44

5-
__version__ = "0.3.1"
5+
__version__ = "0.4.0"
66
logger = logging.getLogger(__name__)
77

88

0 commit comments

Comments
 (0)