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.

fix: marimo-base modification (#2935)

Myles Scolnick6559d12bcc52
diff --git a/pyproject.toml b/pyproject.toml
index 554a1e7d14..615b1f8c66 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -122,22 +122,12 @@ path = "marimo/__init__.py"
[tool.hatch.build.targets.sdist]
include = ["/marimo"]
-artifacts = [
- "marimo/_static/",
- "marimo/_lsp/",
- "third_party.txt",
- "third_party_licenses.txt",
-]
+artifacts = ["marimo/_static/", "marimo/_lsp/", "third_party.txt", "third_party_licenses.txt"]
exclude = ["marimo/_smoke_tests"]
[tool.hatch.build.targets.wheel]
include = ["/marimo"]
-artifacts = [
- "marimo/_static/",
- "marimo/_lsp/",
- "third_party.txt",
- "third_party_licenses.txt",
-]
+artifacts = ["marimo/_static/", "marimo/_lsp/", "third_party.txt", "third_party_licenses.txt"]
exclude = ["marimo/_smoke_tests"]
# Override the default uv version to use the latest version
diff --git a/scripts/modify_pyproject_for_marimo_base.sh b/scripts/modify_pyproject_for_marimo_base.sh
index 18df539530..40e95f126b 100755
--- a/scripts/modify_pyproject_for_marimo_base.sh
+++ b/scripts/modify_pyproject_for_marimo_base.sh
@@ -10,5 +10,6 @@
# Mac has a different syntax for sed -i, this works across oses
sed -i.bak -e 's/name = "marimo"/name = "marimo-base"/g' pyproject.toml
# Replace static artifacts with just index.html
+# TODO: this should be a more robust by handling new lines
sed -i.bak 's/artifacts = \[.*\]/artifacts = ["marimo\/_static\/index.html"]/' pyproject.toml
rm -rf pyproject.toml.bak
diff --git a/scripts/validate_base_wheel_size.sh b/scripts/validate_base_wheel_size.sh
index cfb2b09d01..274756729a 100755
--- a/scripts/validate_base_wheel_size.sh
+++ b/scripts/validate_base_wheel_size.sh
@@ -11,6 +11,7 @@ fi
if [ $size -gt 2097152 ]; then
echo "Wheel file is larger than 2mb"
+ echo "Size: $size bytes"
exit 1
fi