Skip to content

Commit 18b0dcd

Browse files
committed
Use uv in readthedocs
1 parent 12b0ad2 commit 18b0dcd

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.readthedocs.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,15 @@ build:
1111
tools:
1212
python: "3.11"
1313
jobs:
14-
post_create_environment:
15-
# Install poetry
16-
# https://python-poetry.org/docs/#installing-manually
17-
- pip install poetry
18-
# Tell poetry to not use a virtual environment
19-
- poetry config virtualenvs.create false
20-
post_install:
21-
# Install dependencies with 'main' and 'docs' dependency group
22-
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
23-
- poetry install --only main,docs
14+
pre_create_environment:
15+
- asdf plugin add uv
16+
- asdf install uv latest
17+
- asdf global uv latest
18+
create_environment:
19+
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
20+
install:
21+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docs
2422

2523
# Build documentation in the docs/ directory with Sphinx
2624
sphinx:
2725
configuration: docs/conf.py
28-
29-
# If using Sphinx, optionally build your docs in additional formats such as PDF
30-
# formats:
31-
# - pdf

0 commit comments

Comments
 (0)