Skip to content

Commit e5442b9

Browse files
authored
Merge pull request #96 from commit-0/modal-update
update modal dependency
2 parents 9f5bbca + 442a709 commit e5442b9

File tree

4 files changed

+34
-26
lines changed

4 files changed

+34
-26
lines changed

commit0/harness/build.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ def main(
3232

3333
client = docker.from_env()
3434
build_repo_images(client, specs, num_workers, verbose)
35-
for spec in specs:
36-
image = client.images.get(spec.repo_image_key)
37-
repository, tag = spec.repo_image_tag.split(":")
38-
image.tag(repository, tag)
3935

4036

4137
__all__ = []

commit0/harness/execution_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __init__(
159159
files_to_collect=files_to_collect,
160160
)
161161

162-
self.app = modal.App()
162+
self.app = modal.App.lookup("commit0", create_if_missing=True)
163163

164164
# the image must exist on dockerhub
165165
reponame = spec.repo.split("/")[-1]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dependencies = [
1313
"pre-commit>=3.8.0",
1414
"import-deps>=0.3.0",
1515
"PyMuPDF>=1.24.5",
16-
"modal==0.64.95",
1716
"typer>=0.12.0",
1817
"tenacity>=8.5.0",
1918
"docker>=7.1.0",
@@ -23,6 +22,7 @@ dependencies = [
2322
"pytest>=8.3.3",
2423
"datasets==3.0.1",
2524
"aider-chat",
25+
"modal>=0.66.26",
2626
]
2727
classifiers = [
2828
"License :: OSI Approved :: MIT License",

uv.lock

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

0 commit comments

Comments
 (0)