From 49049f295de0d30a3fed6c0fbaaadcde55593350 Mon Sep 17 00:00:00 2001 From: annatisch Date: Wed, 3 Oct 2018 12:38:30 -0700 Subject: [PATCH 1/2] Fixed bug in Azure namespace package --- HISTORY.rst | 6 ++++++ azure/__init__.py | 2 +- azure/eventhub/__init__.py | 2 +- setup.py | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index c77b3c7..67a7e8e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,12 @@ Release History =============== +1.1.1 (2019-10-03) +++++++++++++++++++ + +- Fixed bug in Azure namespace package. + + 1.1.0 (2018-09-21) ++++++++++++++++++ diff --git a/azure/__init__.py b/azure/__init__.py index ef7c7c3..ef12b30 100644 --- a/azure/__init__.py +++ b/azure/__init__.py @@ -1,2 +1,2 @@ -__import__('pkg_resources').declare_namespace(__name__) \ No newline at end of file +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure/eventhub/__init__.py b/azure/eventhub/__init__.py index e07a603..102ebde 100644 --- a/azure/eventhub/__init__.py +++ b/azure/eventhub/__init__.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -__version__ = "1.1.0" +__version__ = "1.1.1" from azure.eventhub.common import EventData, EventHubError, Offset from azure.eventhub.client import EventHubClient diff --git a/setup.py b/setup.py index d95ac21..3b7c62b 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ 'License :: OSI Approved :: MIT License', ], zip_safe=False, - packages=find_packages(exclude=["examples", "tests"]), + packages=find_packages(exclude=["azure", "examples", "tests"]), install_requires=[ 'uamqp>=1.0.0,<2.0.0', 'msrestazure~=0.4.11', From 0480dd1baa3da8d429dc24c2d8cf96834ad3acba Mon Sep 17 00:00:00 2001 From: annatisch Date: Wed, 3 Oct 2018 12:52:04 -0700 Subject: [PATCH 2/2] Updated manifest --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index bb37a27..c9c2d50 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,2 @@ include *.rst +include azure/__init__.py \ No newline at end of file