Skip to content

Commit 731a6b5

Browse files
Python 3.7 - EOL (devcontainers#642)
1 parent 899c3e0 commit 731a6b5

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
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.7, 3-bookworm, 3.11-bookworm, 3.10-bookworm, 3.9-bookworm, 3.8-bookworm, 3.7-bookworm, 3-bullseye, 3.11-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3-buster, 3.11-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster
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
22
ARG VARIANT=3-bookworm
33
FROM python:${VARIANT}
44

src/python/README.md

Lines changed: 2 additions & 3 deletions
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.7 / 3.7-bookworm, 3.8 / 3.8-bookworm, 3.9 / 3.9-bookworm, 3.10 / 3.10-bookworm, 3.11-bookworm, 3.11, 3-bullseye, 3.7-bullseye, 3.8-bullseye, 3.9-bullseye, 3.10-bullseye, 3.11-bullseye, 3.7-buster, 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-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)) |
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 versions of `Dockerfile` 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.7` (or `3.7-bookworm`, `3.7-bullseye`, `3.7-buster` to pin to an OS version)
2827
- `mcr.microsoft.com/devcontainers/python:3.8` (or `3.8-bookworm`, `3.8-bullseye`, `3.8-buster` to pin to an OS version)
2928
- `mcr.microsoft.com/devcontainers/python:3.9` (or `3.9-bookworm`, `3.9-bullseye`, `3.9-buster` to pin to an OS version)
3029
- `mcr.microsoft.com/devcontainers/python:3.10` (or `3.10-bookworm`, `3.10-bullseye`, `3.10-buster` to pin to an OS version)
@@ -129,7 +128,7 @@ If you would prefer to have multiple Python versions in your container, use `Doc
129128

130129
```Dockerfile
131130
FROM ubuntu:jammy
132-
ARG PYTHON_PACKAGES="python3.5 python3.6 python3.7 python3.8 python3 python3-pip python3-venv"
131+
ARG PYTHON_PACKAGES="python3.8 python3.9 python3 python3-pip python3-venv"
133132
RUN apt-get update && apt-get install --no-install-recommends -yq software-properties-common \
134133
&& add-apt-repository ppa:deadsnakes/ppa && apt-get update \
135134
&& apt-get install -yq --no-install-recommends ${PYTHON_PACKAGES} \

src/python/manifest.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@
55
"3.10-bookworm",
66
"3.9-bookworm",
77
"3.8-bookworm",
8-
"3.7-bookworm",
98
"3.11-bullseye",
109
"3.10-bullseye",
1110
"3.9-bullseye",
1211
"3.8-bullseye",
13-
"3.7-bullseye",
1412
"3.11-buster",
1513
"3.10-buster",
1614
"3.9-buster",
17-
"3.8-buster",
18-
"3.7-buster"
15+
"3.8-buster"
1916
],
2017
"build": {
2118
"latest": "3.11-bookworm",
@@ -37,10 +34,6 @@
3734
"linux/amd64",
3835
"linux/arm64"
3936
],
40-
"3.7-bookworm": [
41-
"linux/amd64",
42-
"linux/arm64"
43-
],
4437
"3.11-bullseye": [
4538
"linux/amd64",
4639
"linux/arm64"
@@ -57,10 +50,6 @@
5750
"linux/amd64",
5851
"linux/arm64"
5952
],
60-
"3.7-bullseye": [
61-
"linux/amd64",
62-
"linux/arm64"
63-
],
6453
"3.11-buster": [
6554
"linux/amd64"
6655
],
@@ -72,9 +61,6 @@
7261
],
7362
"3.8-buster": [
7463
"linux/amd64"
75-
],
76-
"3.7-buster": [
77-
"linux/amd64"
7864
]
7965
},
8066
"tags": [
@@ -96,9 +82,6 @@
9682
"3.8-bookworm": [
9783
"python:${VERSION}-3.8"
9884
],
99-
"3.7-bookworm": [
100-
"python:${VERSION}-3.7"
101-
],
10285
"3.11-bullseye": [
10386
"python:${VERSION}-3-bullseye",
10487
"python:${VERSION}-bullseye"

0 commit comments

Comments
 (0)