diff --git a/scripts/_common.sh b/scripts/_common.sh index 3b3656a..1ed2d98 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -27,8 +27,8 @@ log_file="${log_path}/django_ynh.log" # dependencies used by the app pkg_dependencies="build-essential python3-dev python3-pip python3-venv git postgresql postgresql-contrib" -# django_ynh's version for PIP and settings file -django_ynh_version="0.8.2" +# To install/upgrade this project via pip: +pip_install_string="django_ynh==0.1.0" #================================================= # Redis HELPERS diff --git a/scripts/install b/scripts/install index 6578d2c..f949f81 100755 --- a/scripts/install +++ b/scripts/install @@ -114,6 +114,7 @@ chown -R "$app" "$final_path" set -o nounset ynh_exec_as $app $final_path/venv/bin/pip install --upgrade pip ynh_exec_as $app $final_path/venv/bin/pip install -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip install --upgrade "$pip_install_string" ) #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index b57109f..be9bdd7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,6 +98,7 @@ chown -R "$app" "$final_path" set -o nounset ynh_exec_as $app $final_path/venv/bin/pip install --upgrade pip ynh_exec_as $app $final_path/venv/bin/pip install -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip install --upgrade "$pip_install_string" ) #=================================================