123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # -*- coding: utf-8 -*-
  2. """Installer for Searx package."""
  3. from setuptools import setup
  4. from setuptools import find_packages
  5. import os
  6. import sys
  7. # required to load VERSION_STRING constant
  8. sys.path.insert(0, './searx')
  9. from version import VERSION_STRING
  10. def read(*rnames):
  11. return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
  12. long_description = read('README.rst')
  13. setup(
  14. name='searx',
  15. version=VERSION_STRING,
  16. description="A privacy-respecting, hackable metasearch engine",
  17. long_description=long_description,
  18. classifiers=[
  19. "Development Status :: 4 - Beta",
  20. "Programming Language :: Python",
  21. "Topic :: Internet",
  22. "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
  23. "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
  24. 'License :: OSI Approved :: GNU Affero General Public License v3'
  25. ],
  26. keywords='metasearch searchengine search web http',
  27. author='Adam Tauber',
  28. author_email='asciimoo@gmail.com',
  29. url='https://github.com/asciimoo/searx',
  30. license='GNU Affero General Public License',
  31. packages=find_packages('.'),
  32. zip_safe=False,
  33. install_requires=[
  34. 'flask',
  35. 'flask-babel',
  36. 'requests',
  37. 'lxml',
  38. 'pyyaml',
  39. 'pygments',
  40. 'setuptools',
  41. 'python-dateutil',
  42. 'pyopenssl',
  43. 'ndg-httpsclient',
  44. 'pyasn1',
  45. 'pyasn1-modules',
  46. 'certifi'
  47. ],
  48. extras_require={
  49. 'test': [
  50. 'coverage',
  51. 'flake8',
  52. 'mock',
  53. 'plone.testing',
  54. 'robotframework',
  55. 'robotframework-debuglibrary',
  56. 'robotframework-httplibrary',
  57. 'robotframework-selenium2library',
  58. 'robotsuite',
  59. 'unittest2',
  60. 'zope.testrunner',
  61. ]
  62. },
  63. entry_points={
  64. 'console_scripts': [
  65. 'searx-run = searx.webapp:run'
  66. ]
  67. },
  68. package_data={
  69. 'searx': [
  70. 'settings.yml',
  71. '../README.rst',
  72. 'data/*',
  73. 'plugins/*/*',
  74. 'static/*.*',
  75. 'static/*/*.*',
  76. 'static/*/*/*.*',
  77. 'static/*/*/*/*.*',
  78. 'static/*/*/*/*/*.*',
  79. 'templates/*/*.*',
  80. 'templates/*/*/*.*',
  81. 'translations/*/*/*'
  82. ],
  83. },
  84. )