-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix: Python 3.8 dropped and support for 3.12 added #471
Conversation
Thanks for the pull request, @CodeWithEmad! What's next?Please work through the following steps to get your changes ready for engineering review: 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently unmaintained. To get help with finding a technical reviewer, tag the community contributions project manager for this PR in a comment and let them know that your changes are ready for review:
Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:
When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
cc456ba
to
668888e
Compare
Hey @CodeWithEmad, thank you for this contribution! Let us know when it's ready for review. |
For sure, @itsjeyd. |
@CodeWithEmad Sounds good!
I'll forward this question to @feanil. |
We should continue to run the testing with both Python 3.11 and 3.12 but dropping 3.8 is totally fine across all |
7e6c865
to
9e0156e
Compare
@feanil I'm working on dropping Python 3.8 here, but there are a couple of blockers here:
which is still using Python 3.8, https://github.com/openedx/xblock-sdk/blob/1760448ebb073edba35be87d99f474d90d9421ac/Dockerfile#L19 https://github.com/openedx/edx-cookiecutters/actions/runs/10206678813/job/28240034237?pr=471 |
@CodeWithEmad I'll see if we can land the xblock-sdk issue first then we can update that as a part of the PR here. |
Issue will be fixed in openedx/xblock-sdk#397 |
Thanks, @farhan. I'll continue this in the coming weeks. |
Remove unnecessary branch specification for workflow_dispatch event
All of the functionalities in xblockutils is moved to xblock.utils inside XBlock pakcage
b9e12fd
to
a364d9b
Compare
cookiecutter-xblock/{{cookiecutter.repo_name}}/requirements/base.in
Outdated
Show resolved
Hide resolved
...ck/{{cookiecutter.repo_name}}/{{cookiecutter.package_name}}/{{cookiecutter.package_name}}.py
Outdated
Show resolved
Hide resolved
pkg_resources is available in python 3.12 only if setuptools is explicitly installed, which is not always the case.
* dev.stop: Stop the running container * dev.migrate: Run migrations in the container * dev.logs: View logs from the container * dev.exec: Execute to the dev container
0e1e1c0
to
146c66c
Compare
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.
Good work @CodeWithEmad
I will suggest to create an example xblock using the cookie cutter, run it on xblock-sdk or edx-platform and make sure example xblock is rendering/working fine.
...ck/{{cookiecutter.repo_name}}/{{cookiecutter.package_name}}/{{cookiecutter.package_name}}.py
Show resolved
Hide resolved
146c66c
to
6c28821
Compare
@farhan I created an XBlock from the cookiecutter and installed it in the xblock-sdk as well. It's working as expected. |
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.
Good work ⭐
6c28821
to
f4f5873
Compare
@CodeWithEmad Looks like this PR is ready to merge! 🚀 @farhan Do you have the necessary permissions or will we need to ask Axim to merge the changes? |
I don't have merging rights |
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.
Just a few minor tweaks, but overall, it looks great!
...ck/{{cookiecutter.repo_name}}/{{cookiecutter.package_name}}/{{cookiecutter.package_name}}.py
Outdated
Show resolved
Hide resolved
2b146c0
to
0bd5a70
Compare
0bd5a70
to
3bea86b
Compare
@itsjeyd Looks like this is ready to merge! |
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.
I have not reviewed line-by-line, but I trust the Aximprovement team's reviews here.
@feanil , for context, Emad and I spoke about whether we need to put 3.11 testing back in place for the cookie-cut result repo. My sense was that we are so close to being on 3.12 project-wide that it would be a waste of effort and CI cycles to test both versions for new packages, especially since the services running 3.11 will transitively test much of the package code via its own 3.11 CI checks. If you disagree LMK and we can put back 3.11 testing in a quick followup.
Thanks @CodeWithEmad ! |
This will update all the actions as follows:
Also, Python 3.12 added everywhere.
Close #460 #485