1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-12 17:44:33 +02:00

update build and release scripts to use uv

This commit is contained in:
Nick Sweeting
2024-10-05 01:17:23 -07:00
parent ce2e19a429
commit e29aff12bf
10 changed files with 1292 additions and 2094 deletions

View File

@@ -11,21 +11,15 @@ set -o pipefail
IFS=$'\n'
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
if [[ -f "$REPO_DIR/.venv/bin/activate" ]]; then
source "$REPO_DIR/.venv/bin/activate"
else
echo "[!] Warning: No virtualenv presesnt in $REPO_DIR/.venv, creating one now..."
python3 -m venv --system-site-packages --symlinks $REPO_DIR/.venv
fi
cd "$REPO_DIR"
# Generate pdm.lock, requirements.txt, and package-lock.json
bash ./bin/lock_pkgs.sh
source .venv/bin/activate
echo "[+] Building sdist, bdist_wheel, and egg_info"
rm -Rf build dist
pdm build
uv build
cp dist/* ./pip_dist/
echo