Skip to content

Commit 652e338

Browse files
committed
Ensure dependencies are installed when building docs
1 parent af8260e commit 652e338

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ jobs:
9999
- name: Docs
100100
if: startsWith(matrix.os, 'ubuntu') && matrix.python-version == 3.10
101101
run: |
102-
python3 -m pip install furo sphinx-copybutton sphinx-issues sphinx-removed-in sphinxext-opengraph
103102
make doccheck
104103
105104
- name: After success

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ coverage:
1717

1818
.PHONY: doc
1919
doc:
20+
python3 -c "import PIL" > /dev/null 2>&1 || python3 -m pip install .
21+
python3 -c "import olefile" > /dev/null 2>&1 || python3 -m pip install olefile
2022
$(MAKE) -C docs html
2123

2224
.PHONY: doccheck
2325
doccheck:
24-
$(MAKE) -C docs html
26+
$(MAKE) doc
2527
# Don't make our tests rely on the links in the docs being up every single build.
2628
# We don't control them. But do check, and update them to the target of their redirects.
2729
$(MAKE) -C docs linkcheck || true

docs/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ clean:
4444

4545
install-sphinx:
4646
$(PYTHON) -c "import sphinx" > /dev/null 2>&1 || $(PYTHON) -m pip install sphinx
47+
$(PYTHON) -c "import sphinx_copybutton" > /dev/null 2>&1 || $(PYTHON) -m pip install sphinx-copybutton
48+
$(PYTHON) -c "import sphinx_issues" > /dev/null 2>&1 || $(PYTHON) -m pip install sphinx-issues
49+
$(PYTHON) -c "import sphinx_removed_in" > /dev/null 2>&1 || $(PYTHON) -m pip install sphinx-removed-in
50+
$(PYTHON) -c "import sphinxext_opengraph" > /dev/null 2>&1 || $(PYTHON) -m pip install sphinxext-opengraph
4751
$(PYTHON) -c "import furo" > /dev/null 2>&1 || $(PYTHON) -m pip install furo
4852

4953
html:

0 commit comments

Comments
 (0)