ndf
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
This commit is contained in:
@@ -31,7 +31,7 @@ except ImportError:
|
||||
mutagen = None
|
||||
|
||||
try:
|
||||
from metadata import (
|
||||
from SYS.metadata import (
|
||||
_read_sidecar_metadata,
|
||||
_derive_sidecar_path,
|
||||
write_tags,
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
11
metadata.py
11
metadata.py
@@ -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
|
||||
10
models.py
10
models.py
@@ -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
|
||||
14
pipeline.py
14
pipeline.py
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user