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
[fix] clean up and update python requirements (#5899)
Markus Heiserc52d23f26213
diff --git a/requirements-dev.txt b/requirements-dev.txtindex 326c5fdb5..348b55b3a 100644--- a/requirements-dev.txt+++ b/requirements-dev.txt@@ -6,16 +6,14 @@ pylint==4.0.5splinter==0.21.0selenium==4.41.0Pallets-Sphinx-Themes==2.5.0-Sphinx==8.2.3 ; python_version >= '3.11'-Sphinx==8.1.3 ; python_version < '3.11'+Sphinx==8.2.3sphinx-issues==6.0.0sphinx-jinja==2.0.2sphinx-tabs==3.5.0sphinxcontrib-programoutput==0.19-sphinx-autobuild==2025.8.25 ; python_version >= '3.11'-sphinx-autobuild==2024.10.3 ; python_version < '3.11'+sphinx-autobuild==2025.8.25sphinx-notfound-page==1.1.0-myst-parser==4.0.1+myst-parser==5.0.0linuxdoc==20240924aiounittest==1.5.0yamllint==1.38.0diff --git a/requirements.txt b/requirements.txtindex 8e841f941..a786aa2a1 100644--- a/requirements.txt+++ b/requirements.txt@@ -11,8 +11,7 @@ httpx[http2]==0.28.1httpx-socks[asyncio]==0.10.0sniffio==1.3.1valkey==6.1.1-markdown-it-py==3.0.0-tomli==2.4.0; python_version < '3.11'+markdown-it-py==4.0.0msgspec==0.20.0typer==0.24.1isodate==0.7.2diff --git a/searx/botdetection/config.py b/searx/botdetection/config.pyindex d3ecc39eb..418d76a46 100644--- a/searx/botdetection/config.py+++ b/searx/botdetection/config.py@@ -13,7 +13,7 @@ import copyimport loggingimport pathlib-from ..compat import tomllib+import tomllib__all__ = ['Config', 'UNSET', 'SchemaIssue', 'set_global_cfg', 'get_global_cfg']diff --git a/searx/compat.py b/searx/compat.pyindex 2f45eb0e4..418d537ca 100644--- a/searx/compat.py+++ b/searx/compat.py@@ -1,25 +1,9 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""Compatibility with older versions"""-# pylint: disable=unused-import--__all__ = [- "tomllib",-]--import sysimport warnings-# TOML (lib) compatibility-# --------------------------if sys.version_info >= (3, 11):- import tomllib-else:- import tomli as tomllib--# limiter backward compatibility# ------------------------------diff --git a/tests/unit/test_toml.py b/tests/unit/test_toml.pydeleted file mode 100644index 7a298502b..000000000--- a/tests/unit/test_toml.py+++ /dev/null@@ -1,13 +0,0 @@-# SPDX-License-Identifier: AGPL-3.0-or-later-# pylint: disable=missing-module-docstring,disable=missing-class-docstring,invalid-name--from tests import SearxTestCase-from searx import compat-from searx.favicons.config import DEFAULT_CFG_TOML_PATH---class CompatTest(SearxTestCase):-- def test_toml(self):- with DEFAULT_CFG_TOML_PATH.open("rb") as f:- _ = compat.tomllib.load(f)