From 2478c5395d5504529e5d4b8ee09092fedbc71fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Mon, 7 Jan 2019 21:06:53 +0100 Subject: [PATCH 1/3] update pyyaml --- requirements.txt | 2 +- searx/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index fd61b8109..701e08de9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,5 +6,5 @@ idna==2.7 pygments==2.1.3 pyopenssl==18.0.0 python-dateutil==2.7.3 -pyyaml==3.13 +pyyaml==4.2b1 requests[socks]==2.19.1 diff --git a/searx/__init__.py b/searx/__init__.py index b1010f25f..4d7b2a8d3 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -22,7 +22,7 @@ from os.path import realpath, dirname, join, abspath, isfile from io import open from ssl import OPENSSL_VERSION_INFO, OPENSSL_VERSION try: - from yaml import load + from yaml import safe_load except: from sys import exit, stderr stderr.write('[E] install pyyaml\n') @@ -52,7 +52,7 @@ if not settings_path: # load settings with open(settings_path, 'r', encoding='utf-8') as settings_yaml: - settings = load(settings_yaml) + settings = safe_load(settings_yaml) ''' enable debug if From 30bdc8704c5a90a8911b764d925da9330433391c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Mon, 7 Jan 2019 21:07:32 +0100 Subject: [PATCH 2/3] require jinja to have unique function --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 701e08de9..e8a6c33b6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,7 @@ flask==1.0.2 flask-babel==0.11.2 lxml==4.2.3 idna==2.7 +jinja2==2.10 pygments==2.1.3 pyopenssl==18.0.0 python-dateutil==2.7.3 From 252ba92fddad357c820cdc6219377f0fb633c997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Sat, 23 Feb 2019 18:53:32 +0100 Subject: [PATCH 3/3] add more updates --- requirements.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/requirements.txt b/requirements.txt index e8a6c33b6..b2ae2d453 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ -certifi==2017.11.5 +certifi==2018.11.29 +flask-babel==0.12.2 flask==1.0.2 -flask-babel==0.11.2 -lxml==4.2.3 -idna==2.7 +idna==2.8 jinja2==2.10 +lxml==4.3.0 pygments==2.1.3 -pyopenssl==18.0.0 -python-dateutil==2.7.3 +pyopenssl==19.0.0 +python-dateutil==2.7.5 pyyaml==4.2b1 -requests[socks]==2.19.1 +requests[socks]==2.21.0