setup.py 2.0 KB

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