Skip to content

Commit

Permalink
Add compatibility date for Pyodide 0.26.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Dec 24, 2024
1 parent 8620d14 commit 6682892
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/workerd/io/compatibility-date.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -673,4 +673,11 @@ struct CompatibilityFlags @0x8f8c1b68151b6cef {
tailWorkerUserSpans @69 :Bool
$compatEnableFlag("tail_worker_user_spans")
$experimental;

pythonWorkers20241218 @70 :Bool
$compatEnableFlag("python_workers_20241218")
$experimental
$pythonSnapshotRelease(pyodide = "0.26.4", pyodideRevision = "2024-12-18",
packages = "2024-12-18", backport = 0,
baselineSnapshotHash = "TODO");
}
6 changes: 4 additions & 2 deletions src/workerd/server/tests/python/py_wd_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
load("//:build/wd_test.bzl", "wd_test")

FEATURE_FLAGS = {
"0.26.0a2": ["python_workers"],
"0.26.0a2": [],
"0.26.4": ["python_workers_20241218"],
"development": ["python_workers_development"],
}

Expand Down Expand Up @@ -37,7 +38,8 @@ def py_wd_test(
name_flag = name + "_" + python_flag
templated_src = name_flag.replace("/", "-") + "@template"
templated_src = "/".join(src.split("/")[:-1] + [templated_src])
feature_flags_txt = ",".join(['"{}"'.format(flag) for flag in FEATURE_FLAGS[python_flag]])
flags = FEATURE_FLAGS[python_flag] + ["python_workers"]
feature_flags_txt = ",".join(['"{}"'.format(flag) for flag in flags])
expand_template(
name = name_flag + "@rule",
out = templated_src,
Expand Down

0 comments on commit 6682892

Please sign in to comment.