explicitly specify python version in pdm lock file build target

This commit is contained in:
Nick Sweeting 2024-08-22 15:54:02 -07:00
parent 9ecc2ff91c
commit 3b28042d0d
No known key found for this signature in database
3 changed files with 161 additions and 376 deletions

View file

@ -60,14 +60,16 @@ pdm info
echo
# https://pdm-project.org/latest/usage/lockfile/
# prod
pdm lock --group=':all' --production --lockfile pdm.lock --strategy="cross_platform"
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 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 --strategy="cross_platform"
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 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/