ndf
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled

This commit is contained in:
2025-12-29 23:40:50 -08:00
parent 4920ebf765
commit dfbee311b6
10 changed files with 5 additions and 61 deletions

View File

@@ -31,7 +31,7 @@ except ImportError:
mutagen = None
try:
from metadata import (
from SYS.metadata import (
_read_sidecar_metadata,
_derive_sidecar_path,
write_tags,

View File

@@ -701,7 +701,7 @@ class YtdlpMetadataProvider(MetadataProvider):
tags: List[str] = []
try:
from metadata import extract_ytdlp_tags
from SYS.metadata import extract_ytdlp_tags
except Exception:
extract_ytdlp_tags = None # type: ignore[assignment]

View File

@@ -1380,7 +1380,7 @@ class HydrusNetwork(Store):
except Exception:
existing_tags = []
from metadata import compute_namespaced_tag_overwrite
from SYS.metadata import compute_namespaced_tag_overwrite
tags_to_remove, tags_to_add, _merged = compute_namespaced_tag_overwrite(
existing_tags, incoming_tags

View File

@@ -14,7 +14,7 @@ for path in (ROOT_DIR, BASE_DIR):
if str_path not in sys.path:
sys.path.insert(0, str_path)
import metadata
import SYS.metadata as metadata
@dataclass(slots=True)

View File

@@ -42,7 +42,7 @@ except ImportError:
# Import tag processing helpers
try:
from metadata import expand_tag_lists, process_tags_from_string
from SYS.metadata import expand_tag_lists, process_tags_from_string
except ImportError:
expand_tag_lists = None
process_tags_from_string = None

View File

@@ -1,11 +0,0 @@
"""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

View File

@@ -1,10 +0,0 @@
"""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

View File

@@ -1,14 +0,0 @@
"""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

View File

@@ -1,11 +0,0 @@
"""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

View File

@@ -1,10 +0,0 @@
"""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