setup.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. url=brand.DOCS_URL,
  23. project_urls={
  24. "Code": brand.GIT_URL,
  25. "Issue tracker": brand.ISSUE_URL
  26. },
  27. classifiers=[
  28. "Development Status :: 4 - Beta",
  29. "Programming Language :: Python",
  30. "Topic :: Internet",
  31. "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
  32. "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
  33. 'License :: OSI Approved :: GNU Affero General Public License v3'
  34. ],
  35. keywords='metasearch searchengine search web http',
  36. author='Adam Tauber',
  37. author_email='asciimoo@gmail.com',
  38. license='GNU Affero General Public License',
  39. packages=find_packages(exclude=["tests*"]),
  40. zip_safe=False,
  41. install_requires=requirements,
  42. extras_require={
  43. 'test': dev_requirements
  44. },
  45. entry_points={
  46. 'console_scripts': [
  47. 'searx-run = searx.webapp:run'
  48. ]
  49. },
  50. package_data={
  51. 'searx': [
  52. 'settings.yml',
  53. '../README.rst',
  54. '../requirements.txt',
  55. '../requirements-dev.txt',
  56. 'data/*',
  57. 'plugins/*/*',
  58. 'static/*.*',
  59. 'static/*/*.*',
  60. 'static/*/*/*.*',
  61. 'static/*/*/*/*.*',
  62. 'static/*/*/*/*/*.*',
  63. 'templates/*/*.*',
  64. 'templates/*/*/*.*',
  65. 'tests/*',
  66. 'tests/*/*',
  67. 'tests/*/*/*',
  68. 'translations/*/*/*'
  69. ],
  70. },
  71. )