Skip to content

Commit

Permalink
ci: use uv requirements on readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
tigarmo committed Jan 30, 2025
1 parent c025e17 commit b7f535b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@
version: 2

build:
os: ubuntu-22.04
os: ubuntu-24.04
apt_packages:
- curl
tools:
python: "3.10"
python: "3.12"
jobs:
post_checkout:
- git fetch --tags --unshallow # Also fetch tags
- git describe # Make sure we get a proper version
# Generate a requirements.txt file while RTD doesn't understand uv
- curl -LsSf https://astral.sh/uv/install.sh | sh
- source $HOME/.local/bin/env
- uv export --no-dev --extra doc --no-emit-workspace --no-emit-package pywin32 --output-file uv-requirements.txt

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand All @@ -24,7 +30,6 @@ sphinx:
# and requirements required to build your docs
python:
install:
- requirements: uv-requirements.txt
- method: pip
path: .
extra_requirements:
- docs

0 comments on commit b7f535b

Please sign in to comment.