Adds ldm/__version__.py (2.1.1 seems to approximately match what the readme says)
Sets up packaging using hatch (removing the defunct setup.py)
configs/ gets packaged as ldm/configs when using a packaged version
Adds ldm.get_configs_path() to make it easy for downstream users to find the configs path
This makes it possible to build a standard Python .whl from the repo and use it instead of having to e.g. clone the entire repository. I've tested this on a fork of https://github.com/AUTOMATIC1111/stable-diffusion-webui.
ldm/__version__.py
(2.1.1 seems to approximately match what the readme says)hatch
(removing the defunctsetup.py
)configs/
gets packaged asldm/configs
when using a packaged versionldm.get_configs_path()
to make it easy for downstream users to find the configs pathThis makes it possible to build a standard Python
.whl
from the repo and use it instead of having to e.g. clone the entire repository. I've tested this on a fork of https://github.com/AUTOMATIC1111/stable-diffusion-webui.