|
15 | 15 | package_folder_path = PACKAGE_NAME.replace("-", "/") |
16 | 16 | namespace_name = PACKAGE_NAME.replace("-", ".") |
17 | 17 |
|
| 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 | + |
| 23 | + try: |
| 24 | + ver = azure.__version__ # type: ignore |
| 25 | + raise Exception( |
| 26 | + "This package is incompatible with azure=={}. ".format(ver) + 'Uninstall it with "pip uninstall azure".' |
| 27 | + ) |
| 28 | + except AttributeError: |
| 29 | + pass |
| 30 | +except ImportError: |
| 31 | + pass |
| 32 | + |
18 | 33 | with open(os.path.join(package_folder_path, "_version.py"), "r") as fd: |
19 | 34 | VERSION = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) # type: ignore |
20 | 35 | if not VERSION: |
|
39 | 54 | classifiers=[ |
40 | 55 | "Development Status :: 5 - Production/Stable", |
41 | 56 | "Programming Language :: Python", |
| 57 | + "Programming Language :: Python :: 2", |
| 58 | + "Programming Language :: Python :: 2.7", |
42 | 59 | "Programming Language :: Python :: 3", |
| 60 | + "Programming Language :: Python :: 3.6", |
43 | 61 | "Programming Language :: Python :: 3.7", |
44 | 62 | "Programming Language :: Python :: 3.8", |
45 | 63 | "Programming Language :: Python :: 3.9", |
|
54 | 72 | "azure", |
55 | 73 | ] |
56 | 74 | ), |
57 | | - python_requires=">=3.7", |
58 | 75 | install_requires=[ |
59 | 76 | "azure-core<2.0.0,>=1.11.0", |
60 | 77 | "cryptography>=2.5", |
61 | 78 | "msal<2.0.0,>=1.12.0", |
62 | 79 | "msal-extensions~=0.3.0", |
63 | 80 | "six>=1.12.0", |
64 | 81 | ], |
| 82 | + extras_require={ |
| 83 | + ":python_version<'3.0'": ["azure-nspkg"], |
| 84 | + ":python_version<'3.5'": ["typing"], |
| 85 | + }, |
65 | 86 | ) |
0 commit comments