on v0.12.0 help sign in
searx/setup.py
74 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
15def read(*rnames):
16 return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
19long_description = read('README.rst')
20requirements = map(str.strip, open('requirements.txt').readlines())
21dev_requirements = map(str.strip, open('requirements-dev.txt').readlines())
23setup(
24 name='searx',
25 version=VERSION_STRING,
26 description="A privacy-respecting, hackable metasearch engine",
27 long_description=long_description,
28 classifiers=[
29 "Development Status :: 4 - Beta",
30 "Programming Language :: Python",
31 "Topic :: Internet",
32 "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
33 "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
34 'License :: OSI Approved :: GNU Affero General Public License v3'
35 ],
36 keywords='metasearch searchengine search web http',
37 author='Adam Tauber',
38 author_email='asciimoo@gmail.com',
39 url='https://github.com/asciimoo/searx',
40 license='GNU Affero General Public License',
41 packages=find_packages('.'),
42 zip_safe=False,
43 install_requires=requirements,
44 extras_require={
45 'test': dev_requirements
46 },
47 entry_points={
48 'console_scripts': [
49 'searx-run = searx.webapp:run'
50 ]
51 },
52 package_data={
53 'searx': [
54 'settings.yml',
55 '../README.rst',
56 '../requirements.txt',
57 '../requirements-dev.txt',
58 'data/*',
59 'plugins/*/*',
60 'static/*.*',
61 'static/*/*.*',
62 'static/*/*/*.*',
63 'static/*/*/*/*.*',
64 'static/*/*/*/*/*.*',
65 'templates/*/*.*',
66 'templates/*/*/*.*',
67 'tests/*',
68 'tests/*/*',
69 'tests/*/*/*',
70 'translations/*/*/*'
71 ],
72 },