Skip to content

Commit deae7a9

Browse files
committed
Packaging update of azure-eventgrid
1 parent ee0293b commit deae7a9

File tree

2 files changed

+29
-16
lines changed

2 files changed

+29
-16
lines changed
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
## Microsoft Azure SDK for Python
1+
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Event Grid Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
46

5-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
67

7-
For a more complete set of Azure libraries, see the
8-
[azure sdk python release](https://aka.ms/azsdk/python/all).
8+
# Usage
99

10-
## Usage
11-
12-
For code examples, see [Event
13-
Grid](https://docs.microsoft.com/python/api/overview/azure/event-grid)
10+
For code examples, see [Event Grid](https://docs.microsoft.com/python/api/overview/azure/event-grid)
1411
on docs.microsoft.com.
1512

16-
## Provide Feedback
1713

18-
If you encounter any bugs or have suggestions, please file an issue in
19-
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
14+
# Provide Feedback
15+
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2018
section of the project.
2119

22-
![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-eventgrid%2FREADME.png)
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-eventgrid%2FREADME.png)

sdk/eventgrid/azure-eventgrid/setup.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,23 @@
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'
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:
2842
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
2943
fd.read(), re.MULTILINE).group(1)
3044

@@ -47,7 +61,7 @@
4761
author_email='[email protected]',
4862
url='https://github.com/Azure/azure-sdk-for-python',
4963
classifiers=[
50-
'Development Status :: 4 - Beta',
64+
'Development Status :: 5 - Production/Stable',
5165
'Programming Language :: Python',
5266
'Programming Language :: Python :: 2',
5367
'Programming Language :: Python :: 2.7',
@@ -62,12 +76,12 @@
6276
packages=find_packages(exclude=[
6377
'tests',
6478
# Exclude packages that will be covered by PEP420 or nspkg
65-
'samples',
6679
'azure',
6780
]),
6881
install_requires=[
6982
'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',
7185
],
7286
extras_require={
7387
":python_version<'3.0'": ['azure-nspkg'],

0 commit comments

Comments
 (0)