Skip to content

Commit c0891a7

Browse files
authored
{ImageGallery} Remove __import__('pkg_resources').declare_namespace(__name__) (#9591)
* ci: fix * test: rerun test case * ci: fix * Revert "ci: fix" This reverts commit a86553d. * Revert "test: rerun test case" This reverts commit 1f267b5. * ci: fix
1 parent 1814561 commit c0891a7

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/image-gallery/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Release History
44
===============
55

6+
1.0.0b2
7+
+++++++++++++++
8+
* Remove `__import__('pkg_resources').declare_namespace(__name__)` to fix the namespace package issue.
9+
610
1.0.0b1
711
+++++++++++++++
812
* Update module documentation.

src/image-gallery/azext_image_gallery/tests/latest/test_image_gallery.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77
import unittest
88

9-
from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer)
9+
from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, live_only)
1010

1111

1212
class CommunityGalleryScenarioTest(ScenarioTest):
@@ -141,6 +141,7 @@ def test_create_vm_with_community_gallery_image(self, resource_group, resource_g
141141
self.check('sharingProfile.permissions', 'Private')
142142
])
143143

144+
@live_only()
144145
@ResourceGroupPreparer(location='eastus')
145146
def test_shared_gallery_community(self, resource_group):
146147
self.kwargs.update({

src/image-gallery/azext_image_gallery/vendored_sdks/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
5-
6-
__import__('pkg_resources').declare_namespace(__name__)

src/image-gallery/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# TODO: Confirm this is the right version number you want and it matches your
1818
# HISTORY.rst entry.
19-
VERSION = '1.0.0b1'
19+
VERSION = '1.0.0b2'
2020

2121
# The full list of classifiers is available at
2222
# https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)