|
@@ -1,9 +1,9 @@
|
1
|
1
|
if [ ! -e venv ];then
|
2
|
|
- virtualenv venv
|
|
2
|
+ python3 -m venv venv
|
3
|
3
|
if venv/bin/pip -V | grep `pwd -P`; then
|
4
|
4
|
venv/bin/pip install --upgrade pip
|
5
|
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
|
7
|
else
|
8
|
8
|
echo Not running in the venv!
|
9
|
9
|
fi
|