pyproject.toml 1.2 KB
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "fw-pms-ai"
version = "0.1.0"
description = "AI 补货建议系统 - 基于 LangChain + LangGraph"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
    { name = "FeeWee", email = "dev@feewee.cn" }
]
dependencies = [
    # LangChain 生态
    "langchain>=0.3.0",
    "langgraph>=0.2.0",
    "langchain-core>=0.3.0",
    
    # LLM 集成
    "zhipuai>=2.0.0",
    
    # 定时任务
    "apscheduler>=3.10.0",
    
    # 数据库
    "mysql-connector-python>=8.0.0",
    "sqlalchemy>=2.0.0",
    
    # 配置管理
    "pydantic>=2.0.0",
    "pydantic-settings>=2.0.0",
    "python-dotenv>=1.0.0",
    
    # 工具库
    "httpx>=0.25.0",
    "tenacity>=8.0.0",
    
    # Web API
    "fastapi>=0.109.0",
    "uvicorn[standard]>=0.27.0",
]

[project.optional-dependencies]
dev = [
    "pytest>=7.0.0",
    "pytest-asyncio>=0.21.0",
    "black>=23.0.0",
    "ruff>=0.1.0",
]

[project.scripts]
fw-pms-ai = "fw_pms_ai.main:main"

[tool.hatch.build.targets.wheel]
packages = ["src/fw_pms_ai"]

[tool.black]
line-length = 100
target-version = ["py311"]

[tool.ruff]
line-length = 100
target-version = "py311"