Skip to content

chore(container): drop vestigial local fallback, use sys.modules-alias bridge#236

Open
ywatanabe1989 wants to merge 1 commit intodevelopfrom
chore/cleanup-scitex-container-fallback
Open

chore(container): drop vestigial local fallback, use sys.modules-alias bridge#236
ywatanabe1989 wants to merge 1 commit intodevelopfrom
chore/cleanup-scitex-container-fallback

Conversation

@ywatanabe1989
Copy link
Copy Markdown
Owner

Summary

`scitex.container` has been delegated to the standalone scitex-container package since v0.1.6, but the umbrella kept a local fallback (`_build.py`, `_freeze.py`, `_status.py`, `_utils.py`, `_versioning.py`) inside a `try/except ImportError` branch. That fallback drifted from the standalone implementation and is effectively dead code.

This PR aligns `scitex.container` with the pattern used by all other extracted modules: a thin `sys.modules` alias to `scitex_container`. The `[container]` extra is bumped to `>=0.1.6`.

Test plan

  • `scitex.container is scitex_container`
  • `scitex.container.apptainer` and `.docker` sub-namespaces resolve
  • CLI in `scitex/cli/container.py` (the only internal caller) keeps working

🤖 Generated with Claude Code

…s bridge

scitex-container has lived as a standalone package since v0.1.6, and the
local fallback in scitex.container/__init__.py (with copies of _build.py,
_freeze.py, _status.py, _utils.py, _versioning.py) was only kept as a
defensive try/except branch.

The fallback drifted from the standalone implementation and was effectively
unused — every install of scitex pulls scitex-container as an extra. Drop
the local copies and rewrite scitex.container/__init__.py as the standard
sys.modules alias used by all other extracted modules
(scitex.linalg/git/events/security/msword/datetime/context/cv/template).

The [container] extra is bumped to >=0.1.6.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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