diff --git a/scripts/_common.sh b/scripts/_common.sh index 224739d..a9408e7 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -748,6 +748,15 @@ flohmarkt_ynh_create_venv() { python3 -m venv --without-pip "$flohmarkt_venv_dir" } +flohmarkt_ynh_venv_upgrade() { + ynh_print_warn --message="flohmarkt_ynh_venv_upgrade: I'll sit here and do nothing without @grindholds confirmation" + true + ( + $flohmarkt_venv_dir/bin/python3 -m venv --upgrade-deps + ) +} + + # install requirements.txt in venv flohmarkt_ynh_venv_requirements() { ( diff --git a/scripts/install b/scripts/install index 5bdfc14..3f014f3 100755 --- a/scripts/install +++ b/scripts/install @@ -59,6 +59,7 @@ ynh_setup_source --dest_dir="$flohmarkt_app_dir" ynh_script_progression --message="Creating python venv..." --weight=2 ynh_secure_remove "$flohmarkt_venv_dir" flohmarkt_ynh_create_venv +flohmarkt_ynh_venv_upgrade flohmarkt_ynh_venv_requirements # JwtSecret diff --git a/scripts/upgrade b/scripts/upgrade index d89db1b..dfa65e3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,6 +48,7 @@ ynh_setup_source --dest_dir="$flohmarkt_app_dir/" ynh_script_progression --message="Upgrading flohmarkt python dependencies..." --weight=6 # upgrade python environment / install new dependencies +flohmarkt_ynh_venv_upgrade flohmarkt_ynh_venv_requirements # upgrade flohmarkt.conf