setup.py 2.0 KB

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