setup.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import os
  2. import setuptools
  3. module_path = os.path.join(os.path.dirname(__file__), 'flask_admin_s3_upload.py')
  4. version_line = [line for line in open(module_path)
  5. if line.startswith('__version__')][0]
  6. __version__ = version_line.split('__version__ = ')[-1][1:][:-2]
  7. setuptools.setup(
  8. name="flask-admin-s3-upload",
  9. version=__version__,
  10. url="https://github.com/Jaza/flask-admin-s3-upload",
  11. author="Jeremy Epstein",
  12. author_email="jazepstein@gmail.com",
  13. description="Field types for allowing file and image uploads to Amazon S3 (as well as default local storage) in Flask-Admin.",
  14. long_description=open('README.rst').read(),
  15. py_modules=['flask_admin_s3_upload'],
  16. zip_safe=False,
  17. platforms='any',
  18. install_requires=['Flask-Admin', 'url-for-s3', 'boto'],
  19. classifiers=[
  20. 'Development Status :: 2 - Pre-Alpha',
  21. 'Environment :: Web Environment',
  22. 'Intended Audience :: Developers',
  23. 'Operating System :: OS Independent',
  24. 'Programming Language :: Python',
  25. 'Programming Language :: Python :: 2',
  26. 'Programming Language :: Python :: 2.7',
  27. 'Programming Language :: Python :: 3',
  28. 'Programming Language :: Python :: 3.3',
  29. ],
  30. )