Fix mkvenv - freeze with outdated not supported

This commit is contained in:
Dirk Alders 2023-03-27 12:52:34 +02:00
parent d1dd85fc35
commit 69f4203d60

4
mkvenv
View File

@ -1,9 +1,9 @@
if [ ! -e venv ];then
virtualenv venv
python3 -m venv venv
if venv/bin/pip -V | grep `pwd -P`; then
venv/bin/pip install --upgrade pip
find . -name requirements.txt | xargs -L 1 venv/bin/pip install -r
venv/bin/pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 venv/bin/pip install -U
venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 venv/bin/pip install -U
else
echo Not running in the venv!
fi