From bfc64f440c1e30dd6a1bd5af32d6fe163545666c Mon Sep 17 00:00:00 2001 From: Leonardo Fagundes Luz Serrano Date: Mon, 2 Dec 2024 15:46:32 -0300 Subject: [PATCH] Tox/Zuul: Set pep8 job node to debian bullseye importlib_metadata, a dependency for building python pkgs, received changes where some of its API is deprecated [1], causing the error: AttributeError: 'EntryPoints' object has no attribute 'get' A possible fix is to clip the version to below 5.0, but the debian-bullseye Zuul node already provides a compatible version, with the added advantage of being the base OS used for STX, increasing reliability for the tests. Refs: [1] https://importlib-metadata.readthedocs.io/en/latest/history.html#v5-0-0 Test Plan: pass - In a debian:bullseye container, run: tox -epep8 -c nfv/tox.ini Closes-Bug: 2090865 Change-Id: I7211277f1484e7103b8dc48eb74693e3713f7caa Signed-off-by: Leonardo Fagundes Luz Serrano --- .zuul.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.zuul.yaml b/.zuul.yaml index 70f702a9..57fc3c6c 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -42,6 +42,7 @@ name: nfv-tox-pep8 parent: openstack-tox-pep8 description: Run pep8 for nfv + nodeset: debian-bullseye vars: tox_extra_args: -c nfv/tox.ini