Skip to content

Commit b2dc14b

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

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

Diff for: .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

Diff for: CHANGES

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Release 1.0.5 (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.0.4 (2023-08-09)
29
==========================
310

Diff for: pyproject.toml

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

4745
[project.optional-dependencies]
@@ -53,6 +51,9 @@ lint = [
5351
"mypy",
5452
"docutils-stubs",
5553
]
54+
standalone = [
55+
"Sphinx>=5",
56+
]
5657

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

Diff for: sphinxcontrib/devhelp/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def write_index(title: str, refs: list[Any], subitems: Any) -> None:
129129

130130

131131
def setup(app: Sphinx) -> dict[str, Any]:
132+
app.require_sphinx('5.0')
132133
app.setup_extension('sphinx.builders.html')
133134
app.add_builder(DevhelpBuilder)
134135
app.add_message_catalog(__name__, path.join(package_dir, 'locales'))

0 commit comments

Comments
 (0)