Ship the portable X11 bundle lifecycle
Some checks are pending
ci / test-and-build (push) Waiting to run
Some checks are pending
ci / test-and-build (push) Waiting to run
Implement milestone 2 around a portable X11 release bundle instead of\nkeeping distro packages as the only end-user path.\n\nAdd make/package scripts plus a portable installer helper that builds the\ntarball, creates a user-scoped venv install, manages the user service, handles\nupgrade rollback, and supports uninstall with optional purge.\n\nFlip the end-user docs to the portable bundle, add a dedicated install guide\nand validation matrix, and leave the roadmap milestone open only for the\nremaining manual distro validation evidence.\n\nValidation: python3 -m py_compile src/*.py packaging/portable/portable_installer.py tests/test_portable_bundle.py; PYTHONPATH=src python3 -m unittest tests.test_portable_bundle; PYTHONPATH=src python3 -m unittest tests.test_aman_cli tests.test_diagnostics tests.test_portable_bundle; PYTHONPATH=src python3 -m unittest discover -s tests -p 'test_*.py'
This commit is contained in:
parent
511fab683a
commit
a3368056ff
15 changed files with 1372 additions and 45 deletions
|
|
@ -3,8 +3,8 @@ set -euo pipefail
|
|||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
ROOT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
DIST_DIR="${ROOT_DIR}/dist"
|
||||
BUILD_DIR="${ROOT_DIR}/build"
|
||||
DIST_DIR="${DIST_DIR:-${ROOT_DIR}/dist}"
|
||||
BUILD_DIR="${BUILD_DIR:-${ROOT_DIR}/build}"
|
||||
APP_NAME="aman"
|
||||
|
||||
mkdir -p "${DIST_DIR}" "${BUILD_DIR}"
|
||||
|
|
@ -20,7 +20,7 @@ require_command() {
|
|||
|
||||
project_version() {
|
||||
require_command python3
|
||||
python3 - <<'PY'
|
||||
python3 - <<'PY'
|
||||
from pathlib import Path
|
||||
import re
|
||||
|
||||
|
|
@ -48,12 +48,13 @@ PY
|
|||
|
||||
build_wheel() {
|
||||
require_command python3
|
||||
python3 -m build --wheel --no-isolation
|
||||
python3 -m build --wheel --no-isolation --outdir "${DIST_DIR}"
|
||||
}
|
||||
|
||||
latest_wheel_path() {
|
||||
require_command python3
|
||||
python3 - <<'PY'
|
||||
import os
|
||||
from pathlib import Path
|
||||
import re
|
||||
|
||||
|
|
@ -64,9 +65,10 @@ if not name_match or not version_match:
|
|||
raise SystemExit("project metadata not found in pyproject.toml")
|
||||
name = name_match.group(1).replace("-", "_")
|
||||
version = version_match.group(1)
|
||||
candidates = sorted(Path("dist").glob(f"{name}-{version}-*.whl"))
|
||||
dist_dir = Path(os.environ.get("DIST_DIR", "dist"))
|
||||
candidates = sorted(dist_dir.glob(f"{name}-{version}-*.whl"))
|
||||
if not candidates:
|
||||
raise SystemExit("no wheel artifact found in dist/")
|
||||
raise SystemExit(f"no wheel artifact found in {dist_dir.resolve()}")
|
||||
print(candidates[-1])
|
||||
PY
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue