feat: project skeleton with config, dependencies, and test setup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
walkpan
2026-03-29 21:26:00 +08:00
parent ce10907619
commit 8b925263a2
8 changed files with 143 additions and 0 deletions

38
pyproject.toml Normal file
View File

@@ -0,0 +1,38 @@
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mqtt-home"
version = "0.1.0"
description = "轻量级智能家居 MQTT 设备管理系统"
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
"aiomqtt>=2.0.0",
"sqlalchemy[asyncio]>=2.0.0",
"aiosqlite>=0.20.0",
"pydantic-settings>=2.0.0",
"click>=8.1.0",
"httpx>=0.27.0",
"websockets>=12.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-httpx>=0.30.0",
"httpx>=0.27.0",
]
[project.scripts]
mqtt-home = "mqtt_home.cli:cli"
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]