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

Merged
merged 1 commit into from
Aug 7, 2024

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
@farhan farhan requested review from kdmccormick, feanil, salman2013, irtazaakram and a team May 23, 2024 07:36
@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
@feanil
Copy link
Contributor

feanil commented Aug 6, 2024

@farhan can you update the commit messages and squash anything that needs to be squashed and then I think we could land this.

…resources

* chore: transitioned from pkg_resources api to importlib-resources api
* feat!: drop support for python 3.8
@farhan farhan force-pushed the farhan/replace_pkg_resources branch from 0fc1e44 to 805ea25 Compare August 7, 2024 09:48
@farhan farhan merged commit 088065b into master Aug 7, 2024
6 checks passed
@farhan farhan deleted the farhan/replace_pkg_resources branch August 7, 2024 09:51
@farhan farhan removed the blocked by other work PR cannot be finished until other work is complete label Aug 7, 2024
@farhan
Copy link
Contributor Author

farhan commented Aug 7, 2024

@feanil merged.
Should I publish xblock-sdk with 0.12.0 or 1.0.0 ?

@@ -4,6 +4,11 @@ Change history for XBlock SDK

These are notable changes in XBlock.

1.0.0 - 2024-05-30
Copy link
Member

Choose a reason for hiding this comment

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

@farhan The version in workbench/__init__.py is 0.12.0, and that is what matters to PyPI, so everything else should match that. Please fix the changelog to say 0.12.0, and then publish a 0.12.0 release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kdmccormick I have created the PR
My point was we had dropped support of Python 3.8 now which means we should upgrade the major version.
So should we update version to 1.0.0 now or should keep it below 1 yet?

@farhan farhan mentioned this pull request Aug 8, 2024
@farhan farhan mentioned this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Switch off of deprecated pkg_resources library
3 participants