|
22 | 22 |
|
23 | 23 | # azure v0.x is not compatible with this package |
24 | 24 | # azure v0.x used to have a __version__ attribute (newer versions don't) |
| 25 | +try: |
| 26 | + import azure |
| 27 | + try: |
| 28 | + ver = azure.__version__ |
| 29 | + raise Exception( |
| 30 | + 'This package is incompatible with azure=={}. '.format(ver) + |
| 31 | + 'Uninstall it with "pip uninstall azure".' |
| 32 | + ) |
| 33 | + except AttributeError: |
| 34 | + pass |
| 35 | +except ImportError: |
| 36 | + pass |
25 | 37 |
|
26 | 38 | # Version extraction inspired from 'requests' |
27 | | -with open(os.path.join(package_folder_path, '_version.py'), 'r') as fd: |
| 39 | +with open(os.path.join(package_folder_path, 'version.py') |
| 40 | + if os.path.exists(os.path.join(package_folder_path, 'version.py')) |
| 41 | + else os.path.join(package_folder_path, '_version.py'), 'r') as fd: |
28 | 42 | version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', |
29 | 43 | fd.read(), re.MULTILINE).group(1) |
30 | 44 |
|
|
47 | 61 | |
48 | 62 | url='https://github.com/Azure/azure-sdk-for-python', |
49 | 63 | classifiers=[ |
50 | | - 'Development Status :: 4 - Beta', |
| 64 | + 'Development Status :: 5 - Production/Stable', |
51 | 65 | 'Programming Language :: Python', |
52 | 66 | 'Programming Language :: Python :: 2', |
53 | 67 | 'Programming Language :: Python :: 2.7', |
|
62 | 76 | packages=find_packages(exclude=[ |
63 | 77 | 'tests', |
64 | 78 | # Exclude packages that will be covered by PEP420 or nspkg |
65 | | - 'samples', |
66 | 79 | 'azure', |
67 | 80 | ]), |
68 | 81 | install_requires=[ |
69 | 82 | 'msrest>=0.5.0', |
70 | | - 'azure-core<2.0.0,>=1.7.0', |
| 83 | + 'msrestazure>=0.4.32,<2.0.0', |
| 84 | + 'azure-common~=1.1', |
71 | 85 | ], |
72 | 86 | extras_require={ |
73 | 87 | ":python_version<'3.0'": ['azure-nspkg'], |
|
0 commit comments