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

Default to Python 3.12 instead of 3.13 #335

Merged
merged 3 commits into from
Nov 21, 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
6 changes: 3 additions & 3 deletions .github/scripts/matrix/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
unversioned = ["go", "java"]

# For the versioned SDKS we have a default version and additional versions with suffixes.
# The default version is used for the unsuffixed image `pulumi-python` and for the suffixed version `pulumi-python-3.13`.
# The default version is used for the unsuffixed image `pulumi-python` and for the suffixed version `pulumi-python-3.12`.
# The additional versions are used for the suffixed images `pulumi-python-3.10`, `pulumi-python-3.11`, ...
versioned = {
"nodejs": {
"default": "22",
"additional": ["18", "20", "23"]
},
"python": {
"default": "3.13",
"additional": ["3.9", "3.10", "3.11", "3.12"]
"default": "3.12",
"additional": ["3.9", "3.10", "3.11", "3.13"]
},
"dotnet": {
"default": "8.0",
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

- Default to Python 3.12 instead of 3.13
([335](https://github.com/pulumi/pulumi-docker-containers/pull/335))

- Install Python and Node.js in the UBI containers using pyenv and fnm
([326])https://github.com/pulumi/pulumi-docker-containers/pull/326))

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ Images without a version suffix use the following language versions by default:
- Go 1.23
- JDK 21
- Node.js 22
- Python 3.13
- Python 3.12

### Version Policy

Language runtimes are kept up-to-date with current LTS versions. You can pin the image tag to a particular version in order to avoid unintended upgrades.
Language runtimes are kept up-to-date with current LTS versions. For Python, the default version corresponds to the release prior to the latest release, for other languages the default version corresponds to the latest release. You can pin the image tag to a particular version in order to avoid unintended upgrades.

### Choosing a Language Version

Expand Down
2 changes: 1 addition & 1 deletion docker/pulumi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ RUN pyenv install 3.12
RUN pyenv install 3.11
RUN pyenv install 3.10
RUN pyenv install 3.9
RUN pyenv global 3.13 # Default version
RUN pyenv global 3.12 # Default version
# Poetry
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local/share/pypoetry python3 -
RUN ln -s /usr/local/share/pypoetry/bin/poetry /usr/local/bin/
Expand Down
4 changes: 2 additions & 2 deletions tests/testdata/python-default/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sys

assert sys.version_info.major == 3 and sys.version_info.minor == 13, \
f"version should be 3.13, got {sys.version_info.major}.{sys.version_info.minor}"
assert sys.version_info.major == 3 and sys.version_info.minor == 12, \
f"version should be 3.12, got {sys.version_info.major}.{sys.version_info.minor}"