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

cannot import name 'packaging' from 'pkg_resources' fix #5942

Closed richtja closed 1 month ago

richtja commented 1 month ago

In the setuptools>=70 the pkg_resources is deprecated and some of its features might cause troubles. These changes have impact on avocado CI with python3.12. This commit uses directly the packaging package instead of pkg_resources which solves the CI issues.

Reference: https://setuptools.pypa.io/en/stable/pkg_resources.html#package-discovery-and-resource-access-using-pkg-resources

The CI failures can be seen here.