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

cookiecutter-tutor-plugin codebase Python 3.12 upgrade #30

Closed
DawoudSheraz opened this issue Feb 21, 2024 · 12 comments
Closed

cookiecutter-tutor-plugin codebase Python 3.12 upgrade #30

DawoudSheraz opened this issue Feb 21, 2024 · 12 comments

Comments

@DawoudSheraz
Copy link
Contributor

Ensure cookiecutter-tutor-plugin codebase is compatible with Python 3.12

See overhangio/tutor#1004 for the context.

@CodeWithEmad
Copy link
Member

This is fixed in MR #29 -> bcfc62d
I'm waiting for your review there.

@DawoudSheraz
Copy link
Contributor Author

This is fixed in MR #29 -> bcfc62d I'm waiting for your review there.

Got it. But apart from pkg_resources removal, it would be good to see if there are any other items that need an upgrade to Py312. If not, its good.

@CodeWithEmad
Copy link
Member

CodeWithEmad commented Feb 26, 2024

There are no other parts in the cookie-cutter. it was just pkg_resources which is fixed in #29 .

@DawoudSheraz
Copy link
Contributor Author

There are no other parts in the cookie-cutter. it was just pkg_resources which is fixed in #29 .

Cool. Does this mean a new plugin that is created in Python 3.12 environment will work without any modification in latest tutor master, right?

@CodeWithEmad
Copy link
Member

CodeWithEmad commented Feb 26, 2024

I just tested it with a python:3.12 image and tutor 17.0.2. the plugin was created, installed, and enabled successfully.
Screenshot from 2024-02-26 18-48-26
Is there any further steps you have in mind?

@regisb
Copy link
Contributor

regisb commented Feb 27, 2024

I think we can close this as completed by #29.

@Danyal-Faheem
Copy link

Hi, shouldn't we also update the workflows here for python 3.12 as well?

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

Similar to what is being done in tutor-forum in this PR.

@DawoudSheraz
Copy link
Contributor Author

Adding to @Danyal-Faheem 's point, it would be good to have both 3.8 and 3.12 workflows until the redwood release. It would ensure the changes being made are compatible with both Python versions.

@CodeWithEmad
Copy link
Member

CodeWithEmad commented Feb 27, 2024

I have no objection to the idea, however, since it is just a cookiecutter and not a genuine plugin, I think we should provide only the essentials and allow the plugin developers to determine which versions they wish to support. I am interested in hearing @regisb's viewpoint on this.

@DawoudSheraz
Copy link
Contributor Author

@CodeWithEmad Hi, let's add CI checks and then close this out. I don't think there is any more action needed. CI checks are there only for backup that future changes (until Redwood) are compatible with 38 and 312. Thanks

@CodeWithEmad
Copy link
Member

Agree. Have a look at #31

@CodeWithEmad
Copy link
Member

I think we can close this as completed by #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

4 participants