Skip to content

Docs: build with uv, without conda or R - #74

Merged
jonathan-taylor merged 1 commit into
mainfrom
docs-uv
Oct 27, 2026
Merged

jonathan-taylor merged 1 commit into
mainfrom
docs-uv

Conversation

@jonathan-taylor

Copy link
Copy Markdown
Collaborator

Summary

  • docs/make_notebooks.py: runs the lab (Ch06) in a uv virtual environment (uv venv, uv pip install, then jupyter nbconvert from that environment) instead of a conda environment. The default --python goes from 3.10 to 3.12, since ISLP requires ≥3.11.
  • build_docs.yml:
    • installs with astral-sh/setup-uv and uv pip install instead of setup-python and pip;
    • no longer installs R or libtirpc-dev;
    • rpy2 is out of docs/requirements.txt. No docs page or lab runs R: I checked the code cells of the labs at the pinned submodule.
  • Deploys only from main: before this, a run on any branch deployed Pages. A run on another branch now only builds, which is how this branch was tested.
  • Changelog: a bullet under Unreleased. It lands in 0.7.0 if Changelog for 0.7.0 #73 merges first.

Test

Run 40557052093 on this branch: the build passed, and installing took 30 s instead of 1m50s.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathan-taylor
jonathan-taylor merged commit 5acff90 into main Oct 27, 2026
3 checks passed
jonathan-taylor added a commit that referenced this pull request Oct 27, 2026
…74

The merge took main's checkout and install, so a release's build used
main's docs and ISLP from source. Back: the tag's checkout, ISLP==X.Y.Z
from PyPI (with uv), rpy2 filtered from an old tag's requirements, and
the release builds deploy from any branch (dev/ only from main).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant