Browse Source

Fix mkvenv - freeze with outdated not supported

84582af
Dirk Alders 1 year ago
parent
commit
69f4203d60
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      mkvenv

+ 2
- 2
mkvenv View File

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

Loading…
Cancel
Save