getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.6k stars 448 forks source link

Replace use of pkg_resources with importlib.resources #3743

Closed dvzrv closed 8 months ago

dvzrv commented 8 months ago

Requested Feature: Since this project only officially supports Python >= 3.7, it is now possible to remove the setuptools dependency with the cpython builtin importlib.resources.

Related Area: dependencies

Do you want to contribute this yourself as a pull request? (don’t worry about it if you don’t want to/can’t — someone else can take care of it)

Does this feature affect backwards compatibility? If yes, in what way?

As this was introduced in Python 3.7, it should not have any side-effect!

Rationale and full description: (why should it be added to Nikola?)

The pkg_resources API is deprecated and replacing it with a Python internal library is a good approach :)