summaryrefslogtreecommitdiff
path: root/pyproject.toml
diff options
context:
space:
mode:
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml56
1 files changed, 56 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..5b9cd71
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,56 @@
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
+
+[project]
+name = "mcp-sd15"
+version = "0.1.0"
+description = "MCP server for local Stable Diffusion 1.x image generation"
+readme = "README.md"
+requires-python = ">=3.11,<3.12"
+dependencies = [
+ "accelerate>=1.1",
+ "controlnet-aux>=0.0.10",
+ "diffusers>=0.35",
+ "mcp>=2,<3",
+ "numpy>=1.26,<3",
+ "opencv-python-headless>=4.10",
+ "peft>=0.13",
+ "pillow>=10.4",
+ "safetensors>=0.4",
+ "torch>=2.4",
+ "transformers>=4.45",
+]
+
+[project.scripts]
+mcp-sd15 = "mcp_sd15.cli:main"
+
+[dependency-groups]
+dev = [
+ "pyright>=1.1.390",
+ "pytest>=8.3",
+ "pytest-asyncio>=0.24",
+ "ruff>=0.8",
+]
+
+[tool.hatch.build.targets.wheel]
+packages = ["src/mcp_sd15"]
+
+[tool.pytest.ini_options]
+addopts = "-ra"
+testpaths = ["tests"]
+asyncio_mode = "auto"
+
+[tool.ruff]
+line-length = 100
+target-version = "py311"
+
+[tool.ruff.lint]
+select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
+
+[tool.pyright]
+pythonVersion = "3.11"
+typeCheckingMode = "standard"
+include = ["src", "tests"]
+venvPath = "."
+venv = ".venv"