Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions manage
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,8 @@ pyenv.install() {

pyenv.uninstall() {
build_msg PYENV "[pyenv.uninstall] uninstall packages: ${PYOBJECTS}"
pyenv.cmd python setup.py develop --uninstall 2>&1 \
pyenv.cmd python -m pip uninstall -y searx 2>&1 \
| prefix_stdout "${_Blue}PYENV ${_creset}[pyenv.uninstall] "

}

pypi.upload() {
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=80", "wheel"]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Brotli~=1.1
babel~=2.15
certifi~=2025.1.31
certifi~=2025.6.15
flask-babel~=4.0
flask~=3.0
jinja2~=3.1
Expand Down
35 changes: 27 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
# -*- coding: utf-8 -*-
"""Installer for Searx package."""

from setuptools import setup
from setuptools import find_packages

import os
import sys

from searx.version import VERSION_STRING
from searx import brand
from setuptools import find_packages, setup


version_ns = {}
with open(os.path.join('searx', 'version.py')) as f:
exec(f.read(), version_ns)
VERSION_STRING = version_ns.get('VERSION_STRING', '')

brand = {}
with open(os.path.join('utils', 'brand.env')) as f:
for line in f:
line = line.strip()

if not line or line.startswith('#'):
continue

if line.startswith('export '):
line = line[len('export '):]

if '=' in line:
key, val = line.split('=', 1)
key = key.strip()
val = val.strip().strip("'").strip('"')
brand[key] = val

with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
Expand All @@ -24,10 +43,10 @@
version=VERSION_STRING,
description="A privacy-respecting, hackable metasearch engine",
long_description=long_description,
url=brand.DOCS_URL,
url=brand.get("DOCS_URL", ""),
project_urls={
"Code": brand.GIT_URL,
"Issue tracker": brand.ISSUE_URL
"Code": brand.get("GIT_URL", ""),
"Issue tracker": brand.get("ISSUE_URL", ""),
},
classifiers=[
"Development Status :: 4 - Beta",
Expand Down
4 changes: 2 additions & 2 deletions utils/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -690,10 +690,10 @@ pyenv.uninstall() {
build_msg PYENV "[uninstall] ${PYOBJECTS}"

if [ "." = "${PYOBJECTS}" ]; then
pyenv.cmd python setup.py develop --uninstall 2>&1 \
pyenv.cmd python -m pip uninstall --yes . 2>&1 \
| prefix_stdout "${_Blue}PYENV ${_creset}[pyenv.uninstall] "
else
pyenv.cmd python -m pip uninstall --yes ${PYOBJECTS} 2>&1 \
pyenv.cmd python -m pip uninstall --yes ${PYOBJECTS} 2>&1 \
| prefix_stdout "${_Blue}PYENV ${_creset}[pyenv.uninstall] "
fi
}
Expand Down