setup.py 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.md'), encoding='utf-8') as f:
  7. long_description = f.read()
  8. setup(
  9. name='''ckanext-s3multipart''',
  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='0.0.1',
  14. description='''An extension to allow client-side multipart uploads of files to Amazon S3''',
  15. long_description=long_description,
  16. # The project's main homepage.
  17. url='https://github.com/maxious/ckanext-s3multipart',
  18. # Author details
  19. author='''Alex Sadleir''',
  20. author_email='''maxious@lambdacomplex.org''',
  21. # Choose your license
  22. license='AGPL',
  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 :: GNU Affero General Public License v3 or later (AGPLv3+)',
  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. ],
  37. # What does your project relate to?
  38. keywords='''CKAN Amazon s3 file upload''',
  39. # You can just specify the packages manually here if your project is
  40. # simple. Or you can use find_packages().
  41. packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
  42. # List run-time dependencies here. These will be installed by pip when your
  43. # project is installed. For an analysis of "install_requires" vs pip's
  44. # requirements files see:
  45. # https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
  46. install_requires=['botocore', 'boto3'],
  47. # If there are data files included in your packages that need to be
  48. # installed, specify them here. If using Python 2.6 or less, then these
  49. # have to be included in MANIFEST.in as well.
  50. include_package_data=True,
  51. package_data={
  52. },
  53. # Although 'package_data' is the preferred approach, in some case you may
  54. # need to place data files outside of your packages.
  55. # see http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
  56. # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
  57. data_files=[],
  58. # To provide executable scripts, use entry points in preference to the
  59. # "scripts" keyword. Entry points provide cross-platform support and allow
  60. # pip to create the appropriate form of executable for the target platform.
  61. entry_points='''
  62. [ckan.plugins]
  63. s3multipart=ckanext.s3multipart.plugin:S3MultipartPlugin
  64. ''',
  65. )