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