-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (119 loc) · 3.88 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (119 loc) · 3.88 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
# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
[project]
name = "nemo-fabric-development"
version = "0.0.0"
description = "Development environment for NVIDIA NeMo Fabric"
requires-python = ">=3.11"
dependencies = [
"nemo-fabric",
"nemo-fabric-runtime == 0.3.0",
]
[project.optional-dependencies]
claude = [
"nemo-fabric[claude]",
]
codex = [
"nemo-fabric[codex]",
]
deepagents = [
"nemo-fabric[deepagents]",
]
mini-swe-agent = [
"nemo-fabric[mini-swe-agent]",
]
harbor = [
"nemo-fabric[harbor]",
]
hermes-agent = [
"nemo-fabric[hermes-agent]; python_version < '3.14'",
]
relay = [
"nemo-fabric[relay]",
]
[dependency-groups]
adapters = [
"nemo-fabric-adapter-contract",
"nemo-fabric-adapters-common",
"nemo-fabric-adapters-claude",
"nemo-fabric-adapters-codex",
# Install the deepagents adapter with its optional [relay] extra so the dev
# and test environments exercise the SDK-native NeMo Relay integration.
"nemo-fabric-adapters-deepagents[relay]",
"nemo-fabric-adapters-hermes; python_version < '3.14'",
"hermes-agent==0.20.1; python_version < '3.14'",
# Install the mini-SWE-agent adapter with Relay so focused adapter tests cover
# its optional subclass-based telemetry integration.
"nemo-fabric-adapters-mini-swe-agent[relay]",
]
adapter-tests = [
"nemo-fabric-adapters-claude[harness]",
"nemo-fabric-adapters-codex[harness]",
"nemo-fabric-adapters-deepagents[harness]",
"nemo-fabric-adapters-hermes[full]; python_version < '3.14'",
"nemo-fabric-adapters-mini-swe-agent[harness]",
]
langgraph-example = [
"langchain>=1.3,<2.0",
"langchain-mcp-adapters>=0.1,<0.3.0",
"langchain-openai>=0.3,<2.0",
"langgraph>=1.2,<2.0",
"mcp>=1.28.1,<2.0",
]
dev = [
"ipython~=8.20",
"pip-licenses>=5,<6",
"pkginfo~=1.12",
"pre-commit~=4.0",
"requests~=2.32",
]
docs = [
"lazydocs>=0.4",
"beautifulsoup4>=4.12",
"pyyaml>=6.0",
]
package = [
"maturin[zig]>=1.9.3,<2.0; sys_platform == 'linux'",
"maturin>=1.9.3,<2.0; sys_platform != 'linux'",
]
test = [
"fastapi~=0.138",
"mcp>=1.28.1,<2.0",
"mcp-server-time~=2026.7",
"pkginfo~=1.12",
"pytest>=8",
"pytest-asyncio>=0.26",
"pytest-cov~=7.0",
"pyyaml>=6.0",
"requests~=2.32",
"starlette>=0.46",
"tomli-w~=1.2",
"uvicorn~=0.49",
]
[tool.uv]
package = false
default-groups = ["adapters", "dev", "test"]
# Hermes v0.20.1 imports the top-level registration_lifecycle module but omits
# it from setuptools' py-modules, so standard editable installs cannot import it.
config-settings-package = { "hermes-agent" = { editable_mode = "compat" } }
[tool.uv.sources]
hermes-agent = { path = "external/hermes-agent", editable = true, marker = "python_version < '3.14'" }
nemo-fabric = { path = "sdk/python/nemo-fabric", editable = true }
nemo-fabric-runtime = { path = "sdk/python/nemo-fabric-runtime", editable = true }
nemo-fabric-adapter-contract = { path = "adapter-contract/python", editable = true }
nemo-fabric-adapters-common = { path = "adapters/common", editable = true }
nemo-fabric-adapters-claude = { path = "adapters/claude", editable = true }
nemo-fabric-adapters-codex = { path = "adapters/codex", editable = true }
nemo-fabric-adapters-deepagents = { path = "adapters/deepagents", editable = true }
nemo-fabric-adapters-hermes = { path = "adapters/hermes", editable = true }
nemo-fabric-adapters-mini-swe-agent = { path = "adapters/mini-swe-agent", editable = true }
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
testpaths = ["tests"]
[tool.ruff.lint]
# flake8-bugbear: enforce only the cached-instance-method rule (B019).
# Using functools.lru_cache/cache on methods keeps a reference to `self` in
# the cache, leaking every instance for the process lifetime. The full "B"
# category is intentionally not enabled to avoid noisy, low-value warnings.
select = ["B019"]