Skip to content

Commit f0b7604

Browse files
phlaxAA-Turner
andauthored
Remove Sphinx as a required dependency (#10)
Signed-off-by: Ryan Northey <[email protected]> Co-authored-by: Adam Turner <[email protected]>
1 parent ff4bcae commit f0b7604

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install dependencies
4545
run: |
4646
python -m pip install --upgrade pip
47-
python -m pip install .[test]
47+
python -m pip install .[test,standalone]
4848
4949
- name: Test with pytest
5050
run: python -m pytest -vv --durations 25

CHANGES

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Release 1.1.10 (unreleased)
2+
===========================
3+
4+
* Remove Sphinx as a required dependency, as circular dependencies may cause
5+
failure with package managers that expect a directed acyclic graph (DAG)
6+
of dependencies.
7+
18
Release 1.1.9 (2023-08-20)
29
==========================
310

pyproject.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ classifiers = [
4040
"Topic :: Text Processing",
4141
"Topic :: Utilities",
4242
]
43-
dependencies = [
44-
"Sphinx>=5",
45-
]
43+
dependencies = []
4644
dynamic = ["version"]
4745

4846
[project.optional-dependencies]
@@ -54,6 +52,9 @@ lint = [
5452
"mypy",
5553
"docutils-stubs",
5654
]
55+
standalone = [
56+
"Sphinx>=5",
57+
]
5758

5859
[[project.authors]]
5960
name = "Georg Brandl"

sphinxcontrib/serializinghtml/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ class JSONHTMLBuilder(SerializingHTMLBuilder):
157157

158158

159159
def setup(app: Sphinx) -> dict[str, Any]:
160+
app.require_sphinx('5.0')
160161
app.setup_extension('sphinx.builders.html')
161162
app.add_builder(JSONHTMLBuilder)
162163
app.add_builder(PickleHTMLBuilder)

0 commit comments

Comments
 (0)