Skip to content
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

Drop py3.8 support | Replace pkg_resources lib with importlib.resources #350

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

farhan
Copy link
Contributor

@farhan farhan commented Feb 12, 2024

  • Drop Py3.8 support
  • Replace pkg_resources lib with importlib.resources

Ticket: openedx/XBlock#676

PR is expected to merge after Open edX redwood release

Followed migration guide: https://importlib-resources.readthedocs.io/en/latest/migration.html

Testing:
I have tested the changes with following steps:

  1. Use PR of xblock-sdk
  2. Install xblock into xblock-sdk
  3. Install feedback-xblock from PR into xblock-sdk
  4. Test feedback xblock functionality

@farhan farhan linked an issue Feb 16, 2024 that may be closed by this pull request
@farhan farhan marked this pull request as ready for review February 16, 2024 09:50
@farhan farhan marked this pull request as draft February 16, 2024 09:58
@farhan farhan added the blocked by other work PR cannot be finished until other work is complete label May 7, 2024
@farhan farhan force-pushed the farhan/replace_pkg_resources branch 4 times, most recently from 161b260 to 745e14c Compare May 20, 2024 12:02
@farhan farhan closed this May 20, 2024
@farhan farhan reopened this May 20, 2024
@farhan farhan marked this pull request as ready for review May 22, 2024 06:01
@feanil
Copy link
Contributor

feanil commented May 28, 2024

@farhan I think as a part of this PR, we should remove testing for Python 3.8 right? since that will fail to have the importlib module that you're using? As a part of that we should also update the classifiers and do a major version bump.

@farhan farhan force-pushed the farhan/replace_pkg_resources branch 2 times, most recently from 0dd0900 to 061ffc3 Compare May 30, 2024 07:22
@farhan farhan changed the title Replace pkg resources Drop Py3.8 support | Replace pkg_resources lib with importlib.resources May 30, 2024
@farhan farhan force-pushed the farhan/replace_pkg_resources branch from 061ffc3 to 2bc4b42 Compare May 30, 2024 07:29
@farhan farhan changed the title Drop Py3.8 support | Replace pkg_resources lib with importlib.resources Drop py3.8 support | Replace pkg_resources lib with importlib.resources May 30, 2024
Copy link
Member

@kdmccormick kdmccormick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I'm glad to hear that the xblock-sdk is still useful for testing.

Just one change request, looks good otherwise. I have not manually tested but I trust that you have.

workbench/__init__.py Outdated Show resolved Hide resolved
@farhan farhan force-pushed the farhan/replace_pkg_resources branch from cdd51da to bbbffde Compare June 24, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked by other work PR cannot be finished until other work is complete
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Switch off of deprecated pkg_resources library
3 participants