mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	This commit replaces `pip` in container builds with `uv` pip compat with a 1:1 parity. The only thing that changes is the installation speed of the wheels, which seems to be considerably faster, although I haven't been able to properly quantify this yet. uv also gives us more tools to manage the cache. We can revert the prior cache changes in `container.yml` as we won't have duplicated wheels anymore.
		
			
				
	
	
		
			77 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			77 lines
		
	
	
		
			2.4 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/themes/simple/css/*',
 | 
						|
            'static/themes/simple/css/*/*',
 | 
						|
            'static/themes/simple/img/*',
 | 
						|
            'static/themes/simple/js/*',
 | 
						|
            'templates/*/*',
 | 
						|
            'templates/*/*/*',
 | 
						|
            'translations/*',
 | 
						|
            'translations/*/*',
 | 
						|
            'translations/*/*/*',
 | 
						|
        ],
 | 
						|
    },
 | 
						|
    install_requires=requirements,
 | 
						|
    extras_require={'test': dev_requirements},
 | 
						|
)
 |