From 4920ebf7653b53c285044b874bc40e66f027df51 Mon Sep 17 00:00:00 2001 From: Nose Date: Mon, 29 Dec 2025 23:36:01 -0800 Subject: [PATCH] Add compatibility shims at top-level to re-export SYS modules (pipeline/result_table/metadata/models/rich_display) --- metadata.py | 11 +++++++++++ models.py | 10 ++++++++++ pipeline.py | 14 ++++++++++++++ result_table.py | 11 +++++++++++ rich_display.py | 10 ++++++++++ 5 files changed, 56 insertions(+) create mode 100644 metadata.py create mode 100644 models.py create mode 100644 pipeline.py create mode 100644 result_table.py create mode 100644 rich_display.py diff --git a/metadata.py b/metadata.py new file mode 100644 index 0000000..d73484c --- /dev/null +++ b/metadata.py @@ -0,0 +1,11 @@ +"""Backwards-compatibility shim for top-level `metadata` module. + +Moved into `SYS.metadata` — keep the old import path working for tests +and third-party code. +""" + +from importlib import import_module +import sys + +_real = import_module("SYS.metadata") +sys.modules[__name__] = _real diff --git a/models.py b/models.py new file mode 100644 index 0000000..3cc6542 --- /dev/null +++ b/models.py @@ -0,0 +1,10 @@ +"""Backwards-compatibility shim for top-level `models` module. + +Moved into `SYS.models` — preserve old import semantics. +""" + +from importlib import import_module +import sys + +_real = import_module("SYS.models") +sys.modules[__name__] = _real diff --git a/pipeline.py b/pipeline.py new file mode 100644 index 0000000..8c1f450 --- /dev/null +++ b/pipeline.py @@ -0,0 +1,14 @@ +"""Backwards-compatibility shim for top-level `pipeline` module. + +The project moved core modules into the `SYS` package (e.g. `SYS.pipeline`). +Many third-party code and tests still import top-level names like `pipeline`. +This shim ensures `import pipeline` returns the `SYS.pipeline` module object. +""" + +from importlib import import_module +import sys + +# Import the real implementation and ensure subsequent imports of +# the top-level name point to the SYS package module object. +_real = import_module("SYS.pipeline") +sys.modules[__name__] = _real diff --git a/result_table.py b/result_table.py new file mode 100644 index 0000000..0a4f77b --- /dev/null +++ b/result_table.py @@ -0,0 +1,11 @@ +"""Backwards-compatibility shim for top-level `result_table` module. + +Moved into `SYS.result_table` — keep the old import path working for tests +and third-party code. +""" + +from importlib import import_module +import sys + +_real = import_module("SYS.result_table") +sys.modules[__name__] = _real diff --git a/rich_display.py b/rich_display.py new file mode 100644 index 0000000..fdd27f9 --- /dev/null +++ b/rich_display.py @@ -0,0 +1,10 @@ +"""Backwards-compatibility shim for top-level `rich_display` module. + +Moved into `SYS.rich_display` — preserve old import path. +""" + +from importlib import import_module +import sys + +_real = import_module("SYS.rich_display") +sys.modules[__name__] = _real