setup.py 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #!/usr/bin/env python
  2. #-------------------------------------------------------------------------
  3. # Copyright (c) Microsoft. All rights reserved.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #--------------------------------------------------------------------------
  16. from setuptools import find_packages, setup
  17. import sys
  18. # azure v0.x is not compatible with this package
  19. # azure v0.x used to have a __version__ attribute (newer versions don't)
  20. try:
  21. import azure
  22. try:
  23. ver = azure.__version__
  24. raise Exception(
  25. 'This package is incompatible with azure=={}. '.format(ver) +
  26. 'Uninstall it with "pip uninstall azure".'
  27. )
  28. except AttributeError:
  29. pass
  30. except ImportError:
  31. pass
  32. setup(
  33. name='azure-multiapi-storage',
  34. version='0.9.0',
  35. description='Microsoft Azure Storage Client Library for Python with multi API version support.',
  36. long_description=open('README.rst', 'r').read(),
  37. license='MIT',
  38. author='Microsoft Corporation',
  39. author_email='azpycli@microsoft.com',
  40. url='https://github.com/Azure/azure-multiapi-storage-python',
  41. classifiers=[
  42. 'Development Status :: 4 - Beta',
  43. 'Programming Language :: Python',
  44. 'Programming Language :: Python :: 2',
  45. 'Programming Language :: Python :: 2.7',
  46. 'Programming Language :: Python :: 3',
  47. 'Programming Language :: Python :: 3.3',
  48. 'Programming Language :: Python :: 3.4',
  49. 'Programming Language :: Python :: 3.5',
  50. 'Programming Language :: Python :: 3.6',
  51. 'Programming Language :: Python :: 3.7',
  52. 'Programming Language :: Python :: 3.8',
  53. 'License :: OSI Approved :: Apache Software License',
  54. ],
  55. zip_safe=False,
  56. packages=find_packages(exclude=["azure"]),
  57. install_requires=[
  58. 'azure-common',
  59. 'python-dateutil',
  60. 'requests',
  61. "azure-core<2.0.0,>=1.10.0",
  62. "msrest>=0.6.18",
  63. "cryptography>=2.1.4"
  64. ],
  65. extras_require={
  66. ':python_version=="2.7"': ['futures'],
  67. ':python_version<"3.0"': ['azure-nspkg'],
  68. },
  69. )