mirror of
https://github.com/Stability-AI/generative-models.git
synced 2025-12-24 08:44:20 +01:00
* Sort .gitignore; add dist and *.py[cod] * Use pyproject.toml + Hatch instead of setup.py Sibling of https://github.com/Stability-AI/stablediffusion/pull/269 * Add packaging documentation
35 lines
908 B
TOML
35 lines
908 B
TOML
[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"
|