SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[enh][fix] update to latest dependencies ++ fix tests & travis test runner
Adam Tauber257e52954a40
diff --git a/.travis.yml b/.travis.ymlindex 3bef5e5ca..65f8ef235 100644--- a/.travis.yml+++ b/.travis.yml@@ -16,11 +16,10 @@ install:- ./manage.sh update_dev_packages- pip install coverallsscript:- - ./manage.sh pep8_check- ./manage.sh styles- ./manage.sh grunt_build+ - ./manage.sh tests- ./manage.sh py_test_coverage- - ./manage.sh robot_testsafter_success:coverallsnotifications:diff --git a/requirements-dev.txt b/requirements-dev.txtindex 38be888e0..580ef63e5 100644--- a/requirements-dev.txt+++ b/requirements-dev.txt@@ -1,8 +1,8 @@-babel==2.2.0-mock==1.0.1+babel==2.3.4+mock==2.0.0nose2[coverage-plugin]pep8==1.7.0-plone.testing==4.0.15+plone.testing==5.0.0robotframework-selenium2library==1.7.4robotsuite==1.7.0transifex-client==0.11diff --git a/requirements.txt b/requirements.txtindex 80c08a453..0d2f61b00 100644--- a/requirements.txt+++ b/requirements.txt@@ -1,12 +1,12 @@-certifi==2015.11.20.1-flask==0.10.1-flask-babel==0.9-lxml==3.5.0-ndg-httpsclient==0.4.0+certifi==2016.2.28+flask==0.11.1+flask-babel==0.11.1+lxml==3.6.0+ndg-httpsclient==0.4.1pyasn1==0.1.9pyasn1-modules==0.0.8-pygments==2.0.2+pygments==2.1.3pyopenssl==0.15.1-python-dateutil==2.4.2+python-dateutil==2.5.3pyyaml==3.11-requests==2.9.1+requests==2.10.0diff --git a/searx/engines/__init__.py b/searx/engines/__init__.pyindex 6d5066733..099baa587 100644--- a/searx/engines/__init__.py+++ b/searx/engines/__init__.py@@ -19,7 +19,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.from os.path import realpath, dirname, splitext, joinimport sysfrom imp import load_source-from flask.ext.babel import gettext+from flask_babel import gettextfrom operator import itemgetterfrom searx import settingsfrom searx import loggerdiff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.pyindex efb9b0682..b9b9ca0d0 100644--- a/searx/plugins/__init__.py+++ b/searx/plugins/__init__.py@@ -26,8 +26,8 @@ from searx.plugins import (https_rewrite,tracker_url_remover,vim_hotkeys)-required_attrs = (('name', str),- ('description', str),+required_attrs = (('name', (str, unicode)),+ ('description', (str, unicode)),('default_on', bool))optional_attrs = (('js_dependencies', tuple),diff --git a/searx/plugins/https_rewrite.py b/searx/plugins/https_rewrite.pyindex 0a58cc85d..8c29520d2 100644--- a/searx/plugins/https_rewrite.py+++ b/searx/plugins/https_rewrite.py@@ -21,7 +21,7 @@ from lxml import etreefrom os import listdir, environfrom os.path import isfile, isdir, joinfrom searx.plugins import logger-from flask.ext.babel import gettext+from flask_babel import gettextfrom searx import searx_dirdiff --git a/searx/plugins/open_results_on_new_tab.py b/searx/plugins/open_results_on_new_tab.pyindex 5ebece142..ae27ea277 100644--- a/searx/plugins/open_results_on_new_tab.py+++ b/searx/plugins/open_results_on_new_tab.py@@ -14,7 +14,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.(C) 2016 by Adam Tauber, <[email protected]>'''-from flask.ext.babel import gettext+from flask_babel import gettextname = gettext('Open result links on new browser tabs')description = gettext('Results are opened in the same window by default. ''This plugin overwrites the default behaviour to open links on new tabs/windows. 'diff --git a/searx/plugins/search_on_category_select.py b/searx/plugins/search_on_category_select.pyindex 53585faea..f72c63d76 100644--- a/searx/plugins/search_on_category_select.py+++ b/searx/plugins/search_on_category_select.py@@ -14,7 +14,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.(C) 2015 by Adam Tauber, <[email protected]>'''-from flask.ext.babel import gettext+from flask_babel import gettextname = gettext('Search on category select')description = gettext('Perform search immediately if a category selected. ''Disable to select multiple categories. (JavaScript required)')diff --git a/searx/plugins/self_info.py b/searx/plugins/self_info.pyindex dc6b7cd0e..75cbae0de 100644--- a/searx/plugins/self_info.py+++ b/searx/plugins/self_info.py@@ -14,7 +14,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.(C) 2015 by Adam Tauber, <[email protected]>'''-from flask.ext.babel import gettext+from flask_babel import gettextimport rename = "Self Informations"description = gettext('Displays your IP if the query is "ip" and your user agent if the query contains "user agent".')diff --git a/searx/plugins/tracker_url_remover.py b/searx/plugins/tracker_url_remover.pyindex ed71c94d3..b909e3fae 100644--- a/searx/plugins/tracker_url_remover.py+++ b/searx/plugins/tracker_url_remover.py@@ -15,7 +15,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.(C) 2015 by Adam Tauber, <[email protected]>'''-from flask.ext.babel import gettext+from flask_babel import gettextimport refrom urlparse import urlunparsediff --git a/searx/plugins/vim_hotkeys.py b/searx/plugins/vim_hotkeys.pyindex e537a3ac8..8f06f1343 100644--- a/searx/plugins/vim_hotkeys.py+++ b/searx/plugins/vim_hotkeys.py@@ -1,4 +1,4 @@-from flask.ext.babel import gettext+from flask_babel import gettextname = gettext('Vim-like hotkeys')description = gettext('Navigate search results with Vim-like hotkeys 'diff --git a/searx/webapp.py b/searx/webapp.pyindex e60050ea8..0fb2a1dfe 100644--- a/searx/webapp.py+++ b/searx/webapp.py@@ -48,7 +48,7 @@ from flask import (Flask, request, render_template, url_for, Response, make_response,redirect, send_from_directory)-from flask.ext.babel import Babel, gettext, format_date, format_decimal+from flask_babel import Babel, gettext, format_date, format_decimalfrom flask.json import jsonifyfrom searx import settings, searx_dirfrom searx.engines import (diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.pyindex 5697017d9..cbf0da471 100644--- a/tests/unit/test_webapp.py+++ b/tests/unit/test_webapp.py@@ -38,6 +38,7 @@ class ViewsTestCase(SearxTestCase):suggestions=set(),infoboxes=[],results=self.test_results,+ number_of_results=len(self.test_results),results_length=lambda: len(self.test_results))webapp.Search.search = search_mock