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:
parent
5c856119b2
commit
2370749704
3 changed files with 11 additions and 0 deletions
|
@ -748,6 +748,15 @@ flohmarkt_ynh_create_venv() {
|
||||||
python3 -m venv --without-pip "$flohmarkt_venv_dir"
|
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
|
# install requirements.txt in venv
|
||||||
flohmarkt_ynh_venv_requirements() {
|
flohmarkt_ynh_venv_requirements() {
|
||||||
(
|
(
|
||||||
|
|
|
@ -59,6 +59,7 @@ ynh_setup_source --dest_dir="$flohmarkt_app_dir"
|
||||||
ynh_script_progression --message="Creating python venv..." --weight=2
|
ynh_script_progression --message="Creating python venv..." --weight=2
|
||||||
ynh_secure_remove "$flohmarkt_venv_dir"
|
ynh_secure_remove "$flohmarkt_venv_dir"
|
||||||
flohmarkt_ynh_create_venv
|
flohmarkt_ynh_create_venv
|
||||||
|
flohmarkt_ynh_venv_upgrade
|
||||||
flohmarkt_ynh_venv_requirements
|
flohmarkt_ynh_venv_requirements
|
||||||
|
|
||||||
# JwtSecret
|
# JwtSecret
|
||||||
|
|
|
@ -48,6 +48,7 @@ ynh_setup_source --dest_dir="$flohmarkt_app_dir/"
|
||||||
|
|
||||||
ynh_script_progression --message="Upgrading flohmarkt python dependencies..." --weight=6
|
ynh_script_progression --message="Upgrading flohmarkt python dependencies..." --weight=6
|
||||||
# upgrade python environment / install new dependencies
|
# upgrade python environment / install new dependencies
|
||||||
|
flohmarkt_ynh_venv_upgrade
|
||||||
flohmarkt_ynh_venv_requirements
|
flohmarkt_ynh_venv_requirements
|
||||||
|
|
||||||
# upgrade flohmarkt.conf
|
# upgrade flohmarkt.conf
|
||||||
|
|
Loading…
Reference in a new issue