Skip to content

Commit c6a3eda

Browse files
sneakers-the-ratlwasser
authored andcommitted
skip non-hatch sphinx docs build on windows
1 parent 27f8586 commit c6a3eda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_template_init.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ def test_docs_build(documentation: str, generated: Callable[..., Path], use_hatc
185185
elif documentation == "mkdocs":
186186
run_command("mkdocs build", project)
187187
elif documentation == "sphinx":
188+
if sys.platform == "win32":
189+
pytest.skip(
190+
"Dont know enough about invoking shell commands on windows for this :(",
191+
)
188192
run_command("sphinx-apidoc -o docs/api src/alien_clones", project)
189193
# prepend pythonpath so we don't have to actually install here...
190194
run_command(f"PYTHONPATH={str(project/'src')} sphinx-build -W -b html docs docs/_build", project)

0 commit comments

Comments
 (0)