beaker icon indicating copy to clipboard operation
beaker copied to clipboard

[BUG] Usage of deprecated api

Open mdujava opened this issue 6 months ago • 1 comments

Describe the bug
When using beaker cli 29.2 (I am trying to update package in AUR), warning about The pkg_resources package is slated for removal as early as 2025-11-30.

Version-Release number
29.2 (using python3.13)

To Reproduce
Steps to reproduce the behavior: Install package from AUR (which is using https://github.com/beaker-project/beaker/archive/refs/tags/beaker-29.2.tar.gz)

Actual behavior

bkr whoami
/usr/lib/python3.13/site-packages/bkr/client/__init__.py:17: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
{"username": "username", "email_address": "[email protected]"}

Expected behavior
no warning message

Additional context
This was discovered when I wanted to update AUR from 28.3 to 29.2 when using python3.13

mdujava avatar Jul 22 '25 13:07 mdujava

https://peak.telecommunity.com/DevCenter/setuptools#namespace-packages

mdujava avatar Jul 23 '25 08:07 mdujava