pyproject.toml•1.09 kB
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pgtuner_mcp"
version = "0.0.1"
authors = [
{ name = "DanielShih", email = "dog830228@gmail.com" },
]
description = "An MCP server for PostgreSQL AI-powered performance tuning with HypoPG support"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"mcp[cli]>=1.12.0",
"psycopg[binary,pool]>=3.1.0",
"pglast>=7.10",
]
[project.optional-dependencies]
sse = [
"starlette>=0.27.0",
"uvicorn>=0.23.0",
]
dev = [
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"ruff>=0.1.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/pgtuner_mcp"]
[project.scripts]
pgtuner_mcp = "pgtuner_mcp:run"
[project.urls]
Source = "https://github.com/example/pgtuner_mcp"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4"]
ignore = ["E501"]