update paho to v2.0
This commit is contained in:
parent
084b340e70
commit
4afb781cf8
24
init_venv
24
init_venv
@ -2,7 +2,23 @@
|
||||
#
|
||||
BASEPATH=`realpath $(dirname $0)`
|
||||
|
||||
python3 -m venv $BASEPATH/venv
|
||||
$BASEPATH/venv/bin/pip install --upgrade pip
|
||||
find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r
|
||||
$BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U
|
||||
#
|
||||
# Create venv
|
||||
#
|
||||
if [[ ! -e $BASEPATH/venv ]]; then
|
||||
python3 -m venv $BASEPATH/venv > /dev/null 2>&1
|
||||
# $BASEPATH/venv/bin/pip install --upgrade pip
|
||||
find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r > /dev/null 2>&1
|
||||
echo "venv changed"
|
||||
fi
|
||||
#
|
||||
# Update venv modules
|
||||
#
|
||||
for req_mod in $($BASEPATH/venv/bin/pip list --format=json | jq -r '.[] | .name'); do
|
||||
$BASEPATH/venv/bin/pip install -U $req_mod | grep install > /dev/null 2>&1
|
||||
if [[ "$?" -eq "0" ]]; then
|
||||
echo $req_mod changed
|
||||
fi
|
||||
|
||||
done
|
||||
#|xargs -n1 $BASEPATH/venv/bin/pip install -U
|
||||
|
2
mqtt
2
mqtt
@ -1 +1 @@
|
||||
Subproject commit 1adfb0626e7777c6d29be65d4ad4ce2d57541301
|
||||
Subproject commit 328d3471a748472695a61193becdda76c7eefe69
|
Loading…
x
Reference in New Issue
Block a user