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

Python 3.11 and beyond #1225

Closed
mjpieters opened this issue Dec 27, 2022 · 3 comments · Fixed by #1347
Closed

Python 3.11 and beyond #1225

mjpieters opened this issue Dec 27, 2022 · 3 comments · Fixed by #1347

Comments

@mjpieters
Copy link

Proposed change

Support Python 3.11, and perhaps automatically support future Python releases?

Python 3.11.0 was released in October 2022 but unfortunately I can’t yet use it in mybinder.org.

While it looks like you only need to run a simple script to add the conda environment file for new Python versions, you’ll need to do this manually once every 12 months. Is there any way this could be automated a bit or have the environment generated on the fly by periodically checking for newer Python versions on conda forge?

Alternative options

File a request for every new 3.x Python release, yearly.

Who would use this feature?

Anyone wanting to use features in newer Python releases.

How much effort will adding it take?

Adding 3.11: update conda/freeze.py to add 3.11 to the defaults, generate the environment files, commit.

Adding automated updates based on conda forge version info: hard to say, but a few days perhaps, depending on how well understood the GitHub Action environment is and how you’d commit updated environment files.

Who can do this work?

The base 3.11 work: most anyone, if the #1175 PR is typical.

Automatic detection of new Python versions: requires conda forge API familiarity plus experience with GH actions to automate commits or PRs.

@minrk
Copy link
Member

minrk commented Feb 17, 2023

I believe the changes in #1239 will make it easier for us to keep up with new Python versions.

We were held back by the fact that it was hard to upgrade things for old Pythons other than Python 2, but #1239 makes our 'too-old Python' support more generic, and extends it to Python 3.6, which should generally make this upgrade process easier. It will be very easy to shift 3.7 to the kernel-only set when it starts to be a hindrance.

We don't have anything automated for this, but it should be a lot easier now to just:

  1. add '3.12' to freeze.py
  2. run freeze.py 3.12
  3. update docs

and be done

@BwL1289
Copy link

BwL1289 commented Mar 30, 2024

Any progress on this? Thanks!

@scottyhq
Copy link
Contributor

Just came across this as I was surprised to hit the following error via mybinder.org

Building conda environment for python=3.12
Error during build: Python version 3.12 on linux-64 is not supported!`

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

Successfully merging a pull request may close this issue.

4 participants