lexsi-ds-agent / scripts /package.sh
adityatannaarya's picture
updated tools and added scripts
bea26c5
Raw
History Blame Contribute Delete
1.13 kB
#!/usr/bin/env bash
# Bundle the modeling-tools deliverable into a clean zip.
#
# What's included: everything Aditya owns or touched + the test suite +
# the offline demo. Excludes generated artifacts, caches, the bundled
# PKDD source tree, and the original zip.
#
# Usage:
# bash scripts/package.sh # writes ./dist/lexsi_ds_agent-modeling.zip
# OUT=/tmp/foo.zip bash scripts/package.sh
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
OUT="${OUT:-$REPO_ROOT/dist/lexsi_ds_agent-modeling.zip}"
mkdir -p "$(dirname "$OUT")"
rm -f "$OUT"
cd "$REPO_ROOT"
zip -r "$OUT" \
README.md \
pyproject.toml \
docs/ \
knowledge/ \
lexsi_ds/ \
app/ \
tests/ \
scripts/ \
HANDOFF.md \
MODELING_TOOLS.md \
-x "*/__pycache__/*" \
"*/.pytest_cache/*" \
"*/.ruff_cache/*" \
"*/.mypy_cache/*" \
"*.egg-info/*" \
"*/node_modules/*" \
".cache/*" \
".local/*" \
".npm/*" \
".npm-global/*" \
".npmrc" \
"artifacts/sessions/*" \
"artifacts/runs/*" \
"uv.lock" \
"*.duckdb"
echo "wrote $OUT ($(du -h "$OUT" | cut -f1))"