avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
336 stars 335 forks source link

rfe: pkg_resources module replacement #5952

Closed PaulYuuu closed 2 weeks ago

PaulYuuu commented 3 weeks ago

The use of pkg_resources is deprecated in favor of importlib_metadata, importlib_resources, so remove it from project.

PaulYuuu commented 2 weeks ago

stdlib importlib.metadata/resources are not stable, closing this.

clebergnu commented 2 weeks ago

Hi @PaulYuuu,

A follow up on this is that we already have issue https://github.com/avocado-framework/avocado/issues/5754 that includes the work you talk about here.

I've already did some work here, and the lack of API stability you mention is real. The solution I'm attempting is to introduce a autils.compat.importlib that provides a stable API across Python versons.