|
20 | 20 | # a-b-c => a.b.c
|
21 | 21 | namespace_name = PACKAGE_NAME.replace('-', '.')
|
22 | 22 |
|
23 |
| -# azure v0.x is not compatible with this package |
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 |
37 |
| - |
38 | 23 | # Version extraction inspired from 'requests'
|
39 | 24 | with open(os.path.join(package_folder_path, '_version.py'), 'r') as fd:
|
40 | 25 | version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
|
|
62 | 47 | classifiers=[
|
63 | 48 | "Development Status :: 5 - Production/Stable",
|
64 | 49 | 'Programming Language :: Python',
|
65 |
| - 'Programming Language :: Python :: 2', |
66 |
| - 'Programming Language :: Python :: 2.7', |
67 |
| - 'Programming Language :: Python :: 3', |
68 |
| - 'Programming Language :: Python :: 3.6', |
| 50 | + 'Programming Language :: Python :: 3 :: Only', |
69 | 51 | 'Programming Language :: Python :: 3.7',
|
70 | 52 | 'Programming Language :: Python :: 3.8',
|
71 | 53 | 'Programming Language :: Python :: 3.9',
|
72 | 54 | 'Programming Language :: Python :: 3.10',
|
73 | 55 | 'License :: OSI Approved :: MIT License',
|
74 | 56 | ],
|
| 57 | + python_requires=">=3.7", |
75 | 58 | zip_safe=False,
|
76 | 59 | packages=find_packages(exclude=[
|
77 | 60 | 'tests',
|
|
86 | 69 | 'azure-core<2.0.0,>=1.14.0',
|
87 | 70 | "isodate>=0.6.0",
|
88 | 71 | "six>=1.11.0",
|
89 |
| - ], |
90 |
| - extras_require={ |
91 |
| - ":python_version<'3.0'": ['azure-nspkg', 'futures'], |
92 |
| - } |
| 72 | + ] |
93 | 73 | )
|
0 commit comments