Skip to content

feat: embed workspace_version in config + drop welcome.py duplicate check - #112

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/workspace-version-config-check
Apr 30, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/workspace-version-config-check

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Extend the existing version: block in config/general.yaml with workspace_version: 2026.4.13.6 and a user-facing workspace_version_check: True override flag, so the new config-aware autoconf.workspace.check_version (PyAutoLabs/PyAutoNerves#101, now called from every import autofit/autogalaxy/autolens) can resolve the workspace version from a canonical source that travels with the user's config directory. The version.txt legacy fallback continues to work.

Also drop the now-redundant check_version(al.__version__) call from welcome.py — import autolens does the check on import, so calling it again was duplicate work that fired only when users explicitly ran welcome.py.

Setting workspace_version_check: False is the recommended bypass for users on main-branch workspace clones, where main updates faster than library releases and mismatches are expected.

Scripts Changed

  • config/general.yaml — append workspace_version: 2026.4.13.6 and workspace_version_check: True to the existing version: block (keeps existing python_version_check)
  • welcome.py — remove the redundant from autoconf import check_version import and the check_version(al.__version__) call (libraries now run the check on import via PyAutoLens __init__.py)

Upstream PR

Test Plan

  • python -c "import autolens" from this workspace runs silently (no warning, no error)
  • bash PyAutoBuild/verify_workspace_versions.sh reports autolens_workspace as ok
  • CI smoke tests pass

🤖 Generated with Claude Code

@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Apr 30, 2026
@Jammy2211
Jammy2211 merged commit 521859e into main Apr 30, 2026
5 checks passed
@Jammy2211
Jammy2211 deleted the feature/workspace-version-config-check branch April 30, 2026 18:16
@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