setup.py 2.1KB

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