Skip to content

Commit eb481c1

Browse files
authored
We are removing pkg_resources since it is deprecated, and namespace declaration will be managed using modern Python techniques. (#1463)
* Removing pkg_resources as it is deprecated * Removing the references
1 parent 35aeb2f commit eb481c1

File tree

10 files changed

+6
-29
lines changed

10 files changed

+6
-29
lines changed

azure-devops/azext_devops/dev/__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-
import pkg_resources
6-
pkg_resources.declare_namespace(__name__)

azure-devops/azext_devops/dev/admin/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
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-
import pkg_resources
6-
from ._help import load_admin_help
75

8-
pkg_resources.declare_namespace(__name__)
6+
from ._help import load_admin_help
97

108
load_admin_help()

azure-devops/azext_devops/dev/artifacts/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
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-
import pkg_resources
6-
from ._help import load_artifacts_help
7-
85

9-
pkg_resources.declare_namespace(__name__)
6+
from ._help import load_artifacts_help
107

118
load_artifacts_help()

azure-devops/azext_devops/dev/boards/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
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-
import pkg_resources
6-
from ._help import load_boards_help
75

8-
pkg_resources.declare_namespace(__name__)
6+
from ._help import load_boards_help
97

108
load_boards_help()

azure-devops/azext_devops/dev/common/client_tool/__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-
import pkg_resources
6-
pkg_resources.declare_namespace(__name__)

azure-devops/azext_devops/dev/pipelines/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
import pkg_resources
7-
from ._help import load_pipelines_help
86

9-
pkg_resources.declare_namespace(__name__)
7+
from ._help import load_pipelines_help
108

119
load_pipelines_help()

azure-devops/azext_devops/dev/pipelines/pipeline_create_helpers/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +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
7-
8-
pkg_resources.declare_namespace(__name__)

azure-devops/azext_devops/dev/repos/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
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-
import pkg_resources
6-
from ._help import load_repos_help
75

8-
pkg_resources.declare_namespace(__name__)
6+
from ._help import load_repos_help
97

108
load_repos_help()

azure-devops/azext_devops/devops_sdk/__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-
import pkg_resources
6-
pkg_resources.declare_namespace(__name__)
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# --------------------------------------------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
4-
# --------------------------------------------------------------------------------------------
5-
import pkg_resources
6-
pkg_resources.declare_namespace(__name__)
4+
# --------------------------------------------------------------------------------------------s

0 commit comments

Comments
 (0)