diff --git a/commit0/harness/execution_context.py b/commit0/harness/execution_context.py index 27fd5b4..a90052b 100644 --- a/commit0/harness/execution_context.py +++ b/commit0/harness/execution_context.py @@ -9,7 +9,8 @@ import logging import modal import modal.io_streams -from enum import StrEnum, auto +from enum import auto +from strenum import StrEnum from pathlib import Path import time from typing import Optional, Type diff --git a/commit0/harness/run_pytest_ids.py b/commit0/harness/run_pytest_ids.py index 657ac82..37f011e 100644 --- a/commit0/harness/run_pytest_ids.py +++ b/commit0/harness/run_pytest_ids.py @@ -122,6 +122,7 @@ def main( eval_file = Path(log_dir / "eval.sh") eval_file.write_text(eval_script) + backend = backend.upper() if ExecutionBackend(backend) == ExecutionBackend.MODAL: logger.info("Runnning on Modal") execution_context = Modal diff --git a/pyproject.toml b/pyproject.toml index 7eb6305..a7b2e4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ dependencies = [ "pytest>=8.3.3", "datasets==3.0.1", "modal>=0.66.26", + "strenum>=0.4.15", ] classifiers = [ "License :: OSI Approved :: MIT License", diff --git a/uv.lock b/uv.lock index 982f45a..1d5f7d9 100644 --- a/uv.lock +++ b/uv.lock @@ -367,7 +367,7 @@ wheels = [ [[package]] name = "commit0" -version = "0.1.6" +version = "0.1.7" source = { editable = "." } dependencies = [ { name = "datasets" }, @@ -379,6 +379,7 @@ dependencies = [ { name = "pre-commit" }, { name = "pytest" }, { name = "ruff" }, + { name = "strenum" }, { name = "typer" }, ] @@ -403,6 +404,7 @@ requires-dist = [ { name = "pymupdf", marker = "extra == 'agent'", specifier = ">=1.24.5" }, { name = "pytest", specifier = ">=8.3.3" }, { name = "ruff", specifier = ">=0.6.4" }, + { name = "strenum", specifier = ">=0.4.15" }, { name = "typer", specifier = ">=0.12.0" }, ] @@ -1885,6 +1887,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/96/00/2b325970b3060c7cecebab6d295afe763365822b1306a12eeab198f74323/starlette-0.41.3-py3-none-any.whl", hash = "sha256:44cedb2b7c77a9de33a8b74b2b90e9f50d11fcf25d8270ea525ad71a25374ff7", size = 73225 }, ] +[[package]] +name = "strenum" +version = "0.4.15" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/85/ad/430fb60d90e1d112a62ff57bdd1f286ec73a2a0331272febfddd21f330e1/StrEnum-0.4.15.tar.gz", hash = "sha256:878fb5ab705442070e4dd1929bb5e2249511c0bcf2b0eeacf3bcd80875c82eff", size = 23384 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/69/297302c5f5f59c862faa31e6cb9a4cd74721cd1e052b38e464c5b402df8b/StrEnum-0.4.15-py3-none-any.whl", hash = "sha256:a30cda4af7cc6b5bf52c8055bc4bf4b2b6b14a93b574626da33df53cf7740659", size = 8851 }, +] + [[package]] name = "synchronicity" version = "0.9.3"