Hello, using pkg_resources in gunicorn.util causes a deprecation warning to be issued down the stack (it's coming from sre_constants imported py the vendored pyparsing).
The use of pkg_resources has been heavily discouraged over the past years and nowadays the recommended alternative exists. It's called importlib.metadata and it's present in the modern CPython stdlib. For older interpreter versions, there's also an importlib_metadata backport packaged and published separately to PyPI. It can be used as a fallback.
https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points
Hello, using
pkg_resourcesingunicorn.utilcauses a deprecation warning to be issued down the stack (it's coming fromsre_constantsimported py the vendoredpyparsing).The use of
pkg_resourceshas been heavily discouraged over the past years and nowadays the recommended alternative exists. It's calledimportlib.metadataand it's present in the modern CPython stdlib. For older interpreter versions, there's also animportlib_metadatabackport packaged and published separately to PyPI. It can be used as a fallback.https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points