edx-cookiecutters icon indicating copy to clipboard operation
edx-cookiecutters copied to clipboard

Move on from deprecated pkg_resources api

Open farhan opened this issue 1 year ago • 0 comments

Shift the code from pkg_resources to importlib.resources api

Migration guide: https://importlib-resources.readthedocs.io/en/latest/migration.html Decision making story: https://github.com/openedx/XBlock/issues/676 Reference PR to take learning from: https://github.com/openedx/xblock-sdk/pull/350/files

Prerequisites:

Acceptance Criteria:

  • Make sure the repository is using xblock version 5.0.0 or above. Upgrade the version if required, preferably via the make upgrade command.
  • There should be no usage of pkg_resources in the repository
  • Test cases should be passed
  • XBlock should perform all of its functionality related to change (loading resources)

farhan avatar Aug 26 '24 11:08 farhan