-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: replace deprecated pkg_resources API and drop Python 3.8 support #45
Conversation
I was checking the xblock in the sumac release and it's working very well https://studio.sumac.releases.edunext.link/container/block-v1:OpenedX+101+2025+type@vertical+block@46af3d74b8fc42129b21ebdf7a5be318 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- We need to update the compatibility table since we are dropping support for pretty much all versiones < Redwood, we should also mention it in the changelog https://github.com/eduNEXT/xblock-filesmanager?tab=readme-ov-file#compatibility-notes
- Review and remove unnecessary constraints since we are dropping support for python 3.8 and django 3.2 https://github.com/eduNEXT/xblock-filesmanager/blob/main/requirements/constraints.txt. We probably would also need to run
make upgrade
again after removing the constraints
Co-authored-by: Maga Giorgianni <maria.jaimes@edunext.co>
Co-authored-by: Maga Giorgianni <maria.jaimes@edunext.co>
Co-authored-by: Maga Giorgianni <maria.jaimes@edunext.co>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
The pkg_resources library, used to load static assets, is deprecated. Replace pkg_resources lib with importlib.resources.
importlib-resources is included by default in Python 3.11. However, to maintain compatibility with Python 3.8, we need to install the importlib_resources backport explicitly. This ensures that the required functionality remains available across supported Python versions.
Testing instructions
1, Create a Sumac environment using Tutor or TVM.

2. Install xblock-filesmanager using this branch you can follow the official tutor documentation.
3. In a course of study:
Navigate to Settings -> Advanced Settings and go to Advanced Module List settings.
Add:
Other Information
openedx/public-engineering#273