feat(install): rewrite install script to venv+sdist model
Replace the binary tarball approach with a venv-based install: - install.sh checks for Python 3.14+, creates ~/.local/share/muse/venv, downloads muse sdist from {MUSEHUB_URL}/releases/muse-{ver}.tar.gz, pip-installs it, and symlinks ~/.local/bin/muse - uninstall.sh removes the symlink AND the venv - No PyPI dependency — sdist served directly from the MuseHub instance - /releases/ StaticFiles mount added to main.py (must precede wildcard routes) - test_install_script_section43.py rewritten to match new API: build_sdist_url replaces build_archive_url (no platform/arch params); venv/pip/symlink assertions added; uninstall checks venv removal
108 tests pass.
sha256:f28fcfeabc07cb31cb6105700dc1f593330ecedfcb8262bcffcf58fc4de947d1
sha
+19
~20
−15
symbols
sha256:18567401c4cada02bbb7c82c11ded3b819059d3650cb926e0a601d1475c5ed90
snapshot
+19
symbols added
~20
symbols modified
−15
symbols removed
0
dead code introduced
Semantic Changes
54 symbols
~
tests/test_install_script_section43.py
.py
17 symbols added, 14 symbols removed, 16 symbols modified
−
test_build_archive_url_matches_all_supported_combinations
method
method test_build_archive_url_matches_all_supported_combinations L203–215
−
test_install_script_archive_url_is_reachable_pattern
method
method test_install_script_archive_url_is_reachable_pattern L196–201
+
test_build_sdist_url_with_current_version
method
method test_build_sdist_url_with_current_version L241–246
+
test_install_script_contains_sdist_url_pattern
method
method test_install_script_contains_sdist_url_pattern L202–209
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:f28fcfeabc07cb31cb6105700dc1f593330ecedfcb8262bcffcf58fc4de947d1 --body "your comment"
No comments yet. Be the first to start the discussion.