Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/facett

pkg-facet-wrapped/src/facet_wrapped_web/__init__.py

"""facet_wrapped_web — the pre-0.2.0 import name of :mod:`facett`, kept for ONE release.

The package was published as ``facet-wrapped-web`` (0.1.x) and is ``facett`` from
0.2.0. This alias ships inside the ``facett`` wheel so existing ``import
facet_wrapped_web`` lines keep working while they are changed to ``import facett``; it
is removed in 0.3.0. It re-exports the SAME functions (not copies), so the two names
cannot disagree about where the assets are.
"""

from __future__ import annotations

import warnings

from facett import (  # noqa: F401 - re-exported
    __version__,
    assets_dir,
    build_info,
    bundles,
    data_driven,
    is_data_driven,
    manifest,
    wasm_path,
)

__all__ = [
    "__version__",
    "assets_dir",
    "wasm_path",
    "bundles",
    "manifest",
    "data_driven",
    "is_data_driven",
    "build_info",
]

warnings.warn(
    "facet_wrapped_web is now `facett` (pip install facett); this alias is removed in 0.3.0",
    DeprecationWarning,
    stacklevel=2,
)