2020# a-b-c => a.b.c
2121namespace_name = PACKAGE_NAME .replace ('-' , '.' )
2222
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-
3823# Version extraction inspired from 'requests'
3924with open (os .path .join (package_folder_path , '_version.py' ), 'r' ) as fd :
4025 version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
6146 classifiers = [
6247 "Development Status :: 4 - Beta" ,
6348 'Programming Language :: Python' ,
64- 'Programming Language :: Python :: 2' ,
65- 'Programming Language :: Python :: 2.7' ,
49+ 'Programming Language :: Python :: 3 :: Only' ,
6650 'Programming Language :: Python :: 3' ,
6751 'Programming Language :: Python :: 3.6' ,
6852 'Programming Language :: Python :: 3.7' ,
6953 'Programming Language :: Python :: 3.8' ,
7054 'Programming Language :: Python :: 3.9' ,
55+ 'Programming Language :: Python :: 3.10' ,
7156 'License :: OSI Approved :: MIT License' ,
7257 ],
7358 zip_safe = False ,
7762 'azure' ,
7863 'azure.agrifood' ,
7964 ]),
65+ python_requires = ">=3.6" ,
8066 install_requires = [
8167 "azure-core<2.0.0,>=1.14.0" ,
8268 "msrest>=0.6.21" ,
8369 'six>=1.11.0' ,
8470 ],
85- extras_require = {
86- ":python_version<'3.0'" : ['azure-agrifood-nspkg' ],
87- ":python_version<'3.5'" : ['typing' ],
88- }
89- )
71+ )
0 commit comments