Skip to content

Commit bdd61d3

Browse files
authored
fix: pin codegen version (#699)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent b9c39d7 commit bdd61d3

File tree

7 files changed

+272
-154
lines changed

7 files changed

+272
-154
lines changed

codegen-examples/examples/snapshot_event_handler/codegen_app_event_handlers.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

codegen-examples/examples/snapshot_event_handler/event_handlers.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,13 @@
2222

2323
SNAPSHOT_DICT_ID = "codegen-events-codebase-snapshots"
2424

25-
26-
REPO_URL = "https://github.com/codegen-sh/codegen-sdk.git"
27-
COMMIT_ID = "f398107d31bbd53fc77bc9c5f8763d2dc8fcae5b"
28-
2925
# Create the base image with dependencies
3026
base_image = (
3127
modal.Image.debian_slim(python_version="3.13")
3228
.apt_install("git")
3329
.pip_install(
3430
# =====[ Codegen ]=====
35-
# "codegen",
36-
f"git+{REPO_URL}@{COMMIT_ID}",
31+
"codegen==0.42.1",
3732
# =====[ Rest ]=====
3833
"openai>=1.1.0",
3934
"fastapi[standard]",

codegen-examples/examples/snapshot_event_handler/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies = [
99
"modal>=0.73.72",
1010
"fastapi-restful[all]>=0.6.0",
1111
"classy-fastapi>=0.6.1",
12-
"codegen@git+https://github.com/codegen-sh/codegen-sdk.git@f398107d31bbd53fc77bc9c5f8763d2dc8fcae5b",
12+
"codegen==0.42.1",
1313
]
1414
license = { file = "LICENSE" }
1515
classifiers = [

codegen-examples/examples/snapshot_event_handler/uv.lock

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

codegen-examples/examples/ticket-to-pr/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
logging.basicConfig(level=logging.INFO)
1616
logger = logging.getLogger(__name__)
1717

18-
image = modal.Image.debian_slim(python_version="3.13").apt_install("git").pip_install("fastapi[standard]", "codegen>=v0.26.3")
18+
image = modal.Image.debian_slim(python_version="3.13").apt_install("git").pip_install("fastapi[standard]", "codegen==v0.26.3")
1919

2020
app = CodegenApp("linear-bot", image=image, modal_api_key="")
2121

src/codegen/extensions/events/app.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/unit/codegen/extensions/events/test_decorators.py

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)