Skip to content

Commit 076c833

Browse files
[Python] Adds support for v3.12 (devcontainers#780)
1 parent 5247844 commit 076c833

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

src/python/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Choice] Python version (use -bookworm or -bullseye variants on local arm64/Apple Silicon): 3, 3.11, 3.10, 3.9, 3.8, 3-bookworm, 3.11-bookworm, 3.10-bookworm, 3.9-bookworm, 3.8-bookworm, 3-bullseye, 3.11-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3-buster, 3.11-buster, 3.10-buster, 3.9-buster, 3.8-buster
1+
# [Choice] Python version (use -bookworm or -bullseye variants on local arm64/Apple Silicon): 3, 3.12, 3.11, 3.10, 3.9, 3.8, 3-bookworm, 3.12-bookworm, 3.11-bookworm, 3.10-bookworm, 3.9-bookworm, 3.8-bookworm, 3-bullseye, 3.12-bullseye, 3.11-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3-buster, 3.12-buster, 3.11-buster, 3.10-buster, 3.9-buster, 3.8-buster
22
ARG VARIANT=3-bookworm
33
FROM python:${VARIANT}
44

src/python/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| *Categories* | Core, Languages |
1010
| *Image type* | Dockerfile |
1111
| *Published image* | mcr.microsoft.com/devcontainers/python |
12-
| *Available image variants* | 3 / 3-bookworm, 3.8 / 3.8-bookworm, 3.9 / 3.9-bookworm, 3.10 / 3.10-bookworm, 3.11-bookworm, 3.11, 3-bullseye, 3.8-bullseye, 3.9-bullseye, 3.10-bullseye, 3.11-bullseye, 3.8-buster, 3.9-buster, 3.10-buster, 3.11-buster ([full list](https://mcr.microsoft.com/v2/devcontainers/python/tags/list)) |
12+
| *Available image variants* | 3 / 3-bookworm, 3.8 / 3.8-bookworm, 3.9 / 3.9-bookworm, 3.10 / 3.10-bookworm, 3.11-bookworm / 3.11, 3.12-bookworm / 3.12, 3-bullseye, 3.8-bullseye, 3.9-bullseye, 3.10-bullseye, 3.11-bullseye, 12-bullseye, 3.8-buster, 3.9-buster, 3.10-buster, 3.11-buster ([full list](https://mcr.microsoft.com/v2/devcontainers/python/tags/list)) |
1313
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, and `bullseye` variants |
1414
| *Container Host OS Support* | Linux, macOS, Windows |
1515
| *Container OS* | Debian |
@@ -28,6 +28,7 @@ You can directly reference pre-built versions of `Dockerfile` by using the `imag
2828
- `mcr.microsoft.com/devcontainers/python:3.9` (or `3.9-bookworm`, `3.9-bullseye`, `3.9-buster` to pin to an OS version)
2929
- `mcr.microsoft.com/devcontainers/python:3.10` (or `3.10-bookworm`, `3.10-bullseye`, `3.10-buster` to pin to an OS version)
3030
- `mcr.microsoft.com/devcontainers/python:3.11` (or `3.11-bookworm`, `3.11-bullseye`, `3.11-buster` to pin to an OS version)
31+
- `mcr.microsoft.com/devcontainers/python:3.12` (or `3.12-bookworm`, `3.12-bullseye`, `3.12-buster` to pin to an OS version)
3132

3233
Refer to [this guide](https://containers.dev/guide/dockerfile) for more details.
3334

src/python/manifest.json

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
{
22
"version": "1.0.3",
33
"variants": [
4+
"3.12-bookworm",
45
"3.11-bookworm",
56
"3.10-bookworm",
67
"3.9-bookworm",
78
"3.8-bookworm",
9+
"3.12-bullseye",
810
"3.11-bullseye",
911
"3.10-bullseye",
1012
"3.9-bullseye",
1113
"3.8-bullseye",
14+
"3.12-buster",
1215
"3.11-buster",
1316
"3.10-buster",
1417
"3.9-buster",
1518
"3.8-buster"
1619
],
1720
"build": {
18-
"latest": "3.11-bookworm",
21+
"latest": "3.12-bookworm",
1922
"rootDistro": "debian",
2023
"architectures": {
24+
"3.12-bookworm": [
25+
"linux/amd64",
26+
"linux/arm64"
27+
],
2128
"3.11-bookworm": [
2229
"linux/amd64",
2330
"linux/arm64"
@@ -34,6 +41,10 @@
3441
"linux/amd64",
3542
"linux/arm64"
3643
],
44+
"3.12-bullseye": [
45+
"linux/amd64",
46+
"linux/arm64"
47+
],
3748
"3.11-bullseye": [
3849
"linux/amd64",
3950
"linux/arm64"
@@ -50,6 +61,9 @@
5061
"linux/amd64",
5162
"linux/arm64"
5263
],
64+
"3.12-buster": [
65+
"linux/amd64"
66+
],
5367
"3.11-buster": [
5468
"linux/amd64"
5569
],
@@ -67,12 +81,15 @@
6781
"python:${VERSION}-${VARIANT}"
6882
],
6983
"variantTags": {
70-
"3.11-bookworm": [
71-
"python:${VERSION}-3.11",
84+
"3.12-bookworm": [
85+
"python:${VERSION}-3.12",
7286
"python:${VERSION}-3",
7387
"python:${VERSION}-3-bookworm",
7488
"python:${VERSION}-bookworm"
7589
],
90+
"3.11-bookworm": [
91+
"python:${VERSION}-3.11"
92+
],
7693
"3.10-bookworm": [
7794
"python:${VERSION}-3.10"
7895
],
@@ -82,11 +99,11 @@
8299
"3.8-bookworm": [
83100
"python:${VERSION}-3.8"
84101
],
85-
"3.11-bullseye": [
102+
"3.12-bullseye": [
86103
"python:${VERSION}-3-bullseye",
87104
"python:${VERSION}-bullseye"
88105
],
89-
"3.11-buster": [
106+
"3.12-buster": [
90107
"python:${VERSION}-3-buster",
91108
"python:${VERSION}-buster"
92109
]

0 commit comments

Comments
 (0)