From 6a7fd3d172d1e8787b023d90d331bd37aeedc956 Mon Sep 17 00:00:00 2001 From: Tim Hall Date: Fri, 29 Sep 2023 12:04:57 +0100 Subject: Vela: Update from using deprecated pkg_resources - Changed deprecated method of getting package version info - Updated pylint version to be Python 3.11 compatible Change-Id: I68aae2155098c834653d404c78acf8df86eb88f8 Signed-off-by: Tim Hall --- .pre-commit-config.yaml | 4 ++-- ethosu/vela/_version.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 29f96d5..472cdf9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,8 +43,8 @@ repos: - id: flake8 args: [--max-line-length=120, --extend-ignore=E203] -- repo: https://github.com/pre-commit/mirrors-pylint - rev: v2.6.0 +- repo: https://github.com/pylint-dev/pylint + rev: v2.13.9 hooks: - id: pylint args: [--score=no, --max-line-length=120, --disable=all, --enable=W0102] diff --git a/ethosu/vela/_version.py b/ethosu/vela/_version.py index cc13395..c78f8dd 100644 --- a/ethosu/vela/_version.py +++ b/ethosu/vela/_version.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright 2020 Arm Limited and/or its affiliates +# SPDX-FileCopyrightText: Copyright 2020, 2023 Arm Limited and/or its affiliates # # SPDX-License-Identifier: Apache-2.0 # @@ -13,6 +13,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -import pkg_resources +from importlib.metadata import version -__version__ = pkg_resources.get_distribution("ethos-u-vela").version +__version__ = version("ethos-u-vela") -- cgit v1.2.1