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.

Force exclude `marimo/_lsp` in `marimo-base` build (#5929)

Trevor Manz17e2975f189b
diff --git a/scripts/modify_pyproject_for_marimo_base.py b/scripts/modify_pyproject_for_marimo_base.py
index 40af2b40d2..322c227a8d 100755
--- a/scripts/modify_pyproject_for_marimo_base.py
+++ b/scripts/modify_pyproject_for_marimo_base.py
@@ -23,17 +23,17 @@ import tomlkit
root = pathlib.Path(__file__).parent.parent
+force_exclude = ["marimo/_lsp"]
static_dir = root / "marimo/_static"
if static_dir.exists():
- force_exclude = [
+ force_exclude.extend([
str(item.relative_to(root))
for item in static_dir.iterdir()
if item.name != "index.html"
- ]
+ ])
else:
print("No _static directory found, skipping")
- force_exclude = []
with (root / "pyproject.toml").open(encoding="utf-8", mode="r") as f:
data = tomlkit.load(f)