Files
searxng/setup.py
Markus Heiser 8c631b92ce [mod] setup.py package_data - use recursive globs for package_data
To test this patch build a python wheel::

    $ make clean py.build

and llok out if you are missing any files in the wheel::

    $ unzip -l dist/searxng-*-py3-none-any.whl

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-12-04 15:04:36 +01:00

71 lines
2.2 KiB
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
"""Installer for SearXNG package."""
from setuptools import setup, find_packages
from searx.version import VERSION_TAG, GIT_URL
from searx import get_setting
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
with open('requirements.txt') as f:
requirements = [l.strip() for l in f.readlines()]
with open('requirements-dev.txt') as f:
dev_requirements = [l.strip() for l in f.readlines()]
setup(
name='searxng',
description="SearXNG is a metasearch engine. Users are neither tracked nor profiled.",
long_description=long_description,
license="AGPL-3.0-or-later",
author='SearXNG',
author_email='contact@searxng.org',
python_requires=">=3.10",
version=VERSION_TAG,
keywords='metasearch searchengine search web http',
url=get_setting('brand.docs_url'),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
project_urls={"Code": GIT_URL, "Issue tracker": get_setting('brand.issue_url')},
entry_points={
'console_scripts': ['searxng-run = searx.webapp:run', 'searxng-checker = searx.search.checker.__main__:main']
},
packages=find_packages(
include=[
'searx',
'searx.*',
'searx.*.*',
'searx.*.*.*',
]
),
package_data={
'searx': [
'settings.yml',
'*.toml',
'*.msg',
'search/checker/scheduler.lua',
'data/*.json',
'data/*.txt',
'data/*.ftz',
'favicons/*.toml',
'infopage/**',
'static/**',
'templates/**',
'translations/**',
],
},
install_requires=requirements,
extras_require={'test': dev_requirements},
)