1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-28 08:39:54 +02:00

change pdm to use 3.11 for locking

This commit is contained in:
Nick Sweeting
2024-09-06 03:49:10 -07:00
parent 3f76e0a87f
commit 770e06960c
4 changed files with 224 additions and 257 deletions

View File

@@ -49,7 +49,7 @@ echo
echo "[+] Generating dev & prod requirements.txt & pdm.lock from pyproject.toml..."
pip install --upgrade pip setuptools
pdm self update >/dev/null 2>&1 || true
pdm venv create 3.10
pdm venv create 3.11
echo
echo "pyproject.toml: archivebox $(grep 'version = ' pyproject.toml | awk '{print $3}' | jq -r)"
echo "$(which python): $(python --version | head -n 1)"
@@ -60,16 +60,16 @@ pdm info
echo
# https://pdm-project.org/latest/usage/lockfile/
# prod
pdm lock --group=':all' --production --lockfile pdm.lock --python="==3.10.*" --platform=linux
pdm lock --group=':all' --production --lockfile pdm.lock --python="==3.10.*" --platform=macos --append
pdm lock --group=':all' --production --lockfile pdm.lock --python="==3.11.*" --platform=linux
pdm lock --group=':all' --production --lockfile pdm.lock --python="==3.11.*" --platform=macos --append
pdm sync --group=':all' --production --lockfile pdm.lock --clean
pdm export --group=':all' --production --lockfile pdm.lock --without-hashes -o requirements.txt
# cp ./pdm.lock ./pip_dist/
# cp ./requirements.txt ./pip_dist/
# dev
pdm lock --group=':all' --dev --lockfile pdm.dev.lock --python="==3.10.*" --platform=linux
pdm lock --group=':all' --dev --lockfile pdm.dev.lock --python="==3.10.*" --platform=macos --append
pdm lock --group=':all' --dev --lockfile pdm.dev.lock --python="==3.11.*" --platform=linux
pdm lock --group=':all' --dev --lockfile pdm.dev.lock --python="==3.11.*" --platform=macos --append
pdm sync --group=':all' --dev --lockfile pdm.dev.lock --clean
pdm export --group=':all' --dev --lockfile pdm.dev.lock --without-hashes -o requirements-dev.txt
# cp ./pdm.dev.lock ./pip_dist/