on f9faafa help sign in
searx/setup.py
79 lines 2.1 kB history raw
1# -*- coding: utf-8 -*-
2"""Installer for Searx package."""
4from setuptools import setup
5from setuptools import find_packages
7import os
8import sys
10# required to load VERSION_STRING constant
11sys.path.insert(0, './searx')
12from version import VERSION_STRING
13import brand
15with open('README.rst') as f:
16 long_description = f.read()
18with open('requirements.txt') as f:
19 requirements = [ l.strip() for l in f.readlines()]
21with open('requirements-dev.txt') as f:
22 dev_requirements = [ l.strip() for l in f.readlines()]
24setup(
25 name='searx',
26 version=VERSION_STRING,
27 description="A privacy-respecting, hackable metasearch engine",
28 long_description=long_description,
29 url=brand.DOCS_URL,
30 project_urls={
31 "Code": brand.GIT_URL,
32 "Issue tracker": brand.ISSUE_URL
33 },
34 classifiers=[
35 "Development Status :: 4 - Beta",
36 "Programming Language :: Python",
37 "Topic :: Internet",
38 "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
39 "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
40 'License :: OSI Approved :: GNU Affero General Public License v3'
41 ],
42 keywords='metasearch searchengine search web http',
43 author='Adam Tauber',
44 author_email='asciimoo@gmail.com',
45 license='GNU Affero General Public License',
46 packages=find_packages(exclude=["tests*"]),
47 zip_safe=False,
48 install_requires=requirements,
49 extras_require={
50 'test': dev_requirements
51 },
52 entry_points={
53 'console_scripts': [
54 'searx-run = searx.webapp:run'
55 ]
56 },
57 package_data={
58 'searx': [
59 'settings.yml',
60 '../README.rst',
61 '../requirements.txt',
62 '../requirements-dev.txt',
63 'data/*',
64 'plugins/*/*',
65 'static/*.*',
66 'static/*/*.*',
67 'static/*/*/*.*',
68 'static/*/*/*/*.*',
69 'static/*/*/*/*/*.*',
70 'templates/*/*.*',
71 'templates/*/*/*.*',
72 'tests/*',
73 'tests/*/*',
74 'tests/*/*/*',
75 'translations/*/*/*'
76 ],
77 },