Register HowToLens and HowToGalaxy as build targets - #53
Merged
Conversation
Adds both lecture repos to every stage of the build pipeline so they
tag, release, and regenerate notebooks in lockstep with the workspaces:
- pre_build.sh runs black + generate.py and commits both repos
- release.yml find_scripts/generate_notebooks/run_scripts/run_notebooks
matrices include howtogalaxy and howtolens
- release_workspaces writes version.txt, bumps Colab URLs, and tags
both repos on every release
- bump_colab_urls.sh regex extended to match PyAutoLabs/HowToGalaxy
and PyAutoLabs/HowToLens — without this, the bump_library_colab_urls
job would silently skip the HowTo URLs now written into PyAutoGalaxy
and PyAutoLens docs, paper.md, and READMEs
- autobuild/config/{copy_files,no_run}.yaml gain howtogalaxy/howtolens
keys (generate.py and run_python.py both key by project name)
- CLAUDE.md workspace list + bump_colab_urls.sh doc updated
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This was referenced Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Registers
HowToLensandHowToGalaxyas first-class build targets in the release pipeline, parallel to the existing workspaces. Both repos already have the structural shape of a workspace (scripts/chapter_N_*/,notebooks/chapter_N_*/,config/,version.txt,start_here.py), so no restructuring was needed — just registration.Previously neither repo was referenced anywhere in PyAutoBuild. The follow-up was noted after the HowToLens extraction (PyAutoLens PR #468) and again after the HowToGalaxy extraction (PyAutoGalaxy PR #363) but never acted on. This PR closes both follow-ups.
What changes
pre_build.shrun_workspacecalls forHowToGalaxyandHowToLens.github/workflows/release.ymlfind_scripts,generate_notebooksmatrix,run_scriptsConfigure,run_notebooksConfigure,release_workspacesmatrix — all extendedautobuild/config/copy_files.yamlhowtogalaxy:andhowtolens:(required —generate.pycrashes on missing key)autobuild/config/no_run.yamlhowtogalaxy: []+howtolens:with three known-broken tutorials carried over from the pre-extraction autolens skiplistautobuild/bump_colab_urls.shPyAutoLabs/HowToGalaxy/blob/...andPyAutoLabs/HowToLens/blob/...URLs get bumped alongside workspace URLsCLAUDE.mdWhy the bump_colab_urls.sh change matters
The HowToGalaxy and HowToLens extractions wrote Colab URLs like
PyAutoLabs/HowToLens/blob/TAG/notebooks/chapter_1/...into PyAutoGalaxy/PyAutoLens docs, paper.md, and READMEs. The old regex only matched(autofit|autogalaxy|autolens)_workspace, sobump_library_colab_urlswould silently skip every HowTo URL in the library docs on release. Smoke-tested the updated regex against a fixture with all three URL shapes — all bump correctly.First real exercise
Next
/pre_buildrun. HowToLens/HowToGalaxy should getversion.txtwritten, tagged, pushed, Colab URLs bumped, and their tutorials run in CI alongside the workspaces. If tutorial scripts break in CI for the first time the release report will flag them — acceptable first surface.Test plan
release.yml,copy_files.yaml,no_run.yamlall parsepre_build.shandbump_colab_urls.shparse (bash -n)bump_colab_urls.shsmoke-tested on a fixture with workspace + HowTo URLs — all bumped/pre_buildafter merge — watch for any chapter-tutorial failures and populateno_run.yamlforhowtogalaxy/howtolensas needed🤖 Generated with Claude Code