Skip to content

Commit 3fa6f69

Browse files
authored
Merge pull request #98 from commit-0/python310
python 3.10 compatability
2 parents ab667dc + c0a76f9 commit 3fa6f69

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

commit0/harness/execution_context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import logging
1010
import modal
1111
import modal.io_streams
12-
from enum import StrEnum, auto
12+
from enum import auto
13+
from strenum import StrEnum
1314
from pathlib import Path
1415
import time
1516
from typing import Optional, Type

commit0/harness/run_pytest_ids.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def main(
122122
eval_file = Path(log_dir / "eval.sh")
123123
eval_file.write_text(eval_script)
124124

125+
backend = backend.upper()
125126
if ExecutionBackend(backend) == ExecutionBackend.MODAL:
126127
logger.info("Runnning on Modal")
127128
execution_context = Modal

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dependencies = [
1919
"pytest>=8.3.3",
2020
"datasets==3.0.1",
2121
"modal>=0.66.26",
22+
"strenum>=0.4.15",
2223
]
2324
classifiers = [
2425
"License :: OSI Approved :: MIT License",

uv.lock

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

0 commit comments

Comments
 (0)