We haven't used this at runtime since we switched to using
importlib.metadata in change Ib10180732042bda254b058b94c9ff41f5c31c3cb,
therefore there's no longer any need to include it in the
'requirements.txt' file. Remove it.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I93152b5826620a867125aeb5edc54b5f5489fbab
debtcollector is one of the few remaining OpenStack libraries still
using six. Like the other libraries that have since removed it,
debtcollector no longer actually needs this since it only supports
Python 3. Remove the library.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ia16572985a46afe39b53a199ebabb695cd05ae2d
Pbr is a very heavy package to depend on. It requires git-core, which is
16 MiB on my Fedora. We only use it to detect the version, which can be
done without pbr using a much lighter importlib_metadata.
Copied from https://review.opendev.org/c/openstack/osprofiler/+/739379
Change-Id: Ib10180732042bda254b058b94c9ff41f5c31c3cb
There are two reasons to remove oslo.utils:
* oslo.utils brings in a number of dependencies that are not required
by any debtcollector code paths. This is a concern for having
debtcollector be adopted by libraries that want to maintain minimal
external requirements.
* oslo.utils now has a dependency on debtcollector. While this doesn't
seem to cause any problems with pip it is a weird circular dependency
that is best to break.
Copy the required reflection methods from oslo.utils to debtcollector
and the associated tests and remove the oslo.utils dependency.
Change-Id: Id4d8f4f7466775d099ab1e82b38605e98e6d840d
This commit adds a new decorator to mark a function/class as
deprecated in preparation for it's removal.
Change-Id: I4c3cf3ff9abdd7faefeae907a8b73608123fb09d
This adds the initial import (and adjustments to requirements
and code) that was initially targeted to land into oslo.utils
but now lands in this project from the following:
https://review.openstack.org/#/c/140119
This forms the basis of the debtcollector functionality (with
more to come as/when needed).
Change-Id: Icd62622a728525fab48ba4de7ee746d0add73b9b