Skip to content

Add version.txt and check_version() in welcome.py - #72

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/default-branch-release-to-main
Apr 18, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/default-branch-release-to-main

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Pairs the workspace to a specific library version. Adds version.txt (the version this workspace was generated against) and wires autoconf.check_version() into welcome.py so users see a clear error if their installed PyAutoLens drifts from the workspace they cloned.

This is the workspace half of the default-branch-release-to-main cleanup tracked in #71. The release branch is being retired; from now on the PyAutoBuild release pipeline tags workspace releases on main and writes version.txt instead of fast-forwarding a parallel release branch.

Scripts Changed

  • welcome.py — adds from autoconf import check_version and calls check_version(al.__version__) at startup so a mismatched workspace/library pair fails loudly before any modeling code runs.
  • version.txt (new) — pins the workspace to the library version it was generated against.

Upstream PR

Test Plan

  • from autoconf import check_version; check_version(autolens.__version__) runs cleanly from the workspace cwd
  • Smoke tests pass for autolens_workspace

🤖 Generated with Claude Code

Companion to PyAutoConf#94 / autolens_workspace#71. version.txt pins
the workspace to the library version it was generated against;
welcome.py calls autoconf.check_version() to surface mismatches early.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Apr 18, 2026
@Jammy2211
Jammy2211 merged commit 8ec327c into main Apr 18, 2026
@Jammy2211
Jammy2211 deleted the feature/default-branch-release-to-main branch April 18, 2026 12:33
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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