setup.py 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. from setuptools import setup, find_packages # Always prefer setuptools over distutils
  2. from codecs import open # To use a consistent encoding
  3. from os import path
  4. here = path.abspath(path.dirname(__file__))
  5. # Get the long description from the relevant file
  6. with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
  7. long_description = f.read()
  8. setup(
  9. name='''ckanext-archiver''',
  10. # Versions should comply with PEP440. For a discussion on single-sourcing
  11. # the version across setup.py and the project code, see
  12. # http://packaging.python.org/en/latest/tutorial.html#version
  13. version='2.0.0',
  14. description='''Archives resources in CKAN (CKAN Extension)''',
  15. long_description=long_description,
  16. # The project's main homepage.
  17. url='https://github.com/datagovuk/ckanext-archiver',
  18. # Author details
  19. author='''Open Knowledge / Cabinet Office''',
  20. author_email='info@okfn.org',
  21. # Choose your license
  22. license='MIT',
  23. # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
  24. classifiers=[
  25. # How mature is this project? Common values are
  26. # 3 - Alpha
  27. # 4 - Beta
  28. # 5 - Production/Stable
  29. 'Development Status :: 4 - Beta',
  30. # Pick your license as you wish (should match "license" above)
  31. 'License :: OSI Approved :: MIT License',
  32. # Specify the Python versions you support here. In particular, ensure
  33. # that you indicate whether you support Python 2, Python 3 or both.
  34. 'Programming Language :: Python :: 2.6',
  35. 'Programming Language :: Python :: 2.7',
  36. 'Environment :: Console',
  37. 'Intended Audience :: Developers',
  38. 'Operating System :: OS Independent',
  39. 'Programming Language :: Python',
  40. 'Topic :: Software Development :: Libraries :: Python Modules'
  41. ],
  42. # What does your project relate to?
  43. keywords='''CKAN''',
  44. # You can just specify the packages manually here if your project is
  45. # simple. Or you can use find_packages().
  46. packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
  47. install_requires=[
  48. # CKAN extensions should not list dependencies here, but in a separate
  49. # ``requirements.txt`` file.
  50. #
  51. # http://docs.ckan.org/en/latest/extensions/best-practices.html#add-third-party-libraries-to-requirements-txt
  52. ],
  53. # If there are data files included in your packages that need to be
  54. # installed, specify them here. If using Python 2.6 or less, then these
  55. # have to be included in MANIFEST.in as well.
  56. include_package_data=True,
  57. package_data={
  58. },
  59. # Although 'package_data' is the preferred approach, in some case you may
  60. # need to place data files outside of your packages.
  61. # see http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
  62. # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
  63. data_files=[],
  64. # To provide executable scripts, use entry points in preference to the
  65. # "scripts" keyword. Entry points provide cross-platform support and allow
  66. # pip to create the appropriate form of executable for the target platform.
  67. entry_points='''
  68. [paste.paster_command]
  69. archiver = ckanext.archiver.commands:Archiver
  70. celeryd2 = ckanext.archiver.command_celery:CeleryCmd
  71. [ckan.plugins]
  72. archiver = ckanext.archiver.plugin:ArchiverPlugin
  73. testipipe = ckanext.archiver.plugin:TestIPipePlugin
  74. [ckan.celery_task]
  75. tasks = ckanext.archiver.celery_import:task_imports
  76. [babel.extractors]
  77. ckan = ckan.lib.extract:extract_ckan
  78. ''',
  79. # If you are changing from the default layout of your extension, you may
  80. # have to change the message extractors, you can read more about babel
  81. # message extraction at
  82. # http://babel.pocoo.org/docs/messages/#extraction-method-mapping-and-configuration
  83. message_extractors={
  84. 'ckanext': [
  85. ('**.py', 'python', None),
  86. ('**.js', 'javascript', None),
  87. ('**/templates/**.html', 'ckan', None),
  88. ],
  89. },
  90. namespace_packages=['ckanext'],
  91. )