canter / pyproject.toml
data-archetype's picture
Make Gradio an optional web UI dependency
df27b3e verified
Raw
History Blame Contribute Delete
780 Bytes
[build-system]
requires = ["hatchling>=1.28,<2"]
build-backend = "hatchling.build"
[project]
name = "canter"
dynamic = ["version"]
description = "Lean inference package for the Canter text-to-image flow model"
readme = "README.md"
requires-python = ">=3.10,<3.14"
license = { file = "LICENSE" }
dependencies = [
"huggingface-hub>=1.15,<2",
"numpy>=2,<3",
"pillow>=12,<13",
"safetensors>=0.7,<0.8",
"scipy>=1.17,<2",
"torch>=2.13,<2.14",
"transformers>=5.12,<5.13",
]
[project.optional-dependencies]
webui = [
"gradio>=6.20,<6.21",
]
test = [
"pytest>=9,<10",
"ruff>=0.14,<0.15",
]
[project.scripts]
canter-web = "canter.webui:main"
[tool.hatch.build.targets.wheel]
packages = ["canter"]
[tool.hatch.version]
path = "canter/version.py"