Skip to content

Commit a00b2d5

Browse files
authored
EOL Python 3.8 (#1241)
* Update Dockerfile EOL Python 3.8 * Update manifest.json EOL Python 3.8 * Update README.md EOLPython 3.8 * Update README.md to remove Python 3.8 reference
1 parent 7aaa0c9 commit a00b2d5

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

src/python/.devcontainer/Dockerfile

+1-1
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.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
1+
# [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-bookworm, 3.13-bookworm, 3.12-bookworm, 3.11-bookworm, 3.10-bookworm, 3.9-bookworm, 3-bullseye, 3.13-bullseye, 3.12-bullseye, 3.11-bullseye, 3.10-bullseye, 3.9-bullseye, 3-buster, 3.12-buster, 3.11-buster, 3.10-buster, 3.9-buster
22
ARG VARIANT=3-bookworm
33
FROM python:${VARIANT}
44

src/python/README.md

+2-3
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.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)) |
12+
| *Available image variants* | 3 / 3-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.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)) |
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 |
@@ -24,7 +24,6 @@ See **[history](history)** for information on the contents of published images.
2424
You can directly reference [pre-built](https://containers.dev/implementors/reference/#prebuilding) versions of this image by using the `image` property in `.devcontainer/devcontainer.json` or updating the `FROM` statement in your own `Dockerfile` with one of the following:
2525

2626
- `mcr.microsoft.com/devcontainers/python:3` (latest)
27-
- `mcr.microsoft.com/devcontainers/python:3.8` (or `3.8-bookworm`, `3.8-bullseye` to pin to an OS version)
2827
- `mcr.microsoft.com/devcontainers/python:3.9` (or `3.9-bookworm`, `3.9-bullseye` to pin to an OS version)
2928
- `mcr.microsoft.com/devcontainers/python:3.10` (or `3.10-bookworm`, `3.10-bullseye` to pin to an OS version)
3029
- `mcr.microsoft.com/devcontainers/python:3.11` (or `3.11-bookworm`, `3.11-bullseye` to pin to an OS version)
@@ -131,7 +130,7 @@ If you would prefer to have multiple Python versions in your container, use `Doc
131130

132131
```Dockerfile
133132
FROM ubuntu:jammy
134-
ARG PYTHON_PACKAGES="python3.8 python3.9 python3 python3-pip python3-venv"
133+
ARG PYTHON_PACKAGES="python3.13 python3.12 python3 python3-pip python3-venv"
135134
RUN apt-get update && apt-get install --no-install-recommends -yq software-properties-common \
136135
&& add-apt-repository ppa:deadsnakes/ppa && apt-get update \
137136
&& apt-get install -yq --no-install-recommends ${PYTHON_PACKAGES} \

src/python/manifest.json

+2-15
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
"3.11-bookworm",
77
"3.10-bookworm",
88
"3.9-bookworm",
9-
"3.8-bookworm",
109
"3.13-bullseye",
1110
"3.12-bullseye",
1211
"3.11-bullseye",
1312
"3.10-bullseye",
14-
"3.9-bullseye",
15-
"3.8-bullseye"
13+
"3.9-bullseye"
1614
],
1715
"build": {
1816
"latest": "3.13-bookworm",
@@ -38,10 +36,6 @@
3836
"linux/amd64",
3937
"linux/arm64"
4038
],
41-
"3.8-bookworm": [
42-
"linux/amd64",
43-
"linux/arm64"
44-
],
4539
"3.13-bullseye": [
4640
"linux/amd64",
4741
"linux/arm64"
@@ -61,10 +55,6 @@
6155
"3.9-bullseye": [
6256
"linux/amd64",
6357
"linux/arm64"
64-
],
65-
"3.8-bullseye": [
66-
"linux/amd64",
67-
"linux/arm64"
6858
]
6959
},
7060
"tags": [
@@ -89,9 +79,6 @@
8979
"3.9-bookworm": [
9080
"python:${VERSION}-3.9"
9181
],
92-
"3.8-bookworm": [
93-
"python:${VERSION}-3.8"
94-
],
9582
"3.13-bullseye": [
9683
"python:${VERSION}-3-bullseye",
9784
"python:${VERSION}-bullseye"
@@ -137,4 +124,4 @@
137124
"git": {}
138125
}
139126
}
140-
}
127+
}

0 commit comments

Comments
 (0)