setup.py 2.1KB

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