-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (129 loc) · 4.18 KB
/
Copy pathpyproject.toml
File metadata and controls
141 lines (129 loc) · 4.18 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
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "langchain-runcycles"
version = "0.4.0"
description = "LangChain agent middleware for Cycles — pre-execution budget authority for model calls, tool calls, and runaway agent loops in Python create_agent workflows."
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
keywords = [
# Category-search keywords (aligned with cycles-client-python's SEO refresh)
"ai-agent",
"agent-middleware",
"agent-budget",
"agent-governance",
"agent-safety",
"budget-control",
"cost-control",
"spending-limit",
"llm-cost",
"llmops",
"runtime-authority",
"action-control",
"multi-tenant",
# LangChain ecosystem (the differentiator vs the parent SDK)
"langchain",
"langgraph",
"langchain-middleware",
"tool-authorization",
"pre-tool-call-authorization",
"mcp",
# Brand
"cycles",
"runcycles",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Framework :: AsyncIO",
"Typing :: Typed",
]
dependencies = [
"runcycles>=0.5.3",
"langchain>=1.0,<2.0",
# Tightened from `>=0.3` per external review — langchain 1.x always pulls
# langchain-core 1.x transitively; pinning this explicitly avoids a stale
# 0.x landing accidentally in mixed environments.
"langchain-core>=1.0,<2.0",
]
[project.urls]
Homepage = "https://runcycles.io"
Documentation = "https://github.com/runcycles/langchain-runcycles#readme"
Repository = "https://github.com/runcycles/langchain-runcycles"
Changelog = "https://github.com/runcycles/langchain-runcycles/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/runcycles/langchain-runcycles/issues"
[project.optional-dependencies]
# Slimmer than cycles-client-python's dev deps: this package mocks the runcycles
# SDK boundary directly (no httpx/respx, no protocol-spec validation needed).
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"pytest-cov>=4.0",
"mypy>=1.0",
"ruff>=0.1",
]
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.hatch.build.targets.sdist]
include = [
"/langchain_runcycles",
"/tests",
"/examples",
"/AUDIT.md",
"/CHANGELOG.md",
"/LICENSE",
"/MAINTAINERS.md",
"/README.md",
"/pyproject.toml",
]
exclude = [
"/.venv*/",
"/.pytest_cache/",
"/.mypy_cache/",
"/.ruff_cache/",
"/build/",
"/dist/",
"/.coverage",
]
[tool.hatch.build.targets.wheel]
packages = ["langchain_runcycles"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.mypy]
python_version = "3.10"
strict = true
[[tool.mypy.overrides]]
module = ["runcycles", "runcycles.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
# Silence upstream-only noise we don't control. Two layers:
# 1. message-regex filters here, applied at pytest startup, catch warnings
# where langchain-core's `warnings.warn(instance, category=ParentClass)`
# shadows the instance class — message match is the reliable handle.
# 2. category filters in tests/conftest.py for completeness.
filterwarnings = [
# langchain-core's pydantic.v1 import is incompatible with Python 3.13/3.14.
# This is upstream noise on newer Pythons, not actionable from our code.
"ignore:Core Pydantic V1 functionality isn't compatible with Python 3\\.1[3-9]",
# langgraph telegraphs a future default change for `allowed_objects` inside
# langgraph.checkpoint.serde.encrypted (fires at class-body default-arg
# instantiation time). We never construct that serializer directly.
"ignore:The default value of `allowed_objects` will change",
]
[tool.coverage.run]
source = ["langchain_runcycles"]
[tool.coverage.report]
fail_under = 95