Switch off of deprecated pkg_resources
library
#641
Labels
maintenance
Routine upkeep necessary for the health of the platform
pkg_resources
library
#641
Background
The
pkg_resources
library, used by XBlock to load static assets, is deprecated. The removal timeline is unknown.XBlock uses
pkg_resources
in a couple places.XBlock also recommend
pkg_resources
in its docs: https://edx.readthedocs.io/projects/xblock-tutorial/en/latest/anatomy/python.htmlTo do
First, choose a new resource loading interface. Options:
importlib.resources
. Unfortunately, this will become deprecated in Python 3.11 and replaced with a yet-to-be-determined interface.ResourceLoader
abstraction; adopt that.Then:
pkg_resources
in this repo.Related
openedx/xblock-utils
library intoopenedx/XBlock
#675pkg_resources
library #676The text was updated successfully, but these errors were encountered: