Skip to content

Commit

Permalink
🔥 Deprecate and remove Python 3.6 and 2.7 (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Nov 25, 2022
1 parent c30ac71 commit 568954d
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 43 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@ jobs:
python_version: "3.8"
- name: python3.7
python_version: "3.7"
- name: python3.6
python_version: "3.6"
- name: python3.9-alpine3.13
python_version: "3.8"
- name: python3.8-alpine3.11
python_version: "3.8"
- name: python3.7-alpine3.8
python_version: "3.7"
- name: python3.6-alpine3.8
python_version: "3.6"
fail-fast: true
runs-on: ubuntu-18.04
steps:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,12 @@ jobs:
python_version: "3.8"
- name: python3.7
python_version: "3.7"
- name: python3.6
python_version: "3.6"
- name: python3.9-alpine3.13
python_version: "3.9"
- name: python3.8-alpine3.11
python_version: "3.8"
- name: python3.7-alpine3.8
python_version: "3.7"
- name: python3.6-alpine3.8
python_version: "3.6"
fail-fast: true
runs-on: ubuntu-18.04
steps:
Expand Down
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
* [`python3.9`, `latest` _(Dockerfile)_](https://github.com/tiangolo/meinheld-gunicorn-flask-docker/blob/master/docker-images/python3.9.dockerfile)
* [`python3.8`, _(Dockerfile)_](https://github.com/tiangolo/meinheld-gunicorn-flask-docker/blob/master/docker-images/python3.8.dockerfile)
* [`python3.7`, _(Dockerfile)_](https://github.com/tiangolo/meinheld-gunicorn-flask-docker/blob/master/docker-images/python3.7.dockerfile)
* [`python3.6` _(Dockerfile)_](https://github.com/tiangolo/meinheld-gunicorn-flask-docker/blob/master/docker-images/python3.6.dockerfile)

## Discouraged tags

* [`python3.9-alpine3.13` _(Dockerfile)_](https://github.com/tiangolo/meinheld-gunicorn-flask-docker/blob/master/docker-images/python3.9-alpine3.13.dockerfile)
* [`python3.8-alpine3.11` _(Dockerfile)_](https://github.com/tiangolo/meinheld-gunicorn-flask-docker/blob/master/docker-images/python3.8-alpine3.11.dockerfile)
* [`python3.7-alpine3.8` _(Dockerfile)_](https://github.com/tiangolo/meinheld-gunicorn-flask-docker/blob/master/docker-images/python3.7-alpine3.8.dockerfile)
* [`python3.6-alpine3.8` _(Dockerfile)_](https://github.com/tiangolo/meinheld-gunicorn-flask-docker/blob/master/docker-images/python3.6-alpine3.8.dockerfile)

To learn more about why Alpine images are discouraged for Python read the note at the end: [🚨 Alpine Python Warning](#-alpine-python-warning).

## Deprecated
## Deprecated tags

These tags are no longer supported:
🚨 These tags are no longer supported or maintained, they are removed from the GitHub repository, but the last version pushed is still available in Docker Hub.

* [`python2.7` _(Dockerfile)_](https://github.com/tiangolo/meinheld-gunicorn-flask-docker/blob/master/docker-images/python2.7.dockerfile)
* `python3.6`
* `python3.6-alpine3.8`
* `python2.7`

The last date tags for deprecated Python versions are:

* `python3.6-2022-11-25`
* `python3.6-alpine3.8-2022-11-25`
* `python2.7-2022-11-25`

---

Expand Down
11 changes: 0 additions & 11 deletions docker-images/python2.7.dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions docker-images/python3.6-alpine3.8.dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions docker-images/python3.6.dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Sebastián Ramírez <[email protected]>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.6"
python = "^3.7"
docker = "^5.0.3"
pytest = "^7.0.1"

Expand Down
2 changes: 0 additions & 2 deletions scripts/process_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
{"NAME": "python3.9", "PYTHON_VERSION": "3.9"},
{"NAME": "python3.8", "PYTHON_VERSION": "3.8"},
{"NAME": "python3.7", "PYTHON_VERSION": "3.7"},
{"NAME": "python3.6", "PYTHON_VERSION": "3.6"},
{"NAME": "python3.9-alpine3.13", "PYTHON_VERSION": "3.9"},
{"NAME": "python3.8-alpine3.11", "PYTHON_VERSION": "3.8"},
{"NAME": "python3.7-alpine3.8", "PYTHON_VERSION": "3.7"},
{"NAME": "python3.6-alpine3.8", "PYTHON_VERSION": "3.6"},
]

start_with = os.environ.get("START_WITH")
Expand Down

0 comments on commit 568954d

Please sign in to comment.