Skip to content

Commit

Permalink
Docs: Use uv installer in readthedocs build (#6395)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas authored May 16, 2024
1 parent 589a3b2 commit be0db3c
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@ build:
- graphviz
os: ubuntu-22.04
tools:
python: '3.10'

# Need to install the package itself such that the entry points are installed and the API doc can build properly
python:
install:
- method: pip
path: .
extra_requirements:
- docs
- tests
- rest
- atomic_tools
python: '3.11'
jobs:
# Use uv to speed up the build
# https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-uv
post_create_environment:
- asdf plugin add uv
- asdf install uv 0.1.44
- asdf global uv 0.1.44
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install .[docs,tests,rest,atomic_tools]

# Let the build fail if there are any warnings
sphinx:
Expand Down

0 comments on commit be0db3c

Please sign in to comment.