-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
172 lines (157 loc) · 4.01 KB
/
pyproject.toml
File metadata and controls
172 lines (157 loc) · 4.01 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[project]
name = "cased-sandboxes"
version = "0.7.0"
description = "Universal library for AI code execution sandboxes"
authors = [
{ name = "Sandboxes Contributors", email = "ted@cased.com" }
]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/cased/sandboxes"
repository = "https://github.com/cased/sandboxes"
documentation = "https://github.com/cased/sandboxes"
keywords = ["sandbox", "ai", "code-execution", "e2b", "modal", "daytona", "hopx", "vercel", "cloudflare"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.11"
dependencies = [
"typing-extensions>=4.0.0",
"click>=8.0.0",
"tabulate>=0.9.0",
"modal>=1.3.3",
"e2b>=2.13.2",
"daytona>=0.143.0",
"hopx-ai>=0.5.0",
"vercel>=0.4.0",
"httpx>=0.27.0",
]
[project.optional-dependencies]
daytona = [
"daytona==0.143.0", # Official Daytona SDK - latest stable version
]
e2b = [
"e2b>=2.13.2", # Regular E2B SDK for standard Linux sandboxes
]
modal = [
"modal==1.3.3", # Latest stable version
]
hopx = [
"hopx-ai>=0.5.0", # Official Hopx SDK for secure cloud sandboxes
]
vercel = [
"vercel>=0.4.0", # Official Vercel SDK with Sandbox APIs
]
# cloudflare = [
# "cloudflare-workers-sdk>=0.1.0", # When available
# ]
all = [
"daytona==0.143.0",
"e2b>=2.13.2",
"modal==1.3.3",
"hopx-ai>=0.5.0",
"vercel>=0.4.0",
]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
"pre-commit>=3.0.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mkdocstrings[python]>=0.20.0",
]
[project.scripts]
sandboxes = "sandboxes.cli:cli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["sandboxes"]
[tool.hatch.build]
exclude = [
".claude/",
"benchmarks/",
"tests/",
"scripts/",
"examples/",
]
[dependency-groups]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
"ipython>=8.0.0",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C90", # mccabe complexity
"N", # pep8-naming
"UP", # pyupgrade
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by black)
"B008", # do not perform function calls in argument defaults
"B905", # `zip()` without an explicit `strict=` parameter
"C901", # function is too complex (mccabe complexity)
]
[tool.ruff.lint.isort]
known-first-party = ["sandboxes"]
[tool.black]
line-length = 100
target-version = ["py311", "py312"]
[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
check_untyped_defs = false
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"-ra",
"--strict-markers",
]
testpaths = ["tests"]
pythonpath = ["."]
markers = [
"integration: marks tests as integration tests requiring external APIs (deselect with '-m \"not integration\"')",
"e2b: marks tests that require E2B API",
"modal: marks tests that require Modal API",
"daytona: marks tests that require Daytona API",
"hopx: marks tests that require Hopx API",
"vercel: marks tests that require Vercel API",
"cloudflare: marks tests that require Cloudflare API",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.coverage.run]
branch = true
source = ["sandboxes"]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false