Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (141 loc) · 4.39 KB
/
Copy pathpyproject.toml
File metadata and controls
156 lines (141 loc) · 4.39 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
[build-system]
requires = ["setuptools>=77", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "openenv"
version = "0.12.1.dev0"
description = "A unified framework for reinforcement learning environments"
readme = "README.md"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
requires-python = ">=3.10"
dependencies = [
# Core shared dependencies - minimal set required for all environments
# Heavy dependencies (torch, numpy, smolagents, etc.) should be in
# individual environment pyproject.toml files
"fastapi>=0.116.0",
"pydantic>=2.0.0",
"packaging>=24.2",
"typing_extensions>=4.0.0",
"uvicorn>=0.24.0",
"requests>=2.25.0",
# CLI dependencies
"typer>=0.9.0",
"rich>=13.0.0",
"pyyaml>=6.0",
"huggingface_hub>=1.29.0",
"openai>=2.7.2",
"tomli>=2.3.0",
"tomli-w>=1.2.0",
"websockets>=15.0.1",
# MCP support
"fastmcp>=3.0.0,<4.0.0",
# Web UI dependencies
"gradio>=4.0.0",
"httpx>=0.28.1",
"jsonschema>=4.20.0",
]
[project.optional-dependencies]
# `pip install openenv` includes the full runtime; the extras below are
# optional integrations.
daytona = [
"daytona>=0.136.0",
"pyyaml>=6.0",
]
aca = [
# Preview SDK — pin with an upper bound and re-validate on upgrades
# (the provider talks to it through a private adapter for exactly this churn).
"azure-containerapps-sandbox>=0.1.0b2,<0.2.0",
"azure-identity>=1.23.0",
]
modal = [
"modal>=1.4.0",
"pyyaml>=6.0",
]
kubernetes = [
"kubernetes>=29.0.0",
]
novita = [
"novita-sandbox>=2.1.1",
]
inspect = [
"inspect-ai>=0.3.0",
]
harbor = [
# Every sandbox backend. Bare `harbor` gives one that lists all 23 backends and can
# instantiate none of them: each raises MissingExtraError from its constructor, which
# surfaces as a failed rollout rather than as a missing dependency.
#
# Not `harbor[cloud]`, which is unsatisfiable: it pulls `langsmith[sandbox]`
# (websockets>=15) and `tensorlake` (websockets>=13,<14) together.
#
# Harbor requires Python >= 3.12, so this extra is excluded from the 3.11 CI leg.
"harbor[e2b,modal,daytona,gke,ec2,runloop,novita,blaxel,beam,islo,opensandbox,cwsandbox,use-computer,cua]>=0.22.0; python_version >= '3.12'",
]
[project.scripts]
openenv = "openenv.cli.__main__:main"
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
[tool.setuptools.package-data]
"openenv.cli" = ["templates/**/*", "templates/openenv_env/.dockerignore"]
"openenv.cli.importers" = ["templates/**/*"]
"openenv.validation" = ["policies/*.json", "schemas/*.json"]
"openenv.discovery" = ["schemas/**/*.json"]
"openenv.harbor" = ["ui_assets/*"]
[tool.setuptools.exclude-package-data]
"*" = ["*.pyc", "*.pyo", "__pycache__/*"]
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["*.__pycache__", "*.__pycache__.*"]
[tool.coverage.run]
omit = [
"openenv/cli/templates/**",
"**/templates/**",
"openenv/cli/__main__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"docker: Tests that require Docker to be running",
"network: Tests that require network access (HuggingFace, etc.)",
"integration: Integration tests with external resources",
]
[dependency-groups]
dev = [
"ruff>=0.14.0",
"usort>=1.1.0",
"pytest>=7.0",
"pytest-asyncio>=0.21",
"jsonschema>=4.20.0",
]
[tool.usort]
# Disable first_party auto-detection so all non-stdlib imports land in
# the same "third_party" bucket (the default_category). This matches
# pyfmt's usort behavior inside arc f, which groups openenv.* and env
# package imports together without blank-line separators.
first_party_detection = false
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = [
"E402", # Module level import not at top of file (needed for pytest.importorskip patterns)
"E501", # Line too long (not enforced previously, would require large refactor)
]
[tool.ruff.lint.per-file-ignores]
# Context manager variables that are intentionally unused
"tests/envs/test_websockets.py" = ["F841"]
"tests/test_cli/test_push.py" = ["F841"]
# Compatibility shim module
"src/openenv_core/__init__.py" = ["F401"]