Skip to content

Register HowToLens and HowToGalaxy as build targets - #53

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/register-howto-repos
Apr 21, 2026
Merged

Register HowToLens and HowToGalaxy as build targets#53
Jammy2211 merged 1 commit into
mainfrom
feature/register-howto-repos

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Registers HowToLens and HowToGalaxy as 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

File Change
pre_build.sh Two new run_workspace calls for HowToGalaxy and HowToLens
.github/workflows/release.yml find_scripts, generate_notebooks matrix, run_scripts Configure, run_notebooks Configure, release_workspaces matrix — all extended
autobuild/config/copy_files.yaml New empty keys howtogalaxy: and howtolens: (required — generate.py crashes on missing key)
autobuild/config/no_run.yaml howtogalaxy: [] + howtolens: with three known-broken tutorials carried over from the pre-extraction autolens skiplist
autobuild/bump_colab_urls.sh Regex extended so PyAutoLabs/HowToGalaxy/blob/... and PyAutoLabs/HowToLens/blob/... URLs get bumped alongside workspace URLs
CLAUDE.md Workspace table + bump_colab_urls description updated

Why 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, so bump_library_colab_urls would 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_build run. HowToLens/HowToGalaxy should get version.txt written, 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

  • YAML lint: release.yml, copy_files.yaml, no_run.yaml all parse
  • Bash lint: pre_build.sh and bump_colab_urls.sh parse (bash -n)
  • bump_colab_urls.sh smoke-tested on a fixture with workspace + HowTo URLs — all bumped
  • First /pre_build after merge — watch for any chapter-tutorial failures and populate no_run.yaml for howtogalaxy/howtolens as needed

🤖 Generated with Claude Code

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>
@Jammy2211
Jammy2211 merged commit ad0e745 into main Apr 21, 2026
@Jammy2211
Jammy2211 deleted the feature/register-howto-repos branch April 21, 2026 15:56
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