Compare commits

...

4 Commits

Author SHA1 Message Date
Todd Gamblin
a846631e87 fool uv into using some black version
Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
2025-05-06 13:09:00 +02:00
Todd Gamblin
2d40b9e346 give up on putting docs dir in a variable somewhere
Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
2025-05-06 13:09:00 +02:00
Todd Gamblin
423717345b fix docs location
Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
2025-05-06 13:09:00 +02:00
Todd Gamblin
693f5256d7 readthedocs: use uv to build instead of pip
`uv` is faster than `pip`, and `pip install` can take a while in our
readthedocs builds in CI. Try using `uv` instead.

See [readthedocs's docs](https://docs.readthedocs.com/platform/stable/build-customization.html#install-dependencies-with-uv)
for details.

Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
2025-05-06 13:09:00 +02:00
2 changed files with 12 additions and 1 deletions

View File

@ -6,6 +6,17 @@ build:
- graphviz - graphviz
tools: tools:
python: "3.11" python: "3.11"
jobs:
create_environment:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv venv
install:
- uv pip install -r lib/spack/docs/requirements.txt
build:
html:
- uv run sphinx-build -T -b html docs $READTHEDOCS_OUTPUT/html
sphinx: sphinx:
configuration: lib/spack/docs/conf.py configuration: lib/spack/docs/conf.py

View File

@ -1,7 +1,7 @@
[project] [project]
name="spack" name="spack"
description="The spack package manager" description="The spack package manager"
requires-python=">=3.6" requires-python=">=3.6.2"
dependencies=[ dependencies=[
"clingo", "clingo",
"setuptools", "setuptools",