diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2024-06-11 14:39:42 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-06-17 15:07:07 +0200 |
commit | accc1c10322d9ee34b4aafe6e7a5dfbc785b5624 (patch) | |
tree | 300e06d095734a691f0fea739422f4a41f42591e /searx/answerers/random | |
parent | efd69c4ca96c90ad2238b89ee807399decff5de2 (diff) | |
download | searxng-accc1c10322d9ee34b4aafe6e7a5dfbc785b5624.tar.gz searxng-accc1c10322d9ee34b4aafe6e7a5dfbc785b5624.zip |
[fix] setup.py - packaging for 'answerers' to build a valid package
Fix installing answerers when installing SearXNG through a wheel [1]. These
files have been missed in commit d72fa99b.
Here is what have been tested:
$ make clean py.build
...
$ python -m venv test123
$ . ./test123/bin/activate
(test123) $ pip install dist/searxng-2024*-py3-none-any.whl
(test123) $ SEARXNG_DEBUG=1 searxng-run
[1] https://github.com/searxng/searxng/pull/3045#issuecomment-1961767861
Diffstat (limited to 'searx/answerers/random')
-rw-r--r-- | searx/answerers/random/__init__.py | 2 | ||||
-rw-r--r-- | searx/answerers/random/answerer.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/searx/answerers/random/__init__.py b/searx/answerers/random/__init__.py new file mode 100644 index 000000000..9ed59c825 --- /dev/null +++ b/searx/answerers/random/__init__.py @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +# pylint: disable=missing-module-docstring diff --git a/searx/answerers/random/answerer.py b/searx/answerers/random/answerer.py index efdce0407..66147fa54 100644 --- a/searx/answerers/random/answerer.py +++ b/searx/answerers/random/answerer.py @@ -1,4 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later +# pylint: disable=missing-module-docstring import hashlib import random |