setup.py 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. ],
  43. extras_require={
  44. 'test': [
  45. 'coverage',
  46. 'flake8',
  47. 'mock',
  48. 'plone.testing',
  49. 'robotframework',
  50. 'robotframework-debuglibrary',
  51. 'robotframework-httplibrary',
  52. 'robotframework-selenium2library',
  53. 'robotsuite',
  54. 'unittest2',
  55. 'zope.testrunner',
  56. ]
  57. },
  58. entry_points={
  59. 'console_scripts': [
  60. 'searx-run = searx.webapp:run'
  61. ]
  62. },
  63. package_data={
  64. 'searx': [
  65. 'settings.yml',
  66. '../README.rst',
  67. 'static/*.*',
  68. 'static/*/*.*',
  69. 'static/*/*/*.*',
  70. 'static/*/*/*/*.*',
  71. 'static/*/*/*/*/*.*',
  72. 'translations/*/*/*',
  73. 'templates/*/*.*',
  74. 'templates/*/*/*.*',
  75. 'https_rules/*.xml'
  76. ],
  77. },
  78. )