diff --git a/pyproject.toml b/pyproject.toml index c2802f5ab..767536ab9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,9 @@ name = "lsst-obs-lsst" [project.entry-points.'butler.cli'] obs_lsst = "lsst.obs.lsst.cli:get_cli_subcommands" +[project.entry-points.astro_metadata_translators] +obs_lsst = "lsst.obs.lsst.translators:_force_load" + [tool.ruff] line-length = 110 target-version = "py311" diff --git a/python/lsst/obs/lsst/translators/__init__.py b/python/lsst/obs/lsst/translators/__init__.py index 687262631..92e6278a0 100644 --- a/python/lsst/obs/lsst/translators/__init__.py +++ b/python/lsst/obs/lsst/translators/__init__.py @@ -18,3 +18,10 @@ from .comCam import * from .comCamSim import * from .lsstCamSim import * + + +def _force_load(): + # This function exists solely to be loaded by the + # astro_metadata_translators entry point. The function + # will not be called. + pass