Skip to content

Commit

Permalink
changelog: python lfecycle
Browse files Browse the repository at this point in the history
+ doc update
  • Loading branch information
davlgd committed Oct 1, 2024
1 parent 6042666 commit 08fae40
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 9 deletions.
39 changes: 39 additions & 0 deletions content/changelog/2024-10-01-python-image-changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "Python image: what's new and what's to come"
date: 2024-10-01
tags:
- images
- update
authors:
- name: David Legrand
link: https://github.com/davlgd
image: https://github.com/davlgd.png?size=40
description: uv, Python 3.13 and some clean up
excludeSearch: true
---

Python ecosystem is diverse, with lots of legacy versions and practices. But in the recent months, it evolved on many fronts. So, we've decided to handle it and start to revise how you can deploy Python applications on Clever Cloud.

Check warning on line 15 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.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-10-01-python-image-changes.md", "range": {"start": {"line": 15, "column": 131}}}, "severity": "WARNING"}

## Package management: uv on Clever Cloud

Check failure on line 17 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L17

[Vale.Spelling] Did you really mean 'uv'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'uv'?", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 17, "column": 24}}}, "severity": "ERROR"}

We only support [pip](https://packaging.python.org/en/latest/tutorials/installing-packages/), `requirements.txt` and `setup.py` natively. For some weeks, we've included [uv](https://docs.astral.sh/uv/getting-started/features/) in our Python image to make some tests. Based on Rust, this package and project manager is compliant with existing ecosystem and blazing fast. [It's now a part](/doc/applications/python/#use-uv-as-a-package-manager) of our "Enthusiast tools" initiative and will be updated regularly. Thus, there is no active support for it yet.

Check warning on line 19 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L19

[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-10-01-python-image-changes.md", "range": {"start": {"line": 19, "column": 1}}}, "severity": "WARNING"}

Check warning on line 19 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L19

[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-10-01-python-image-changes.md", "range": {"start": {"line": 19, "column": 155}}}, "severity": "WARNING"}

Check failure on line 19 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L19

[Vale.Spelling] Did you really mean 'uv'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'uv'?", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 19, "column": 171}}}, "severity": "ERROR"}

Check warning on line 19 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L19

[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-10-01-python-image-changes.md", "range": {"start": {"line": 19, "column": 231}}}, "severity": "WARNING"}

Check warning on line 19 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L19

[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-10-01-python-image-changes.md", "range": {"start": {"line": 19, "column": 447}}}, "severity": "WARNING"}

Check warning on line 19 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L19

[Google.Will] Avoid using 'will'.
Raw output
{"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 19, "column": 485}}}, "severity": "WARNING"}

Check notice on line 19 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L19

[Google.Passive] In general, use active voice instead of passive voice ('be updated').
Raw output
{"message": "[Google.Passive] In general, use active voice instead of passive voice ('be updated').", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 19, "column": 490}}}, "severity": "INFO"}

We'll enhance its native support in coming releases of our Python image.

Check warning on line 21 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L21

[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-10-01-python-image-changes.md", "range": {"start": {"line": 21, "column": 1}}}, "severity": "WARNING"}

Check warning on line 21 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L21

[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-10-01-python-image-changes.md", "range": {"start": {"line": 21, "column": 56}}}, "severity": "WARNING"}

* [Learn more about uv](https://github.com/astral-sh/uv) {{< icon "github" >}}

Check failure on line 23 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L23

[Vale.Spelling] Did you really mean 'uv'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'uv'?", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 23, "column": 21}}}, "severity": "ERROR"}

## Python versions: time to clean up

We're in 2024 and Python 2.x still coexists with Python 3.x. As it's always used by some of our customers, we've decided to continue to support it. Python 3.x is now the default version for new Python applications. We'll make this change for other runtimes (where Python is also included), starting 2025. If you need Python 2.x, set `CC_PYTHON_VERSION=2` in your applications.

Check warning on line 27 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L27

[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-10-01-python-image-changes.md", "range": {"start": {"line": 27, "column": 1}}}, "severity": "WARNING"}

Check warning on line 27 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L27

[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-10-01-python-image-changes.md", "range": {"start": {"line": 27, "column": 93}}}, "severity": "WARNING"}

Check warning on line 27 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L27

[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-10-01-python-image-changes.md", "range": {"start": {"line": 27, "column": 108}}}, "severity": "WARNING"}

Check warning on line 27 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L27

[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-10-01-python-image-changes.md", "range": {"start": {"line": 27, "column": 216}}}, "severity": "WARNING"}

We'll also get closer to [the official Python release cycle](https://devguide.python.org/versions/#python-release-cycle), which is 5 years of support. Thus, we'll stop using Python 3.7 starting December 1st, 2024. Next year, we'll deprecate Python 3.8 and stop providing it. If an application is asking for a deprecated version, it will use the latest available by default. So, upgrade your `CC_PYTHON_VERSION` towards your needs.

Check warning on line 29 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L29

[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-10-01-python-image-changes.md", "range": {"start": {"line": 29, "column": 1}}}, "severity": "WARNING"}

Check warning on line 29 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L29

[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-10-01-python-image-changes.md", "range": {"start": {"line": 29, "column": 158}}}, "severity": "WARNING"}

Check failure on line 29 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L29

[Google.Units] Put a nonbreaking space between the number and the unit in '1s'.
Raw output
{"message": "[Google.Units] Put a nonbreaking space between the number and the unit in '1s'.", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 29, "column": 204}}}, "severity": "ERROR"}

Check failure on line 29 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L29

[Google.Ordinal] Spell out all ordinal numbers ('1st') in text.
Raw output
{"message": "[Google.Ordinal] Spell out all ordinal numbers ('1st') in text.", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 29, "column": 204}}}, "severity": "ERROR"}

Check warning on line 29 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L29

[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-10-01-python-image-changes.md", "range": {"start": {"line": 29, "column": 226}}}, "severity": "WARNING"}

Check warning on line 29 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L29

[Google.Will] Avoid using 'will'.
Raw output
{"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 29, "column": 333}}}, "severity": "WARNING"}

If you need to sideload unsupported Python versions, `uv` [can help you](https://docs.astral.sh/uv/guides/install-python/). You can also deploy your applications through [Docker](/doc/applications/docker), but you should avoid to use end of life runtime in your applications.

Check failure on line 31 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L31

[Vale.Spelling] Did you really mean 'sideload'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'sideload'?", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 31, "column": 16}}}, "severity": "ERROR"}

* Learn more about [Python on Clever Cloud](/doc/applications/python/)

## What's next?

We'll enhance our Python images to better support modern Python ecosystem and simplify the deployment process. Python 3.13, [released today](https://docs.python.org/3.13/whatsnew/3.13.html), will be available on Clever Cloud in the coming weeks.

Check warning on line 37 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L37

[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-10-01-python-image-changes.md", "range": {"start": {"line": 37, "column": 1}}}, "severity": "WARNING"}

Check warning on line 37 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L37

[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-10-01-python-image-changes.md", "range": {"start": {"line": 37, "column": 15}}}, "severity": "WARNING"}

Check warning on line 37 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L37

[Google.Will] Avoid using 'will'.
Raw output
{"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 37, "column": 192}}}, "severity": "WARNING"}

If you have any questions or suggestions, feel free to tell us on [our community page](https://github.com/CleverCloud/Community/discussions/categories/paas-runtimes).

Check warning on line 39 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L39

[Google.We] Try to avoid using first-person plural like 'us'.
Raw output
{"message": "[Google.We] Try to avoid using first-person plural like 'us'.", "location": {"path": "content/changelog/2024-10-01-python-image-changes.md", "range": {"start": {"line": 39, "column": 61}}}, "severity": "WARNING"}

Check warning on line 39 in content/changelog/2024-10-01-python-image-changes.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-10-01-python-image-changes.md#L39

[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-10-01-python-image-changes.md", "range": {"start": {"line": 39, "column": 68}}}, "severity": "WARNING"}
22 changes: 14 additions & 8 deletions content/doc/applications/python/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
type: docs
title: Python

shortdesc: Python 2.7 and 3.11 are available on our platform. You can use Git to deploy your application.
shortdesc: Python 2.7 and 3.12 are available on our platform. You can use git to deploy your application.
tags:
- deploy
keywords:
Expand All @@ -24,8 +24,15 @@ Python is a programming language that lets you work more quickly and integrate y

### Supported Versions

The default version of Python on Clever Cloud is the latest we support from branch `3.x`. If you want to use Python `2.x`, create an [environment variable](#setting-up-environment-variables-on-clever-cloud) `CC_PYTHON_VERSION` set to `2`, it will default to Python 2.7. Other supported values are :

Check warning on line 27 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L27

[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/doc/applications/python/_index.md", "range": {"start": {"line": 27, "column": 61}}}, "severity": "WARNING"}

Check warning on line 27 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L27

[Google.Will] Avoid using 'will'.
Raw output
{"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 27, "column": 243}}}, "severity": "WARNING"}

{{< 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/).\

Check failure on line 32 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L32

[Google.DateFormat] Use 'July 31, 2016' format, not '27 June 2023'.
Raw output
{"message": "[Google.DateFormat] Use 'July 31, 2016' format, not '27 June 2023'.", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 32, "column": 34}}}, "severity": "ERROR"}

Check warning on line 32 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L32

[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/doc/applications/python/_index.md", "range": {"start": {"line": 32, "column": 109}}}, "severity": "WARNING"}

Check warning on line 32 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L32

[Google.Will] Avoid using 'will'.
Raw output
{"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 32, "column": 144}}}, "severity": "WARNING"}

Check notice on line 32 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L32

[Google.Passive] In general, use active voice instead of passive voice ('be removed').
Raw output
{"message": "[Google.Passive] In general, use active voice instead of passive voice ('be removed').", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 32, "column": 149}}}, "severity": "INFO"}

Check warning on line 32 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L32

[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/doc/applications/python/_index.md", "range": {"start": {"line": 32, "column": 165}}}, "severity": "WARNING"}

Check failure on line 32 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L32

[Google.Units] Put a nonbreaking space between the number and the unit in '1s'.
Raw output
{"message": "[Google.Units] Put a nonbreaking space between the number and the unit in '1s'.", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 32, "column": 196}}}, "severity": "ERROR"}

Check failure on line 32 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L32

[Google.Ordinal] Spell out all ordinal numbers ('1st') in text.
Raw output
{"message": "[Google.Ordinal] Spell out all ordinal numbers ('1st') in text.", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 32, "column": 196}}}, "severity": "ERROR"}
Latest 3.x version will be used after this date. To prevent this, upgrade your `CC_PYTHON_VERSION` towards your needs.

Check warning on line 33 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L33

[Google.Will] Avoid using 'will'.
Raw output
{"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 33, "column": 20}}}, "severity": "WARNING"}

Check notice on line 33 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L33

[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/doc/applications/python/_index.md", "range": {"start": {"line": 33, "column": 25}}}, "severity": "INFO"}
{{< /callout >}}

{{% content/create-application %}}

{{% content/set-env-vars %}}
Expand All @@ -48,16 +55,15 @@ For example with *Flask*, it's gonna be the name of your main server file, follo

You can also use `CC_RUN_COMMAND` to launch Python application your way. In such case, it must listen on port `9000`.

### Choose Python version

The default version of python on Clever Cloud is **2.7**. If you want to use python **3.x** instead, create an [environment variable](#setting-up-environment-variables-on-clever-cloud) `CC_PYTHON_VERSION` equal to either `3` (which will default to the most up-to-date version), `3.7`, `3.8`, `3.9`, `3.10` or `3.11`.
### Use uv as a package manager

Check failure on line 58 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L58

[Vale.Spelling] Did you really mean 'uv'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'uv'?", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 58, "column": 9}}}, "severity": "ERROR"}

**Note**: the version is a number, do not use quotes. values allowed are `2`, `2.7`, `3`, `3.7`, `3.8`, `3.9`, `3.10`, `3.11`.
Built in Rust, `uv` is a modern package and project manager for Python. It's fast to install dependencies, can be used as a drop-in replacement for `pip` and to sideload unsupported versions of Python. For example to use it with a `app.py` file, you just need to set `CC_RUN_COMMAND="uv run app.py"`. If your application listens on port `9000` with `0.0.0.0` as host, it will work fine on Clever Cloud.

Check notice on line 60 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L60

[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/doc/applications/python/_index.md", "range": {"start": {"line": 60, "column": 112}}}, "severity": "INFO"}

Check failure on line 60 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L60

[Vale.Spelling] Did you really mean 'sideload'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'sideload'?", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 60, "column": 162}}}, "severity": "ERROR"}

Check warning on line 60 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L60

[Google.Will] Avoid using 'will'.
Raw output
{"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 60, "column": 372}}}, "severity": "WARNING"}

### Choose Pip version
* [Learn more about uv](https://github.com/astral-sh/uv)

Check failure on line 62 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L62

[Vale.Spelling] Did you really mean 'uv'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'uv'?", "location": {"path": "content/doc/applications/python/_index.md", "range": {"start": {"line": 62, "column": 21}}}, "severity": "ERROR"}

The default version of pip on Clever Cloud is **19**.
If you want to use pip **9** instead, create an [environment variable](#setting-up-environment-variables-on-clever-cloud) like `CC_PIP_VERSION=9`.
{{< callout type="info" >}}
`uv` is part of our Enthusiast tools initiative, it's included and can be used, but there is no active support for it yet.

Check warning on line 65 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L65

[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/doc/applications/python/_index.md", "range": {"start": {"line": 65, "column": 19}}}, "severity": "WARNING"}

Check notice on line 65 in content/doc/applications/python/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/python/_index.md#L65

[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/doc/applications/python/_index.md", "range": {"start": {"line": 65, "column": 74}}}, "severity": "INFO"}
{{< /callout >}}

### Select the python backend

Expand Down
3 changes: 2 additions & 1 deletion data/runtime_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ python:
default:
- "3.12"
accepted:
- "2"
- "3"
- "3.7"
- "3.7 (deprecated)"
- "3.8"
- "3.9"
- "3.10"
Expand Down

0 comments on commit 08fae40

Please sign in to comment.