Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (90 loc) · 2.85 KB
/
Copy pathpyproject.toml
File metadata and controls
102 lines (90 loc) · 2.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
99
100
101
102
[project]
name = "stackone-ai"
version = "3.1.0"
description = "agents performing actions on your SaaS"
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "StackOne", email = "support@stackone.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"pydantic>=2.10.6",
"httpx>=0.28.0",
# fetch_tools() is the only route to a tool and talks MCP, so the client is
# not optional: without it the SDK cannot do anything.
# 1.30.0 and 2.2.0 are the first of each major with every published advisory fixed.
"mcp>=1.30.0,!=2.0.*,!=2.1.*,<3.0.0",
]
[project.urls]
Repository = "https://github.com/StackOneHQ/stackone-ai-python"
Changelog = "https://github.com/StackOneHQ/stackone-ai-python/blob/main/CHANGELOG.md"
Issues = "https://github.com/StackOneHQ/stackone-ai-python/issues"
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["stackone_ai"]
# The sdist carried the whole dev tree — uv.lock, pnpm-lock.yaml, CLAUDE.md, .github/
# and the TypeScript mocks. A consumer building from source needs none of it.
[tool.hatch.build.targets.sdist]
include = ["stackone_ai", "README.md", "LICENSE", "CHANGELOG.md", "MIGRATION.md", "pyproject.toml"]
# Per-framework adapters. Each is imported lazily inside the method that needs
# it, so installing the SDK does not drag in a framework you do not use.
[project.optional-dependencies]
langchain = ["langchain-core>=0.3.36"]
pydantic-ai = ["pydantic-ai-slim>=1.83.0"]
examples = [
"langchain>=1.0.0",
"langchain-openai>=1.1.14",
"openai>=2.32.0",
"pydantic-ai>=1.83.0",
"python-dotenv>=1.2.2",
]
dev = [
"hypothesis>=6.141.1",
"langchain-core>=0.3.36",
"pydantic-ai-slim>=1.83.0",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.3",
"pytest-cov>=6.0.0",
"ruff>=0.9.6",
"ty>=0.0.3",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
line-length = 110
target-version = "py311"
# Vendored byte for byte from sdk-conformance; CI diffs it against the pinned commit.
extend-exclude = ["tests/vectors"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
[tool.coverage.run]
source = ["stackone_ai"]
branch = true
omit = ["stackone_ai/__init__.py"]
[tool.coverage.json]
output = "coverage/coverage.json"
[tool.coverage.html]
directory = "coverage/html"
[tool.uv]
link-mode = "clone"