Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ bridge = [

# Container Module - Unified container management (Apptainer + Docker)
# Use: pip install scitex[container]
container = ["scitex-container"]
container = ["scitex-container>=0.1.6"]

# Browser Module - Web automation
# Use: pip install scitex[browser]
Expand Down
77 changes: 17 additions & 60 deletions src/scitex/container/__init__.py
Original file line number Diff line number Diff line change
@@ -1,65 +1,22 @@
#!/usr/bin/env python3
"""SciTeX container management -- delegates to scitex-container package."""
"""SciTeX container — thin compatibility shim for scitex-container.

try:
# Re-export subnamespaces so umbrella users can write
# `stx.container.apptainer.build(...)` as well as the flattened
# `stx.container.build(...)`.
from scitex_container import apptainer, docker, env_snapshot, host
from scitex_container.apptainer import (
build,
build_dev_pythonpath,
build_exec_args,
build_host_mount_binds,
build_srun_command,
cleanup,
deploy,
detect_container_cmd,
find_containers_dir,
freeze,
get_active_version,
is_sandbox,
list_versions,
rollback,
sandbox_create,
sandbox_maintain,
sandbox_to_sif,
status,
switch_version,
verify,
)
Aliases ``scitex.container`` to the standalone ``scitex_container`` package via
``sys.modules`` so ``scitex.container is scitex_container`` and every
sub-namespace (``scitex.container.apptainer``, ``.docker``, ``.host``,
``.env_snapshot``) keeps resolving.

_BACKEND = "scitex-container"
except ImportError:
from ._build import build
from ._freeze import freeze
from ._status import status
from ._utils import detect_container_cmd, find_containers_dir
from ._versioning import (
cleanup,
deploy,
get_active_version,
list_versions,
rollback,
switch_version,
)
Install: ``pip install scitex[container]`` (or ``pip install scitex-container``).
See: https://github.com/ywatanabe1989/scitex-container
"""

_BACKEND = "local"
import sys as _sys

__all__ = [
"apptainer",
"build",
"cleanup",
"deploy",
"docker",
"env_snapshot",
"freeze",
"get_active_version",
"host",
"list_versions",
"rollback",
"status",
"switch_version",
]
try:
import scitex_container as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.container requires the 'scitex-container' package. "
"Install with: pip install scitex[container] (or: pip install scitex-container)"
) from _e

# EOF
_sys.modules[__name__] = _real
83 changes: 0 additions & 83 deletions src/scitex/container/_build.py

This file was deleted.

88 changes: 0 additions & 88 deletions src/scitex/container/_freeze.py

This file was deleted.

84 changes: 0 additions & 84 deletions src/scitex/container/_status.py

This file was deleted.

Loading
Loading