Skip to content

Commit 04b5cd8

Browse files
committed
py(deps[dev]): Replace sphinx/furo stack with gp-sphinx packages
why: Consolidate docs dependencies into the gp-sphinx shared platform, replacing individual sphinx extensions with curated package bundles. what: - Remove sphinx<9, furo, sphinx-autodoc-typehints, sphinx-inline-tabs, sphinxext-opengraph, sphinx-copybutton, sphinxext-rediraffe, sphinx-design, myst-parser, linkify-it-py from dev/docs groups - Add gp-sphinx and sphinx-pytest-fixtures (editable from local workspace) - Move types-docutils into dev group (needed for sphinx_pytest_fixtures types) - Add [tool.uv.sources] pointing to local gp-sphinx packages - Update uv.lock
1 parent a9a1147 commit 04b5cd8

2 files changed

Lines changed: 104 additions & 76 deletions

File tree

pyproject.toml

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,11 @@ Changes = "https://github.com/tmux-python/libtmux/blob/master/CHANGES"
5151

5252
[dependency-groups]
5353
dev = [
54-
# Docs
55-
"sphinx<9", # https://www.sphinx-doc.org/
56-
"furo", # https://pradyunsg.me/furo/
57-
"gp-libs", # https://gp-libs.git-pull.com/
58-
"sphinx-autobuild", # https://sphinx-extensions.readthedocs.io/en/latest/sphinx-autobuild.html
59-
"sphinx-autodoc-typehints", # https://sphinx-autodoc-typehints.readthedocs.io/
60-
"sphinx-inline-tabs", # https://sphinx-inline-tabs.readthedocs.io/
61-
"sphinxext-opengraph", # https://sphinxext-opengraph.readthedocs.io/
62-
"sphinx-copybutton", # https://sphinx-copybutton.readthedocs.io/
63-
"sphinxext-rediraffe", # https://sphinxext-rediraffe.readthedocs.io/
64-
"sphinx-design", # https://sphinx-design.readthedocs.io/
65-
"myst-parser", # https://myst-parser.readthedocs.io/
66-
"linkify-it-py", # https://github.com/tsutsu3/linkify-it-py
54+
# Docs (via gp-sphinx)
55+
"gp-sphinx",
56+
"sphinx-pytest-fixtures",
57+
"sphinx-autobuild",
58+
"types-docutils",
6759
# Testing
6860
"typing-extensions; python_version < '3.11'",
6961
"gp-libs",
@@ -79,22 +71,12 @@ dev = [
7971
# Lint
8072
"ruff",
8173
"mypy",
82-
"types-docutils", # stubs for docutils used by sphinx_pytest_fixtures
8374
]
8475

8576
docs = [
86-
"sphinx<9", # https://www.sphinx-doc.org/
87-
"furo", # https://pradyunsg.me/furo/
88-
"gp-libs", # https://gp-libs.git-pull.com/
89-
"sphinx-autobuild", # https://sphinx-extensions.readthedocs.io/en/latest/sphinx-autobuild.html
90-
"sphinx-autodoc-typehints", # https://sphinx-autodoc-typehints.readthedocs.io/
91-
"sphinx-inline-tabs", # https://sphinx-inline-tabs.readthedocs.io/
92-
"sphinxext-opengraph", # https://sphinxext-opengraph.readthedocs.io/
93-
"sphinx-copybutton", # https://sphinx-copybutton.readthedocs.io/
94-
"sphinxext-rediraffe", # https://sphinxext-rediraffe.readthedocs.io/
95-
"sphinx-design", # https://sphinx-design.readthedocs.io/
96-
"myst-parser", # https://myst-parser.readthedocs.io/
97-
"linkify-it-py", # https://github.com/tsutsu3/linkify-it-py
77+
"gp-sphinx",
78+
"sphinx-pytest-fixtures",
79+
"sphinx-autobuild",
9880
]
9981
testing = [
10082
"typing-extensions; python_version < '3.11'",
@@ -122,6 +104,12 @@ libtmux = "libtmux.pytest_plugin"
122104
requires = ["hatchling"]
123105
build-backend = "hatchling.build"
124106

107+
[tool.uv.sources]
108+
gp-sphinx = { path = "../gp-sphinx/packages/gp-sphinx", editable = true }
109+
sphinx-fonts = { path = "../gp-sphinx/packages/sphinx-fonts", editable = true }
110+
sphinx-gptheme = { path = "../gp-sphinx/packages/sphinx-gptheme", editable = true }
111+
sphinx-pytest-fixtures = { path = "../gp-sphinx/packages/sphinx-pytest-fixtures", editable = true }
112+
125113
[tool.mypy]
126114
strict = true
127115
python_version = "3.10"

uv.lock

Lines changed: 90 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)