Skip to content

Commit

Permalink
Python 3.7 - EOL (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
samruddhikhandale authored Jun 30, 2023
1 parent 899c3e0 commit 731a6b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 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.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
# [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
ARG VARIANT=3-bookworm
FROM python:${VARIANT}

Expand Down
5 changes: 2 additions & 3 deletions 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.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)) |
| *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)) |
| *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 @@ -24,7 +24,6 @@ See **[history](history)** for information on the contents of published images.
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:

- `mcr.microsoft.com/devcontainers/python:3` (latest)
- `mcr.microsoft.com/devcontainers/python:3.7` (or `3.7-bookworm`, `3.7-bullseye`, `3.7-buster` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/python:3.8` (or `3.8-bookworm`, `3.8-bullseye`, `3.8-buster` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/python:3.9` (or `3.9-bookworm`, `3.9-bullseye`, `3.9-buster` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/python:3.10` (or `3.10-bookworm`, `3.10-bullseye`, `3.10-buster` to pin to an OS version)
Expand Down Expand Up @@ -129,7 +128,7 @@ If you would prefer to have multiple Python versions in your container, use `Doc

```Dockerfile
FROM ubuntu:jammy
ARG PYTHON_PACKAGES="python3.5 python3.6 python3.7 python3.8 python3 python3-pip python3-venv"
ARG PYTHON_PACKAGES="python3.8 python3.9 python3 python3-pip python3-venv"
RUN apt-get update && apt-get install --no-install-recommends -yq software-properties-common \
&& add-apt-repository ppa:deadsnakes/ppa && apt-get update \
&& apt-get install -yq --no-install-recommends ${PYTHON_PACKAGES} \
Expand Down
19 changes: 1 addition & 18 deletions src/python/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
"3.10-bookworm",
"3.9-bookworm",
"3.8-bookworm",
"3.7-bookworm",
"3.11-bullseye",
"3.10-bullseye",
"3.9-bullseye",
"3.8-bullseye",
"3.7-bullseye",
"3.11-buster",
"3.10-buster",
"3.9-buster",
"3.8-buster",
"3.7-buster"
"3.8-buster"
],
"build": {
"latest": "3.11-bookworm",
Expand All @@ -37,10 +34,6 @@
"linux/amd64",
"linux/arm64"
],
"3.7-bookworm": [
"linux/amd64",
"linux/arm64"
],
"3.11-bullseye": [
"linux/amd64",
"linux/arm64"
Expand All @@ -57,10 +50,6 @@
"linux/amd64",
"linux/arm64"
],
"3.7-bullseye": [
"linux/amd64",
"linux/arm64"
],
"3.11-buster": [
"linux/amd64"
],
Expand All @@ -72,9 +61,6 @@
],
"3.8-buster": [
"linux/amd64"
],
"3.7-buster": [
"linux/amd64"
]
},
"tags": [
Expand All @@ -96,9 +82,6 @@
"3.8-bookworm": [
"python:${VERSION}-3.8"
],
"3.7-bookworm": [
"python:${VERSION}-3.7"
],
"3.11-bullseye": [
"python:${VERSION}-3-bullseye",
"python:${VERSION}-bullseye"
Expand Down

0 comments on commit 731a6b5

Please sign in to comment.