From 66fafc838ec86f840f12304800ee68d377462a94 Mon Sep 17 00:00:00 2001 From: JordiSalaJuarez Date: Wed, 3 May 2023 10:23:06 +0200 Subject: [PATCH] fix: move to implicit namespace package pkg_resources.declare_namespace is deprecated, going for the native/implicit namespaces (PEP 420) is a much better option --- google/logging/__init__.py | 24 ------------------------ google/rpc/__init__.py | 24 ------------------------ 2 files changed, 48 deletions(-) delete mode 100644 google/logging/__init__.py delete mode 100644 google/rpc/__init__.py diff --git a/google/logging/__init__.py b/google/logging/__init__.py deleted file mode 100644 index 9a1b64a..0000000 --- a/google/logging/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -try: - import pkg_resources - - pkg_resources.declare_namespace(__name__) -except ImportError: - import pkgutil - - __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/google/rpc/__init__.py b/google/rpc/__init__.py deleted file mode 100644 index 9a1b64a..0000000 --- a/google/rpc/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -try: - import pkg_resources - - pkg_resources.declare_namespace(__name__) -except ImportError: - import pkgutil - - __path__ = pkgutil.extend_path(__path__, __name__)