-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (93 loc) · 2.31 KB
/
pyproject.toml
File metadata and controls
102 lines (93 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[project]
name = "mcp-postgres-duwenji"
version = "1.2.55"
description = "MCP server for PostgreSQL database operations"
authors = [
{ name = "mcp-postgres" },
{ name="duwenji", email="duwenji@gmail.com" },
]
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT License"}
keywords = ["mcp", "PostgreSQL"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"build>=1.3.0",
"mcp @ git+https://github.com/duwenji/python-sdk-1936.git@Proposal--Concern-Based-Filtering-%231936",
# "mcp>=1.0.0",
"psycopg2-binary>=2.9.0",
"pydantic>=2.0.0",
"python-dotenv>=1.0.0",
"twine>=6.2.0",
"docker>=6.0.0",
"types-docker>=7.1.0.20251009",
]
[project.optional-dependencies]
dev = [
"pytest>=8.4.2",
"pytest-asyncio>=0.21.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.0.0",
"pytest-xdist>=3.0.0",
"black>=23.0.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
"freezegun>=1.0.0",
"bandit>=1.7.0",
]
[project.scripts]
mcp-postgres-duwenji = "mcp_postgres_duwenji.main:cli_main"
mcp_postgres_duwenji = "mcp_postgres_duwenji.main:cli_main"
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"
[tool.black]
target-version = ['py310']
line-length = 88
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # 型アノテーション必須から警告へ緩和
check_untyped_defs = true # 未注釈関数の本体もチェック
[tool.pytest.ini_options]
testpaths = ["test"]
[tool.uv]
[dependency-groups]
dev = [
"pytest>=8.4.2",
"pytest-asyncio>=0.21.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.0.0",
"pytest-xdist>=3.0.0",
"black>=23.0.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
"freezegun>=1.0.0",
"bandit>=1.7.0",
"types-psycopg2>=2.9.21.20251012",
]
# UV-specific configuration
# This enables better integration with UV package manager