Skip to content

Commit 99358d4

Browse files
authored
Make Sphinx documentation build not dependent on nox (#1368)
* Removed nox from doc build * Fix pytest run for cmd2-ext-test and try to fix doc build
1 parent 2dea62e commit 99358d4

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

.github/workflows/doc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ jobs:
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828
- name: Install python prerequisites
29-
run: pip install -U --user pip setuptools setuptools-scm nox
29+
run: pip install -U --user pip setuptools setuptools-scm sphinx sphinx-autobuild sphinx-rtd-theme . plugins/ext_test
3030
- name: Sphinx documentation build
31-
run: python -m nox --non-interactive --session docs
31+
run: python -m sphinx -M html docs docs/_build -nvWT

noxfile.py

-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
import nox
22

33

4-
@nox.session(python=['3.12'])
5-
def docs(session):
6-
session.install(
7-
'sphinx',
8-
'sphinx-rtd-theme',
9-
'.',
10-
'plugins/ext_test',
11-
)
12-
session.chdir('docs')
13-
tmpdir = session.create_tmp()
14-
15-
session.run(
16-
'sphinx-build', '-a', '-W', '-T', '-b', 'html', '-d', '{}/doctrees'.format(tmpdir), '.', '{}/html'.format(tmpdir)
17-
)
18-
19-
204
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'])
215
@nox.parametrize('plugin', [None, 'ext_test', 'template', 'coverage'])
226
def tests(session, plugin):

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ packages = ["cmd2"]
320320

321321
[tool.uv]
322322
dev-dependencies = [
323+
"cmd2-ext-test",
323324
"codecov",
324325
"doc8",
325326
"invoke",
@@ -333,3 +334,6 @@ dev-dependencies = [
333334
"ruff",
334335
"twine",
335336
]
337+
338+
[tool.uv.sources]
339+
cmd2-ext-test = { path = "plugins/ext_test", editable = true }

0 commit comments

Comments
 (0)