You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
While launching our application, we've begun to see the following message in the terminal at start-up:
venv/lib/python3.13/site-packages/sassutils/wsgi.py:9: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import resource_filename
For context, the lines 107-111 from libsass-python/sassutils/wsgi.py look like:
for package_name in self.manifests:
if package_name in self.package_dir:
continue
path = resource_filename(package_name, '')
self.package_dir[package_name] = path
While launching our application, we've begun to see the following message in the terminal at start-up:
For context, the lines 107-111 from
libsass-python/sassutils/wsgi.pylook like:An approach
The recommended migration path is to move from
pkg_resourcestoimportlib.resources: https://importlib-resources.readthedocs.io/en/latest/migration.html#pkg-resources-resource-filenameReferring to the compatibility chart on https://pypi.org/project/importlib-resources/ for a sense of whether use of the backports library is necessary.