-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sort .gitignore; add dist and *.py[cod] * Use pyproject.toml + Hatch instead of setup.py Sibling of Stability-AI/stablediffusion#269 * Add packaging documentation
- Loading branch information
Showing
6 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
*.egg-info | ||
*.py[cod] | ||
.pt13 | ||
.pt2 | ||
.pt2_2 | ||
.pt13 | ||
*.egg-info | ||
build | ||
/checkpoints | ||
/dist | ||
/outputs | ||
/checkpoints | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "sgm" | ||
dynamic = ["version"] | ||
description = "Stability Generative Models" | ||
readme = "README.md" | ||
license-files = { paths = ["LICENSE"] } | ||
requires-python = ">=3.8" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/Stability-AI/generative-models" | ||
|
||
[tool.hatch.version] | ||
path = "sgm/__init__.py" | ||
|
||
[tool.hatch.build] | ||
# This needs to be explicitly set so the configuration files | ||
# grafted into the `sgm` directory get included in the wheel's | ||
# RECORD file. | ||
include = [ | ||
"sgm", | ||
] | ||
# The force-include configurations below make Hatch copy | ||
# the configs/ directory (containing the various YAML files required | ||
# to generatively model) into the source distribution and the wheel. | ||
|
||
[tool.hatch.build.targets.sdist.force-include] | ||
"./configs" = "sgm/configs" | ||
|
||
[tool.hatch.build.targets.wheel.force-include] | ||
"./configs" = "sgm/configs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from .data import StableDataModuleFromConfig | ||
from .models import AutoencodingEngine, DiffusionEngine | ||
from .util import instantiate_from_config | ||
from .util import instantiate_from_config, get_configs_path | ||
|
||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters