summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-26Bump pygments from 2.8.0 to 2.8.1dependabot[bot]
Bumps [pygments](https://github.com/pygments/pygments) from 2.8.0 to 2.8.1. - [Release notes](https://github.com/pygments/pygments/releases) - [Changelog](https://github.com/pygments/pygments/blob/2.8.1/CHANGES) - [Commits](https://github.com/pygments/pygments/compare/2.8.0...2.8.1) Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26Bump sphinx from 3.5.3 to 3.5.4dependabot[bot]
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 3.5.3 to 3.5.4. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](https://github.com/sphinx-doc/sphinx/commits/v3.5.4) Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26Merge pull request #30 from return42/brand-readmeAlexandre Flament
[brand] README.rst fix img.shields.io and searxng.github.io URLs
2021-04-26[brand] README.rst fix img.shields.io and searxng.github.io URLsMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-26Merge pull request #27 from return42/fix-debug-logAlexandre Flament
[fix] debug log: UnicodeEncodeError: 'ascii' codec can't encode
2021-04-26[fix] debug log: UnicodeEncodeError: 'ascii' codec can't encodeMarkus Heiser
The issue exists only in the debug log:: --- Logging error --- Traceback (most recent call last): File "/usr/lib/python3.9/logging/__init__.py", line 1086, in emit stream.write(msg + self.terminator) UnicodeEncodeError: 'ascii' codec can't encode characters in position 79-89: ordinal not in range(128) Call stack: File "/usr/local/searx/searx-pyenv/lib/python3.9/site-packages/flask/app.py", line 2464, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/searx/searx-src/searx/webapp.py", line 1316, in __call__ return self.app(environ, start_response) File "/usr/local/searx/searx-pyenv/lib/python3.9/site-packages/werkzeug/middleware/proxy_fix.py", line 169, in __call__ return self.app(environ, start_response) File "/usr/local/searx/searx-pyenv/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/usr/local/searx/searx-pyenv/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/searx/searx-pyenv/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/local/searx/searx-src/searx/webapp.py", line 766, in search number_of_results=format_decimal(number_of_results), File "/usr/local/searx/searx-pyenv/lib/python3.9/site-packages/flask_babel/__init__.py", line 458, in format_decimal locale = get_locale() File "/usr/local/searx/searx-pyenv/lib/python3.9/site-packages/flask_babel/__init__.py", line 226, in get_locale rv = babel.locale_selector_func() File "/usr/local/searx/searx-src/searx/webapp.py", line 249, in get_locale logger.debug("%s uses locale `%s` from %s", request.url, locale, locale_source) Unable to print the message and arguments - possible formatting error. Use the traceback above to help find the error. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-25Merge pull request #23 from searxng/metrics-stats-enginesAlexandre Flament
Metrics stats engines
2021-04-25Merge pull request #25 from return42/brand-001Alexandre Flament
SearxNG brand
2021-04-25[mod] /stats : detail per engineAlexandre Flament
allow to submit a github issue including the technical details (exceptions, errors, warning, checker result)
2021-04-25[brand] searxng -- fix links to issue tracker & WEB-GUIMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-25Merge pull request #26 from return42/brand-002Alexandre Flament
[github] searxng does not use github's discussion
2021-04-25[github] searxng does not use github's discussionMarkus Heiser
Remove gihtub's discussion template and add a issue template used for questions & discussions. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-25[brand] searxng is a fork from searxMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-25Merge pull request #24 from return42/fix-docAlexandre Flament
[fix doc] manage.sh update_packages does not exists anymore
2021-04-24[fix doc] manage.sh update_packages does not exists anymoreMarkus Heiser
Reported-by: https://github.com/searx/searx/issues/2776 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-24Merge pull request #16 from return42/add-core.acAlexandre Flament
Add a search engine for core.ac.uk
2021-04-24[fix] Springer-Nature & core.ac need API key to workMarkus Heiser
It is the whole engine definition that should be comment out : without the api_key nothing works. Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-24[mod] core.ac.uk engineMarkus Heiser
- add to list of pylint scripts - add debug log messages - move API key int `settings.yml` - improved readability - add some metadata to results Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-24add core.ac.uk enginespongebob33
2021-04-24Rerevert c54bf42Alexandre Flament
2021-04-24Fix PEP8Alexandre Flament
2021-04-24Merge pull request #8 from return42/manage-scriptAlexandre Flament
Replace Makefile boilerplate by shell scripts
2021-04-24temporary partial revert of c54bf42cb9699501ccbd54a2df0d7fa73be8dcdbAlexandre Flament
2021-04-24Merge pull request #12 from searxng/metrics-stats-pageAlexandre Flament
[mod] update /stats
2021-04-24[mod] /stats: simple theme implementationAlexandre Flament
2021-04-24[mod] /stats : add reliability column and sort by column linksAlexandre Flament
2021-04-24[mod] metrics: add to pylint and justify indentationsMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-24[mod] update /statsAlexandre Flament
2021-04-23Merge pull request #20 from return42/fix-commit-msgAlexandre Flament
[CI] JamesIves/github-pages-deploy-action COMMIT_MESSAGE
2021-04-23[CI] JamesIves/github-pages-deploy-action COMMIT_MESSAGEMarkus Heiser
remove rocket symbol from the commit message Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> Suggested-by: https://github.com/JamesIves/github-pages-deploy-action/pull/576
2021-04-23Merge pull request #19 from return42/fix-gh-pagesAlexandre Flament
[CI] JamesIves/github-pages-deploy-action SINGLE_COMMIT
2021-04-23[CI] JamesIves/github-pages-deploy-action SINGLE_COMMITMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-23[fix] Makefile fix target 'test' & 'test.sh'Markus Heiser
Renamed 'test.sh' to 'test.shell' seems to solve this issue on my ubu204:: $ make test.sh ... TEST robot ... INSTALL gecko.driver ... Running 7 tests cat test.sh >test cat: test.sh: Datei oder Verzeichnis nicht gefunden make: *** [<eingebaut>: test] Fehler 1 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-23[fix] ./manage pyenv.install - die when pyenv build failsMarkus Heiser
ERROR: When pyenv build fails, the pyenv command runs into a recursion [1]: .... BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV ERROR: Cannot install idna==3.1 and requests[socks]==2.25.1 because these package versions have conflicting dependencies. BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV The conflict is caused by: [1] https://github.com/return42/searx-next/pull/4#issuecomment-821999497 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-23[doc] modify docs to fit to the new build boilerplateMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-23[mod] replace makefile boilerplate by 'manage' scriptMarkus Heiser
Replaces the make targets with the bash scripts Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-23[enh] implement all build task in a bash script (manage)Markus Heiser
note: in further patches script 'manage' will replace 'manage.sh' pyenv.* : assert : build virtualenv if not exists intsall : developer install of searx into virtualenv unintsall : uninstall developer installation cmd ... : run command ... in virtualenv OK : test if virtualenv is OK pypi.upload: Upload python packages to PyPi (to test use pypi.upload.test) pybuild : Build python packages at ./${PYDIST} pyclean : delete virtualenv and intermediate py files test.* : pylint : lint PYLINT_FILES, searx/engines, searx & tests pep8 : pycodestyle (pep8) for all files except PYLINT_FILES unit : run unit tests coverage : run unit tests with coverage robot : run robot test clean : clean intermediate test stuff node.* : env : download & install npm dependencies locally clean : drop npm installations buildenv : rebuild ./utils/brand.env data.* : all : update searx/languages.py and ./data/* languages : update searx/data/engines_languages.json & searx/languages.py useragents: update searx/data/useragents.json with the most recent versions of Firefox. themes.* : all : build all themes oscar : build oscar theme simple : build simple theme bootstrap : less compile bootstrap.min.css CSS babel.compile : pybabel compile ./searx/translations docs.* : html : build HTML documentation gh-pages : deploy on gh-pages branch autobuild : autobuild HTML documentation while editing prebuild : build reST include files (./${DOCS_BUILD}/includes) clean : clean documentation build docker.build [push] : build (and push) docker image gecko.driver : download & install geckodriver if not already installed (required for robot_tests) Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-23[fix] do not spit out error messages for utils/lxc.sh --helpMarkus Heiser
Error:: $ utils/lxc.sh --help ERROR: missing command lxc ... This breaks also docs build:: $ make docs ... WARNING: Unexpected return code 42 from command '../utils/lxc.sh --help' ... Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-23[enh] utils/lib.sh - commands to build Sphinx-doc & deploy gh-pagesMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-23[enh] utils/lib.sh - commands pyenv, pyenv.drop pyenv.(un)installMarkus Heiser
Implement a boilerplate to manage performance optimized virtualenv builds. Shell scripts can use (e.g.) 'pyenv.cmd' to execute command in the virtualenv without having to worry about whether and how the environment is provided. :: pyenv.cmd which python ..../local/py3/bin/python pyenv.cmd which pip ..../local/py3/bin/pip If pyenv.cmd released multiple times the installation will only rebuild if the function 'pyenv.OK' fails. Function 'pyenv.OK' make some test to validate that the virtualenv exists and works as expected. The check also fails if requirements listed requirements-dev.txt and requirements.txt has been edited. Among these tests 'pyenv.OK' calls 'pyenv.check' which implements a python script that validate the python installation. Here is an example how a 'pyenv.check' implementation could look like:: pyenv.check() { cat <<EOF import yaml print('import yaml --> OK') EOF } Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-23[fix] utils/searx.sh - Double quote to prevent globbingMarkus Heiser
Fix issues reported by `make test.sh` Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-22More brandingAlexandre Flament
2021-04-22More brandingAlexandre Flament
2021-04-22Merge pull request #17 from searxng/searxngAlexandre Flament
searxng brand
2021-04-22searxng brandAlexandre Flament
2021-04-22Merge pull request #15 from return42/add-springerAlexandre Flament
Add a search engine for Springer Nature
2021-04-22Merge pull request #14 from return42/add-articAlexandre Flament
[enh] add engine using API from "The Art Institute of Chicago"
2021-04-22[enh] themes - add result.metadata to result sub headerMarkus Heiser
Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-22[enh] Add Springer Nature enginePierre Chevalier
Springer Nature is a global publisher dedicated to providing service to research community [1] with official API [2]. To test this PR, first get your API key following this page: https://dev.springernature.com/signup In searx/engines/springer.py at line 24, add this API key. I left my own key, commented out in the line aboce. Feel free to use it, if needed. [1] https://www.springernature.com/ [2] https://dev.springernature.com/
2021-04-22[enh] add engine using API from "The Art Institute of Chicago"habsinn