pyproject.toml•1.67 kB
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mcp-12306"
version = "0.1.0"
description = "MCP服务器用于12306车票查询"
authors = [
{name = "Drfccv", email = "2713587802@qq.com"}
]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"fastapi>=0.104.0",
"uvicorn[standard]>=0.24.0",
"httpx>=0.25.0",
"pydantic>=2.4.0",
"pydantic-settings>=2.0.0",
"python-multipart>=0.0.6",
"mcp>=1.9.0",
"python-dotenv>=1.0.0",
"aiofiles>=23.2.1",
"beautifulsoup4>=4.12.0",
"lxml>=4.9.0",
"requests>=2.31.0",
"aiohttp>=3.9.0",
"pytz>=2025.2",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-httpx>=0.26.0",
"black>=23.9.0",
"isort>=5.12.0",
"mypy>=1.6.0",
"pre-commit>=3.5.0",
]
[tool.uv]
dev-dependencies = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-httpx>=0.26.0",
"black>=23.9.0",
"isort>=5.12.0",
"mypy>=1.6.0",
"pre-commit>=3.5.0",
]
index-url = "https://pypi.tuna.tsinghua.edu.cn/simple"
# 或者配置多个源
[[tool.uv.index]]
name = "tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
[[tool.uv.index]]
name = "aliyun"
url = "https://mirrors.aliyun.com/pypi/simple/"
[project.scripts]
mcp-12306 = "mcp_12306.server:main"
[tool.black]
line-length = 88
target-version = ['py310']
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.hatch.build.targets.wheel]
packages = ["src/mcp_12306"]