From 8fed3a6d7c5409665aa0cfa23c4d6b5d86bdd871 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Wed, 27 Sep 2023 12:39:55 +0200 Subject: [PATCH] Freeze dependencies. --- scripts/install | 2 +- scripts/upgrade | 2 +- .../patches/app-00-frozen-requirements.patch | 36 +++++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 sources/patches/app-00-frozen-requirements.patch diff --git a/scripts/install b/scripts/install index f3e2b19..8b3e880 100755 --- a/scripts/install +++ b/scripts/install @@ -43,7 +43,7 @@ ynh_script_progression --message="Building zeronet..." ynh_exec_as "$app" python3 -m venv --upgrade "$install_dir/venv" ynh_exec_as "$app" "$install_dir/venv/bin/python3" -m pip install --upgrade pip -ynh_exec_as "$app" "$install_dir/venv/bin/python3" -m pip install -r "$install_dir/source/requirements.txt" +ynh_exec_as "$app" "$install_dir/venv/bin/python3" -m pip install -r "$install_dir/source/requirements.txt" --no-deps # Enable password authentication for Zeronet mv "$install_dir/source/plugins/disabled-UiPassword" "$install_dir/source/plugins/UiPassword" diff --git a/scripts/upgrade b/scripts/upgrade index 716eca0..718a65c 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,7 +48,7 @@ ynh_script_progression --message="Building zeronet..." ynh_exec_as "$app" python3 -m venv --upgrade "$install_dir/venv" ynh_exec_as "$app" "$install_dir/venv/bin/python3" -m pip install --upgrade pip -ynh_exec_as "$app" "$install_dir/venv/bin/python3" -m pip install -r "$install_dir/source/requirements.txt" +ynh_exec_as "$app" "$install_dir/venv/bin/python3" -m pip install -r "$install_dir/source/requirements.txt" --no-deps # Enable password authentication for Zeronet mv "$install_dir/source/plugins/disabled-UiPassword" "$install_dir/source/plugins/UiPassword" diff --git a/sources/patches/app-00-frozen-requirements.patch b/sources/patches/app-00-frozen-requirements.patch new file mode 100644 index 0000000..17f64a3 --- /dev/null +++ b/sources/patches/app-00-frozen-requirements.patch @@ -0,0 +1,36 @@ +diff --git a/requirements.txt b/requirements.txt +index b3df57e..9870c84 100644 +--- a/requirements.txt ++++ b/requirements.txt +@@ -1,13 +1,18 @@ +-gevent==1.4.0; python_version <= "3.6" +-greenlet==0.4.16; python_version <= "3.6" +-gevent>=20.9.0; python_version >= "3.7" +-msgpack>=0.4.4 +-base58 +-merkletools +-rsa +-PySocks>=1.6.8 +-pyasn1 +-websocket_client +-gevent-ws +-coincurve +-maxminddb ++asn1crypto==1.5.1 ++base58==2.1.1 ++cffi==1.15.1 ++coincurve==18.0.0 ++gevent==23.9.1 ++gevent-ws==2.1.0 ++greenlet==2.0.2 ++maxminddb==2.4.0 ++merkletools==1.0.3 ++msgpack==1.0.6 ++pipdeptree==2.13.0 ++pyasn1==0.5.0 ++pycparser==2.21 ++PySocks==1.7.1 ++rsa==4.9 ++websocket-client==1.6.3 ++zope.event==5.0 ++zope.interface==6.0