← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2083620] Re: pkg_resources is deprecated

 

Reviewed:  https://review.opendev.org/c/openstack/nova/+/931312
Committed: https://opendev.org/openstack/nova/commit/14b5232e12e857ff9cb6860ff17fb601b5575a5c
Submitter: "Zuul (22348)"
Branch:    master

commit 14b5232e12e857ff9cb6860ff17fb601b5575a5c
Author: Takashi Kajinami <kajinamit@xxxxxxxxxxxxxxx>
Date:   Wed Oct 9 11:29:31 2024 +0900

    Drop usage of pkg_resources
    
    The pkg_resources module was deprecated. It was removed from the core
    Python and has been moved to setuptools in Python 3.12.
    
    Replace usage of pkg_resources.declare_namespace by implicit namespace
    package[1][2] which has been supported since Python 3.3.
    
    [1] https://peps.python.org/pep-0420/
    [2] https://packaging.python.org/en/latest/guides/packaging-namespace-packages/
    
    Closes-Bug: #2083620
    Change-Id: If1a9d7048412b60bfa997028fb3df5773e66693c


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2083620

Title:
  pkg_resources is deprecated

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  Description
  ===========

  The pkg_resources module was deprecated. It was removed from the core Python and has been moved to setuptools in Python 3.12.
  We should replace the usage to adopt to that change.

  https://github.com/openstack/nova/blob/df5454021543e8aa3c73289224158c9090f0da6a/nova/virt/__init__.py#L18

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2083620/+subscriptions



References