Skip to content

Commit 4e8cc07

Browse files
authored
Merge branch 'main' into codex/fix-echo-doc-imports
2 parents 0009448 + a53bc55 commit 4e8cc07

26 files changed

Lines changed: 955 additions & 768 deletions

File tree

.github/workflows/publish-testpypi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,13 @@ jobs:
143143
python -m venv .testpypi-verify
144144
. .testpypi-verify/bin/activate
145145
python -m pip install --upgrade pip
146+
python -m pip install --index-url https://pypi.org/simple/ dist/*.whl
147+
python -m pip uninstall -y openenv
146148
147149
for attempt in 1 2 3 4 5; do
148150
if python -m pip install \
151+
--no-deps \
149152
--index-url https://test.pypi.org/simple/ \
150-
--extra-index-url https://pypi.org/simple/ \
151153
"openenv==${{ needs.build.outputs.version }}"; then
152154
break
153155
fi

docs/source/getting_started/environment-builder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Already familiar with OpenEnv? Here's the 8-step process at a glance:
1717
| 2 | Edit `models.py` | Define Action & Observation dataclasses |
1818
| 3 | Edit `server/my_environment.py` | Implement `reset()` and `step()` methods |
1919
| 4 | Edit `client.py` | Implement `_step_payload()`, `_parse_result()`, `_parse_state()` |
20-
| 5 | `openenv serve` | Start local dev server for testing |
20+
| 5 | `uv run --project . server` | Start local dev server for testing |
2121
| 6 | `openenv validate` | Validate environment structure |
2222
| 7 | `openenv push` | Deploy to Hugging Face Hub |
2323
| 8 | Share the URL! | Others use via `MyEnv.from_hub("you/my-env")` |
@@ -27,7 +27,7 @@ Already familiar with OpenEnv? Here's the 8-step process at a glance:
2727
| Command | Description |
2828
|---------|-------------|
2929
| `openenv init NAME` | Scaffold new environment |
30-
| `openenv serve` | Start local dev server |
30+
| `uv run --project . server` | Start local dev server |
3131
| `openenv build` | Build Docker image |
3232
| `openenv validate --verbose` | Validate environment structure |
3333
| `openenv push` | Deploy to Hugging Face Hub |

docs/source/reference/cli.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ The `openenv` CLI provides a set of commands for building, validating, and pushi
2020

2121
## `openenv serve`
2222

23+
Local serving is not implemented in the CLI yet. This command exits non-zero
24+
and prints alternative ways to run an environment server.
25+
2326
[[autodoc]] openenv.cli.commands.serve.serve
2427

2528
## `openenv fork`

envs/agent_world_model_env/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies = [
1919
"openai>=1.106.1",
2020
"mcp-agent==0.2.6",
2121
# Used by the custom Gradio web UI (server/web_ui.py).
22-
"gradio>=4.0.0",
22+
"gradio>=6.15.0",
2323
]
2424

2525
[project.optional-dependencies]

envs/agent_world_model_env/uv.lock

Lines changed: 179 additions & 185 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

envs/coding_env/server/python_executor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
logger = logging.getLogger(__name__)
3232
logger.addHandler(logging.NullHandler())
3333

34+
DEFAULT_SAFE_IMPORTS = ["json"]
35+
3436

3537
class PyExecutor:
3638
"""Wrapper around smolagents LocalPythonExecutor.
@@ -43,7 +45,7 @@ class PyExecutor:
4345

4446
def __init__(self, additional_imports: list[str] | None = None):
4547
if additional_imports is None:
46-
additional_imports = []
48+
additional_imports = DEFAULT_SAFE_IMPORTS.copy()
4749

4850
self._executor = LocalPythonExecutor(
4951
additional_authorized_imports=additional_imports

envs/echo_env/uv.lock

Lines changed: 144 additions & 150 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

envs/finqa_env/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "FinQA Environment for OpenEnv - financial question-answering on S
99
requires-python = ">=3.10"
1010
dependencies = [
1111
# Core OpenEnv dependencies (required for server functionality)
12-
"openenv>=0.2.2",
12+
"openenv>=0.2.3",
1313
"fastapi>=0.115.0",
1414
"fastmcp>=2.0.0",
1515
"pydantic>=2.0.0",
@@ -31,4 +31,3 @@ server = "finqa_env.server.app:main"
3131
[tool.setuptools]
3232
packages = ["finqa_env", "finqa_env.server"]
3333
package-dir = { "finqa_env" = ".", "finqa_env.server" = "server" }
34-

envs/finqa_env/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

envs/openspiel_env/uv.lock

Lines changed: 130 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)