Commit Graph

36 Commits

Author SHA1 Message Date
Alexandre Flament b8cd326464 Add searx_extra package
Split the utils directory into:
* searx_extra contains update scripts, standalone_searx.py
* utils contains the files to build and setup searx.
2021-03-04 11:59:14 +01:00
Alexandre Flament 3a9f513521 [enh] checker: background check
See settings.yml for the options
SIGUSR1 signal starts the checker.
The result is available at /stats/checker
2021-01-12 11:47:17 +01:00
Markus Heiser 9e53470b4c [mod] get rid of searx/brand.py
Removes module searx/brand.py and creates a namespace at searx.brand.

This patch is a first 'proof of concept'.  Later we can decide to remove the
brand namespace entirely or not.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-01-11 22:12:38 +01:00
Markus Heiser 3c45fb7a99
[fix] set encoding of README.rst explicit in setup.py (utf-8) (#2117)
## What does this PR do?

When installing searx on a centos-7 image [1] an encoding exception is raised from setup.py::

    command: /usr/local/searx/searx-pyenv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/usr/local/searx/searx-src/setup.py'"'"'; __file__='"'"'/usr/local/searx/searx-src/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-pidntzkq
         cwd: /usr/local/searx/searx-src/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/local/searx/searx-src/setup.py", line 16, in <module>
        long_description = f.read()
      File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in position 482: ordinal not in range(128)

[1] https://uk.images.linuxcontainers.org/

## Why is this change important?

README.rst uses non ASCII characters _(pronunciation səːks.)_

## How to test this PR locally?

install searx on a centos-7 image from https://uk.images.linuxcontainers.org/
2020-08-08 20:01:04 +02:00
Markus Heiser 3381471933 brands: add ISSUE_URL
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-03-25 17:48:34 +01:00
Markus Heiser f6b29f68a1 [fix] brands: add variables from build env to setup.py
We have some variables in the build environment which are also needed in the
setup.py process.  Theses variables are relavant if one creates a fork with
its own branding.  We treat these variables under the term 'brands'.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-03-25 12:03:11 +01:00
Markus Heiser a56c56ead3 seatup.py: fix [dev_]requirements and open file with context
setup(..) named arguments 'install_requires' and 'extras_require' need lists
arguments, the <map object> is ignored when installing extra environment
'test'::

  pip install -e .\[test\]

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2019-11-28 19:22:03 +01:00
Robin Hallabro 4977ea5405
setup: Skip test files
Signed-off-by: Robin Hallabro <robin@hallabro.nu>
2018-11-03 16:05:12 +01:00
Adam Tauber ca45c24162 [fix] missing requirements files from setup.py - closes #572 2016-05-30 18:00:41 +02:00
Adam Tauber 5c073fdd83 [enh] setup.py requirements ++ new folders 2016-01-10 19:23:10 +01:00
Adam Tauber 37eb0fb130 [fix] data directory added to setup.py package_data 2015-05-24 21:13:29 +02:00
Adam Tauber 333b6759ac [fix] setup.py package data update - fixes #323 2015-05-19 08:37:03 +02:00
Alexandre Flament 201928d2b0 [fix] SSL : SNI support 2015-04-26 12:04:29 +02:00
Cqoicebordel 4ea03de11d Copy all the folders of 'static'
Copy the new generic themes folders, with js, font, and css
2015-01-17 20:16:34 +01:00
Thomas Pointhuber 7adb17452d [enh] add result_templates/code.html 2014-12-20 23:33:03 +01:00
Adam Tauber d959cb1c05 [enh] gevent/grequests changed to the built-in threading lib 2014-12-05 19:24:11 +01:00
Reventl0v 262e12202a Adding `import sys` to fix the installer 2014-11-27 23:05:36 +01:00
Thomas Pointhuber aba65369d2 [enh] make version of searx readable 2014-11-18 11:37:42 +01:00
Matej Cotman c511b6fda8 change package data in setup.py for oscar theme 2014-11-14 10:24:40 +01:00
Adam Tauber 7be9759703 [enh][fix] https rewrite rules added to setup.py 2014-10-19 21:30:56 +02:00
Adam Tauber f72255e342 [enh] setup.py keywords 2014-09-06 13:51:44 +02:00
Adam Tauber ce719ac50c [enh] setup.py classifiers 2014-08-08 21:51:15 +02:00
Adam Tauber 137df2efef [deploy] new pypi package (0.3.1) 2014-07-07 14:38:24 +02:00
Matej Cotman 3ea2b1ee86 change package data paths 2014-06-16 14:02:51 +02:00
Thomas Pointhuber 337bd6d907 simplify datetime extraction 2014-03-18 13:19:50 +01:00
Adam Tauber 62ab6579b3 [enh] 0.3.0 pypi version 2014-03-08 14:24:59 +01:00
Matej Cotman 2f7080383b add xml templates to setup.py 2014-02-21 19:47:55 +01:00
asciimoo 178d671931 [fix] translations path 2014-02-13 17:28:25 +01:00
Matej Cotman 2bcc949abe add view tests 2014-01-31 07:36:58 +01:00
asciimoo 1dfb7b9fe6 [enh] new version - 0.2.0 2014-01-30 17:57:04 +01:00
asciimoo 852dfc77c6 [enh] configurable localization 2014-01-22 00:59:18 +01:00
asciimoo 598535b24a [mod] ui localization init - new dependency: flask-babel 2014-01-22 00:15:23 +01:00
asciimoo 28b72d87e2 [mod] setup.py version, README update 2014-01-21 20:51:07 +01:00
Matej Cotman dd4662978d fix: robot fw, entry points, some flake8, package searx egg 2014-01-20 01:06:29 +01:00
asciimoo 3afdd1d994 [enh] settings unification - new dependency: pyyaml 2014-01-19 00:17:02 +01:00
Matej Cotman e740c8a8ea tests and robot tests framework, build overhaul 2014-01-14 23:31:15 +01:00