Skip to content

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

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

feat: embed workspace_version in config + drop welcome.py duplicate check#5
Jammy2211 merged 1 commit intomainfrom
feature/workspace-version-config-check

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Embed version.workspace_version: 2026.4.13.6 and a user-facing version.workspace_version_check: True override flag in config/general.yaml, so the new config-aware autoconf.workspace.check_version (PyAutoLabs/PyAutoConf#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(<lib>.__version__) call from welcome.py — the libraries do the check on import, so calling it again from welcome.py was duplicate work that fired only when users explicitly ran welcome.py (which most don't after the first time).

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 — add a version: block with workspace_version: 2026.4.13.6 and workspace_version_check: True
  • welcome.py — remove the redundant from autoconf import check_version import and the check_version(<lib>.__version__) call (libraries now run the check on import via PyAutoFit/Galaxy/Lens __init__.py)

Upstream PR

Test Plan

  • python -c "import <lib>" from this workspace runs silently (no warning, no error — version key matches installed library)
  • bash PyAutoBuild/verify_workspace_versions.sh reports this 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 3181c05 into main Apr 30, 2026
5 checks passed
@Jammy2211 Jammy2211 deleted the feature/workspace-version-config-check branch April 30, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant