Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up Python packaging #269

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Set up Python packaging #269

wants to merge 1 commit into from

Conversation

akx
Copy link

@akx akx commented May 30, 2023

  • 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.

* 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
akx added a commit to akx/sd-webui that referenced this pull request May 30, 2023
akx added a commit to akx/generative-models that referenced this pull request Jun 27, 2023
akx added a commit to akx/generative-models that referenced this pull request Jul 18, 2023
benjaminaubin pushed a commit to Stability-AI/generative-models that referenced this pull request Jul 18, 2023
* Sort .gitignore; add dist and *.py[cod]

* Use pyproject.toml + Hatch instead of setup.py

Sibling of Stability-AI/stablediffusion#269

* Add packaging documentation
marceloacosta pushed a commit to marceloacosta/generativeyes that referenced this pull request Jul 27, 2023
* Sort .gitignore; add dist and *.py[cod]

* Use pyproject.toml + Hatch instead of setup.py

Sibling of Stability-AI/stablediffusion#269

* Add packaging documentation
LinearFalcon pushed a commit to LinearFalcon/generative-models that referenced this pull request Jul 6, 2024
* Sort .gitignore; add dist and *.py[cod]

* Use pyproject.toml + Hatch instead of setup.py

Sibling of Stability-AI/stablediffusion#269

* Add packaging documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant