cherrypy / cherrypy

CherryPy is a pythonic, object-oriented HTTP framework. https://cherrypy.dev
https://docs.cherrypy.dev
BSD 3-Clause "New" or "Revised" License
1.8k stars 357 forks source link

Replace the use of `pkg_resources` with `importlib.metadata` #1993

Closed radez closed 5 months ago

radez commented 1 year ago

This patch replaces references to pkg_resources with importlib.metadata The latest setuptools emits the following warning: DeprecationWarning: pkg_resources is deprecated as an API.

What kind of change does this PR introduce?

What is the related issue number (starting with #) Fixes #1973

Checklist:

webknjaz commented 6 months ago

@radez together with this, please drop setuptools as a testing dep: https://github.com/cherrypy/cherrypy/blob/8946187/setup.py#L101C14-L101C24

radez commented 5 months ago

@radez together with this, please drop setuptools as a testing dep: https://github.com/cherrypy/cherrypy/blob/8946187/setup.py#L101C14-L101C24

Done