Since Python 3.12, setuptools aren't installed by default. It also means that pkg_resources is not available. Eventually, we need to migrate to importlib.resources.
importlib.resources
Another place where we use pkg_resources is parse_version. This has no direct replacement in standard Python library but can be found in packaging.
parse_version
packaging
Metadata Update from @ftrivino: - Issue assigned to ftrivino
I am interested in this because it seems ipa is the last package in Fedora ELN pulling setuptools to AppStream (other packages doing so have open pull requests upstream for dropping the dependency).
Let me know if you would like a pull request for this.
Switching to packaging and importlib.resources? Sure.
My change is in https://pagure.io/fork/churchyard/freeipa/commits/nosetuptools but Pull Requests are disabled here :/
Yes, we are using github for pull requests due to better integration with CI systems (we run very complex CI).
Please see https://www.freeipa.org/page/Contribute/Code#create-pull-request-on-github for contribution guidelines.
Thanks. https://github.com/freeipa/freeipa/pull/7765
master:
ipa-4-12:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)