setup.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/usr/bin/env python
  2. import os
  3. import re
  4. from setuptools import find_packages, setup
  5. ROOT = os.path.dirname(__file__)
  6. VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.]+)['"]''')
  7. requires = [
  8. 'botocore>=1.12.36,<2.0a.0',
  9. ]
  10. def get_version():
  11. init = open(os.path.join(ROOT, 's3transfer', '__init__.py')).read()
  12. return VERSION_RE.search(init).group(1)
  13. setup(
  14. name='s3transfer',
  15. version=get_version(),
  16. description='An Amazon S3 Transfer Manager',
  17. long_description=open('README.rst').read(),
  18. author='Amazon Web Services',
  19. author_email='kyknapp1@gmail.com',
  20. url='https://github.com/boto/s3transfer',
  21. packages=find_packages(exclude=['tests*']),
  22. include_package_data=True,
  23. install_requires=requires,
  24. extras_require={
  25. 'crt': 'botocore[crt]>=1.20.29,<2.0a.0',
  26. },
  27. license="Apache License 2.0",
  28. python_requires=">= 3.7",
  29. classifiers=[
  30. 'Development Status :: 3 - Alpha',
  31. 'Intended Audience :: Developers',
  32. 'Natural Language :: English',
  33. 'License :: OSI Approved :: Apache Software License',
  34. 'Programming Language :: Python',
  35. 'Programming Language :: Python :: 3',
  36. 'Programming Language :: Python :: 3.7',
  37. 'Programming Language :: Python :: 3.8',
  38. 'Programming Language :: Python :: 3.9',
  39. 'Programming Language :: Python :: 3.10',
  40. 'Programming Language :: Python :: 3.11',
  41. ],
  42. )