-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (113 loc) · 2.78 KB
/
pyproject.toml
File metadata and controls
129 lines (113 loc) · 2.78 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[project]
name = "mistralai"
version = "2.3.1"
description = "Python Client SDK for the Mistral AI API."
authors = [{ name = "Mistral" }]
requires-python = ">=3.10"
readme = "README-PYPI.md"
dependencies = [
"eval-type-backport >=0.2.0",
"httpx >=0.28.1",
"pydantic >=2.11.2",
"python-dateutil >=2.8.2",
"typing-inspection >=0.4.0",
"opentelemetry-api (>=1.33.1,<2.0.0)",
"opentelemetry-semantic-conventions (>=0.60b1,<0.61)",
"jsonpath-python >=1.0.6", # required for speakeasy generated path with pagination
]
[project.optional-dependencies]
gcp = [
"google-auth >=2.27.0",
"requests >=2.32.3",
]
agents = [
"mcp >=1.0,<2.0",
"griffe >=1.7.3,<2.0",
"authlib >=1.5.2,<2.0",
]
realtime = [
"websockets >=13.0",
]
[project.urls]
Repository = "https://github.com/mistralai/client-python.git"
[dependency-groups]
dev = [
"invoke>=2.2.0,<3",
"pyyaml>=6.0.2,<7",
"mypy==1.15.0",
"opentelemetry-sdk (>=1.33.1,<2.0.0)",
"pylint==3.2.3",
"pytest>=8.2.2,<9",
"pytest-asyncio>=0.23.7,<0.24",
"types-python-dateutil>=2.9.0.20240316,<3",
"types-authlib>=1.5.0.20250516,<2",
"types-pyyaml>=6.0.12.20250516,<7",
"mcp>=1.0,<2",
"griffe>=1.7.3,<2",
"authlib>=1.5.2,<2",
"websockets >=13.0",
]
lint = [
"ruff>=0.11.10,<0.12",
"pyright>=1.1.401,<2",
"mypy==1.15.0",
]
[tool.uv]
default-groups = [
"dev",
"lint",
]
[tool.setuptools.package-data]
"*" = ["py.typed", "src/mistralai/client/py.typed"]
[tool.hatch.build]
dev-mode-dirs = [
"src",
"packages/azure/src",
"packages/gcp/src",
]
[tool.hatch.build.targets.sdist]
include = [
"src/mistralai",
"packages/azure/src/mistralai",
"packages/gcp/src/mistralai",
]
[tool.hatch.build.targets.sdist.force-include]
"py.typed" = "py.typed"
"src/mistralai/client/py.typed" = "src/mistralai/client/py.typed"
[tool.hatch.build.targets.wheel]
include = [
"src/mistralai",
"packages/azure/src/mistralai",
"packages/gcp/src/mistralai",
]
[tool.hatch.build.targets.wheel.sources]
"src/mistralai" = "mistralai"
"packages/azure/src/mistralai/azure" = "mistralai/azure"
"packages/gcp/src/mistralai/gcp" = "mistralai/gcp"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
pythonpath = ["src", "packages/azure/src", "packages/gcp/src"]
[tool.mypy]
disable_error_code = "misc"
namespace_packages = true
explicit_package_bases = true
mypy_path = "src:packages/azure/src:packages/gcp/src"
[[tool.mypy.overrides]]
module = "typing_inspect"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"jsonpath.*",
"typing_inspect.*",
"authlib.*",
"websockets.*",
"mcp.*",
"griffe.*",
"google.*"
]
ignore_missing_imports = true
[tool.pyright]
venvPath = "."
venv = ".venv"