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

changelog: Python 3.13 #470

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions content/changelog/2024-12-12-python-3.13-update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "Python 3.13 is available"
date: 2024-12-12
tags:
- images
- update
authors:
- name: David Legrand
link: https://github.com/davlgd
image: https://github.com/davlgd.png?size=40
description: Newer Python and more tools
excludeSearch: true
---

We've updated Python image and deployed them without any impact for our users.

Check warning on line 15 in content/changelog/2024-12-12-python-3.13-update.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-12-12-python-3.13-update.md#L15

[Google.We] Try to avoid using first-person plural like 'We'.
Raw output
{"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "content/changelog/2024-12-12-python-3.13-update.md", "range": {"start": {"line": 15, "column": 1}}}, "severity": "WARNING"}

Check warning on line 15 in content/changelog/2024-12-12-python-3.13-update.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-12-12-python-3.13-update.md#L15

[Google.We] Try to avoid using first-person plural like 'our'.
Raw output
{"message": "[Google.We] Try to avoid using first-person plural like 'our'.", "location": {"path": "content/changelog/2024-12-12-python-3.13-update.md", "range": {"start": {"line": 15, "column": 69}}}, "severity": "WARNING"}

You can now use `3.13` as `CC_PYTHON_VERSION` environment variable. This version will also be used as default value. As announced [in October](/changelog/2024-10-01-python-image-changes/), Python 3.7 is not supported anymore. However, you can use `uv` to [install or use Python 3.7](https://docs.astral.sh/uv/guides/install-python/#installing-a-specific-version).

Check warning on line 17 in content/changelog/2024-12-12-python-3.13-update.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-12-12-python-3.13-update.md#L17

[Google.Will] Avoid using 'will'.
Raw output
{"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "content/changelog/2024-12-12-python-3.13-update.md", "range": {"start": {"line": 17, "column": 82}}}, "severity": "WARNING"}

Check notice on line 17 in content/changelog/2024-12-12-python-3.13-update.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-12-12-python-3.13-update.md#L17

[Google.Passive] In general, use active voice instead of passive voice ('be used').
Raw output
{"message": "[Google.Passive] In general, use active voice instead of passive voice ('be used').", "location": {"path": "content/changelog/2024-12-12-python-3.13-update.md", "range": {"start": {"line": 17, "column": 92}}}, "severity": "INFO"}

Check notice on line 17 in content/changelog/2024-12-12-python-3.13-update.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-12-12-python-3.13-update.md#L17

[Google.Contractions] Use 'isn't' instead of 'is not'.
Raw output
{"message": "[Google.Contractions] Use 'isn't' instead of 'is not'.", "location": {"path": "content/changelog/2024-12-12-python-3.13-update.md", "range": {"start": {"line": 17, "column": 201}}}, "severity": "INFO"}

* uv 0.5.7

Check failure on line 19 in content/changelog/2024-12-12-python-3.13-update.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-12-12-python-3.13-update.md#L19

[Vale.Spelling] Did you really mean 'uv'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'uv'?", "location": {"path": "content/changelog/2024-12-12-python-3.13-update.md", "range": {"start": {"line": 19, "column": 5}}}, "severity": "ERROR"}
* Linux kernel 6.11.6
* Redirection.io agent
* Python 3.13 support
* Python 3.7 withdrawal
5 changes: 0 additions & 5 deletions content/doc/applications/python/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ The default version of Python on Clever Cloud is the latest we support from bran

{{< runtimes_versions python >}}

{{< callout type="warning" >}}
Python 3.7 [is end of life since 27 June 2023](https://devguide.python.org/versions/#python-release-cycle), we considered it as deprecated. It will be removed from our images [starting December, 1st](/changelog/2024-10-01-python-image-changes/).\
Latest 3.x version will be used after this date. To prevent this, upgrade your `CC_PYTHON_VERSION` towards your needs.
{{< /callout >}}

{{% content/create-application %}}

{{% content/set-env-vars %}}
Expand Down
2 changes: 1 addition & 1 deletion content/doc/reference/reference-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ If `TAILSCALE_LOGIN_SERVER` is provided, the agent will be configured to reach a
|[`CC_PYTHON_MANAGE_TASKS`](/guides/python-django-sample/#manage-py-tasks "Manage py tasks") | Comma-separated list of Django manage tasks | |
|`CC_PYTHON_MODULE` | Select which module you want to start with the path to the folder containing the app object. For example, a module called **server.py** in a folder called **/app** would be used here as **app.server:app** | |
|`CC_PYTHON_USE_GEVENT` | Set to true to enable Gevent | |
|`CC_PYTHON_VERSION` | Choose the Python version between 2.7, 3.7, 3.8, 3.9, 3.10 and 3.11 | |
|`CC_PYTHON_VERSION` | Choose the Python version among [those supported](/doc/applications/python/#supported-versions) | 3 |
|`ENABLE_GZIP_COMPRESSION` | Set to `true` to gzip-compress through Nginx | |
|`GZIP_TYPES` | Set the mime types to compress. | text/* application/json application/xml application/javascript image/svg+xml |
|`HARAKIRI` | Timeout (in seconds) after which an unresponding process is killed | 180 |
Expand Down
4 changes: 2 additions & 2 deletions data/runtime_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ PHP:
python:
eol_source: "https://devguide.python.org/versions/#python-release-cycle"
default:
- "3.12"
- "3"
accepted:
- "2"
- "3"
- "3.7 (EOL)"
- "3.8 (EOL)"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
dotnet:
eol_source: "https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core"
default:
Expand Down
Loading