Skip to content

Commit 69ce1f1

Browse files
AutorestCIrakshith91
authored andcommitted
Packaging update of azure-eventgrid
1 parent 3cd4cbe commit 69ce1f1

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

sdk/eventgrid/azure-eventgrid/setup.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222

2323
# azure v0.x is not compatible with this package
2424
# 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
2537

2638
# Version extraction inspired from 'requests'
2739
with open(os.path.join(package_folder_path, 'version.py')
@@ -49,7 +61,7 @@
4961
author_email='[email protected]',
5062
url='https://github.com/Azure/azure-sdk-for-python',
5163
classifiers=[
52-
'Development Status :: 4 - Beta',
64+
'Development Status :: 5 - Production/Stable',
5365
'Programming Language :: Python',
5466
'Programming Language :: Python :: 2',
5567
'Programming Language :: Python :: 2.7',
@@ -65,12 +77,12 @@
6577
'tests',
6678
'samples',
6779
# Exclude packages that will be covered by PEP420 or nspkg
68-
'samples',
6980
'azure',
7081
]),
7182
install_requires=[
7283
'msrest>=0.5.0',
73-
'azure-core<2.0.0,>=1.7.0',
84+
'msrestazure>=0.4.32,<2.0.0',
85+
'azure-common~=1.1',
7486
],
7587
extras_require={
7688
":python_version<'3.0'": ['azure-nspkg'],

0 commit comments

Comments
 (0)