1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00

upgrade venv

https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/47

draft
This commit is contained in:
Chris Vogel 2024-06-18 14:16:51 +02:00
parent 5c856119b2
commit 2370749704
3 changed files with 11 additions and 0 deletions

View file

@ -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() {
(

View file

@ -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

View file

@ -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