Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Temporarily raise the base wheel size limit to 2.25 MiB (#11241)

Trevor Manzc882a05368fd
diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.yml
index 70969f0b56..9fd1725d06 100644
--- a/.github/workflows/release-dev.yml
+++ b/.github/workflows/release-dev.yml
@@ -92,7 +92,7 @@ jobs:
- name: 📦 Build marimo-base
run: uv build
- - name: 📦 Validate wheel under 2mb
+ - name: 📦 Validate base wheel size
run: ./scripts/validate_base_wheel_size.sh
- name: 📦 Upload marimo-base dist artifact
diff --git a/.github/workflows/release-marimo-base.yml b/.github/workflows/release-marimo-base.yml
index 8fbe00ed46..40df3d0d61 100644
--- a/.github/workflows/release-marimo-base.yml
+++ b/.github/workflows/release-marimo-base.yml
@@ -57,7 +57,7 @@ jobs:
- name: 📦 Build marimo-base
run: uv build
- - name: 📦 Validate wheel under 2mb
+ - name: 📦 Validate base wheel size
run: ./scripts/validate_base_wheel_size.sh
- name: 📤 Upload to PyPI
diff --git a/scripts/validate_base_wheel_size.sh b/scripts/validate_base_wheel_size.sh
index a6d29857dc..df0b177653 100755
--- a/scripts/validate_base_wheel_size.sh
+++ b/scripts/validate_base_wheel_size.sh
@@ -15,8 +15,11 @@ else
size=$(stat -c%s "$wheel_file")
fi
-if [ $size -gt 2097152 ]; then
- echo "Wheel file is larger than 2mb"
+# TODO: Restore the 2 MiB limit after the host-protocol migration removes
+# the superseded code.
+max_size=2359296 # 2.25 MiB
+if [ "$size" -gt "$max_size" ]; then
+ echo "Wheel file exceeds the size limit ($max_size bytes)"
echo "Size: $size bytes"
exit 1
fi