[PATCH v2] binman: migrate from pkg_resources to importlib

Yannic Moog Y.Moog at phytec.de
Mon Jun 30 13:33:34 CEST 2025


Am Freitag, dem 27.06.2025 um 14:00 -0600 schrieb Tom Rini:
> On Fri, Jun 27, 2025 at 09:07:36AM +0200, Yannic Moog wrote:
> 
> > pkg_resources is deprecated, use migration guide in [1] to migrate to
> > importlib.resources.
> > Keep the Python 3.6 backwards compatibility.
> > This also fixes the binman version test which failed for setuptools
> > versions that print the deprecation warning.
> > 
> > [1] https://importlib-resources.readthedocs.io/en/latest/migration.html
> > 
> > Reviewed-by: Bryan Brattlof <bb at ti.com>
> > Signed-off-by: Yannic Moog <y.moog at phytec.de>
> > ---
> > Changes in v2:
> > - rebase on to next
> > - Link to v1:
> > https://lore.kernel.org/r/20250610-pkg_resoures-removal-v1-1-97a269446d35@phytec.de
> > ---
> >  tools/binman/control.py | 12 ++++++------
> >  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> This still fails in CI:
> https://dev.azure.com/u-boot/a1096300-2999-4ec4-a21a-4c22075e3771/_apis/build/builds/11529/logs/83
> and also Gitlab. Please see
> https://docs.u-boot.org/en/latest/develop/ci_testing.html and make sure
> CI passes before posting v3, thanks.

Will do, thanks.


More information about the U-Boot mailing list