Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (119 loc) · 3.41 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (119 loc) · 3.41 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
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = ["setuptools>=84.1.0", "setuptools-scm[simple]>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "openshell"
dynamic = ["version"]
description = "OpenShell is the safe, private runtime for autonomous AI agents. "
license = "Apache-2.0"
readme = "README.md"
authors = [{ name = "NVIDIA Inc." }]
requires-python = ">=3.11"
dependencies = [
"cloudpickle>=3.0",
"grpcio>=1.60",
"googleapis-common-protos>=1.63",
"httpx>=0.27",
"protobuf>=4.25",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Information Technology",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Security",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
]
keywords = ["agent", "sandbox", "nvidia"]
[project.urls]
source = "https://github.com/ai-openshell/sdk-python"
documentation = "https://docs.nvidia.com/openshell/latest/"
[dependency-groups]
dev = [
"pytest>=9.0.3",
"pytest-asyncio>=0.23",
"pytest-cov>=4.0",
"pytest-xdist>=3.0",
"ruff>=0.4",
"ty>=0.0.94",
"grpcio-tools>=1.60",
"pyyaml==6.0.2",
"types-pyyaml>=6.0.12.20260518",
"mypy-protobuf>=5.1",
"types-grpcio>=1.0.0.20251009",
"types-protobuf>=6.32,<7",
]
# mise pins uv exactly (mise.toml); this rejects older versions when uv is
# installed some other way.
[tool.uv]
required-version = ">=0.10"
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = false
[tool.setuptools.packages.find]
where = ["src"]
include = ["openshell*"]
namespaces = false
[tool.setuptools.package-data]
openshell = ["py.typed", "_proto/*.py", "_proto/*.pyi"]
[tool.setuptools_scm]
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v[0-9]*"]
[tool.ruff]
target-version = "py311"
line-length = 88
exclude = ["src/openshell/_proto"]
[tool.ty.src]
exclude = ["src/openshell/_proto"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.isort]
known-first-party = ["openshell"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["*_test.py"]
addopts = "-v --tb=short"
asyncio_mode = "auto"
markers = [
"gpu: requires a GPU-capable gateway and GPU-enabled sandbox image",
]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]