Skip to content

Commit d16c86b

Browse files
committed
Bump docs requirements.
1 parent 2665b33 commit d16c86b

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

docs/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
5-
# pip-compile --config=pyproject.toml --resolver=backtracking docs/requirements.in
5+
# pip-compile --config=pyproject.toml docs/requirements.in
66
#
77
alabaster==0.7.13
88
# via sphinx
@@ -38,7 +38,7 @@ markupsafe==2.1.3
3838
# via jinja2
3939
matplotlib==3.7.2
4040
# via sphinxext-opengraph
41-
numpy==1.25.1
41+
numpy==1.25.2
4242
# via
4343
# contourpy
4444
# matplotlib
@@ -66,7 +66,7 @@ snowballstemmer==2.2.0
6666
# via sphinx
6767
soupsieve==2.4.1
6868
# via beautifulsoup4
69-
sphinx==7.1.1
69+
sphinx==7.1.2
7070
# via
7171
# -r docs/requirements.in
7272
# furo

noxfile.py

+15-1
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,16 @@ def docs(session, builder):
7474
argv = ["-n", "-T", "-W"]
7575
if builder != "spelling":
7676
argv += ["-q"]
77+
posargs = session.posargs or [tmpdir / builder]
7778
session.run(
7879
"python",
7980
"-m",
8081
"sphinx",
8182
"-b",
8283
builder,
8384
DOCS,
84-
tmpdir / builder,
8585
*argv,
86+
*posargs,
8687
)
8788

8889

@@ -94,3 +95,16 @@ def docs_style(session):
9495
"pygments-github-lexers",
9596
)
9697
session.run("python", "-m", "doc8", "--config", PYPROJECT, DOCS)
98+
99+
100+
@session(default=False)
101+
def requirements(session):
102+
session.install("pip-tools")
103+
for each in [DOCS / "requirements.in"]:
104+
session.run(
105+
"pip-compile",
106+
"--resolver",
107+
"backtracking",
108+
"-U",
109+
each.relative_to(ROOT),
110+
)

0 commit comments

Comments
 (0)