-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (86 loc) · 1.85 KB
/
pyproject.toml
File metadata and controls
98 lines (86 loc) · 1.85 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
[project]
name = "pytidb"
version = "0.0.14"
description = "A Python library for TiDB."
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "Mini256", email = "minianter@foxmail.com" },
{ name = "sykp241095", email = "sykp241095@gmail.com" },
]
dependencies = [
"sqlmodel>=0.0.14",
"pymysql>=1.1.1",
"numpy>=1,<3",
"SQLAlchemy>=1.4,<3",
]
[project.scripts]
tidb-mcp-server = "pytidb.ext.mcp:main"
[project.optional-dependencies]
mcp = [
"mcp[cli]>=1.26.0",
"mcp>=1.26.0",
]
pandas = [
"pandas"
]
models = [
"litellm>=1.59.8,<2.0.0",
"pillow",
]
[dependency-groups]
dev = [
"uv>=0.6.8",
"ruff==0.11.0",
"pre-commit>=3,<4",
"pytest>=7,<8",
"pytest-asyncio>=0.23.0,<0.24",
"pytest-env>=1.1.3",
"pytest-xdist>=3.5.0",
"mock>=5,<6",
"pandas",
"litellm>=1.59.8,<2.0.0",
"notebook>=7.3.3",
"pip>=25.0.1",
"mypy>=1.15.0",
"mcp[cli]>=1.26.0",
"mcp>=1.26.0",
"pillow",
"boto3>=1.39.9",
]
# Test
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
filterwarnings = [
"ignore:.*:DeprecationWarning:litellm.*",
"ignore:datetime.datetime.utcnow.*:DeprecationWarning:botocore.*",
"ignore:Support for class-based `config` is deprecated.*:DeprecationWarning:pydantic.*"
]
testpaths = [
"tests",
]
# Build
[tool.setuptools]
packages = ["pytidb"]
[build-system]
requires = ["hatchling==1.26.3"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = ["pytidb"]
[tool.hatch.build.targets.wheel]
include = ["pytidb"]
[tool.hatch.build]
exclude = [
"/.*",
"/dist",
"/docs",
"/examples",
"/tests",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.uv.workspace]
members = ["docs"]