From aa7301f68f3ac7e7057c949d2fb25d6c08ce6067 Mon Sep 17 00:00:00 2001 From: David Legrand Date: Thu, 12 Dec 2024 13:50:48 +0100 Subject: [PATCH] changelog: Python 3.13 --- .../2024-12-12-python-3.13-update.md | 23 +++++++++++++++++++ content/doc/applications/python/_index.md | 5 ---- .../reference-environment-variables.md | 2 +- data/runtime_versions.yml | 4 ++-- 4 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 content/changelog/2024-12-12-python-3.13-update.md diff --git a/content/changelog/2024-12-12-python-3.13-update.md b/content/changelog/2024-12-12-python-3.13-update.md new file mode 100644 index 000000000..30481e42b --- /dev/null +++ b/content/changelog/2024-12-12-python-3.13-update.md @@ -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. + +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). + + * uv 0.5.7 + * Linux kernel 6.11.6 + * Redirection.io agent + * Python 3.13 support + * Python 3.7 withdrawal diff --git a/content/doc/applications/python/_index.md b/content/doc/applications/python/_index.md index 849662dc4..aa331199a 100644 --- a/content/doc/applications/python/_index.md +++ b/content/doc/applications/python/_index.md @@ -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 %}} diff --git a/content/doc/reference/reference-environment-variables.md b/content/doc/reference/reference-environment-variables.md index c759b93cc..ddcc13535 100644 --- a/content/doc/reference/reference-environment-variables.md +++ b/content/doc/reference/reference-environment-variables.md @@ -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 | diff --git a/data/runtime_versions.yml b/data/runtime_versions.yml index bd53683e1..7ae065838 100644 --- a/data/runtime_versions.yml +++ b/data/runtime_versions.yml @@ -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: