Skip to content

Commit

Permalink
[python] - add 3.13 - manifest, dockerfile, readme (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravsaini04 authored Nov 13, 2024
1 parent 58cf475 commit 4c7acf3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/python/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [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
# [Choice] Python version (use -bookworm or -bullseye variants on local arm64/Apple Silicon): 3, 3.13, 3.12, 3.11, 3.10, 3.9, 3.8, 3-bookworm, 3.13-bookworm, 3.12-bookworm, 3.11-bookworm, 3.10-bookworm, 3.9-bookworm, 3.8-bookworm, 3-bullseye, 3.13-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
ARG VARIANT=3-bookworm
FROM python:${VARIANT}

Expand Down
3 changes: 2 additions & 1 deletion src/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| *Categories* | Core, Languages |
| *Image type* | Dockerfile |
| *Published image* | mcr.microsoft.com/devcontainers/python |
| *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 ([full list](https://mcr.microsoft.com/v2/devcontainers/python/tags/list)) |
| *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.13-bookworm / 3.13, 3-bullseye, 3.8-bullseye, 3.9-bullseye, 3.10-bullseye, 3.11-bullseye, 3.12-bullseye, 3.13-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/python/tags/list)) |
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, and `bullseye` variants |
| *Container Host OS Support* | Linux, macOS, Windows |
| *Container OS* | Debian |
Expand All @@ -29,6 +29,7 @@ You can directly reference [pre-built](https://containers.dev/implementors/refer
- `mcr.microsoft.com/devcontainers/python:3.10` (or `3.10-bookworm`, `3.10-bullseye` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/python:3.11` (or `3.11-bookworm`, `3.11-bullseye` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/python:3.12` (or `3.12-bookworm`, `3.12-bullseye` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/python:3.13` (or `3.13-bookworm`, `3.13-bullseye` to pin to an OS version)

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

Expand Down
21 changes: 17 additions & 4 deletions src/python/manifest.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
{
"version": "1.1.16",
"variants": [
"3.13-bookworm",
"3.12-bookworm",
"3.11-bookworm",
"3.10-bookworm",
"3.9-bookworm",
"3.8-bookworm",
"3.13-bullseye",
"3.12-bullseye",
"3.11-bullseye",
"3.10-bullseye",
"3.9-bullseye",
"3.8-bullseye"
],
"build": {
"latest": "3.12-bookworm",
"latest": "3.13-bookworm",
"rootDistro": "debian",
"architectures": {
"3.13-bookworm": [
"linux/amd64",
"linux/arm64"
],
"3.12-bookworm": [
"linux/amd64",
"linux/arm64"
Expand All @@ -36,6 +42,10 @@
"linux/amd64",
"linux/arm64"
],
"3.13-bullseye": [
"linux/amd64",
"linux/arm64"
],
"3.12-bullseye": [
"linux/amd64",
"linux/arm64"
Expand All @@ -61,12 +71,15 @@
"python:${VERSION}-${VARIANT}"
],
"variantTags": {
"3.12-bookworm": [
"python:${VERSION}-3.12",
"3.13-bookworm": [
"python:${VERSION}-3.13",
"python:${VERSION}-3",
"python:${VERSION}-3-bookworm",
"python:${VERSION}-bookworm"
],
"3.12-bookworm": [
"python:${VERSION}-3.12"
],
"3.11-bookworm": [
"python:${VERSION}-3.11"
],
Expand All @@ -79,7 +92,7 @@
"3.8-bookworm": [
"python:${VERSION}-3.8"
],
"3.12-bullseye": [
"3.13-bullseye": [
"python:${VERSION}-3-bullseye",
"python:${VERSION}-bullseye"
]
Expand Down

0 comments on commit 4c7acf3

Please sign in to comment.