Python 3.8 end of life

Python 3.8 reached its end of life on Oct 7, 2024. It no longer gets security fixes, and since your app keeps running, nothing tells you.

Ended Oct 7, 2024Move to Python 3.12

What to move to: Python 3.12

Python 3.12 is the oldest version still supported for at least another year, until Oct 31, 2028. Jumping further than you need adds risk for no benefit; jumping less means doing this again soon.

Where the version hides

The same version is usually written in several files, and they all have to change together. Examples of each, moving to Python 3.12:

File (example)BeforeAfter
.python-version3.83.12
runtime.txtpython-3.8.0python-3.12
Dockerfilepython:3.8-slimpython:3.12-slim
.github/workflows/ci.ymlpython-version: 3.8python-version: 3.12

Doing it yourself

  1. Search the repository for 3.8 in version files, Dockerfiles and CI workflows, not just the main manifest.
  2. Check your Dockerfile's own pip install lines too: a version pinned there may have no build for the new Python, even when requirements.txt is fine.
  3. Keep or update any test matrix that lists several versions on purpose; that's a choice, not a pin.
  4. Run your tests on the old version first, then on the new one, so failures that were already there aren't blamed on the upgrade.

Let Versyka open the pull request

Versyka finds every place Python 3.8 is set in your repositories, changes them together to Python 3.12, and runs your checks on the old version and then the new one in a sandbox. The pull request opens only if nothing new fails, and lists anything it left for you to decide. It's a version upgrade, so it's unlimited on every plan, the free one included.

Start free with GitHub How it works in the docs

Questions

When is Python 3.8 end of life?

Oct 7, 2024. It has ended, so it no longer gets security fixes.

What should I upgrade Python 3.8 to?

Python 3.12, the oldest version still supported for at least another year (until Oct 31, 2028). It's the smallest jump that won't need moving again soon.

Where is the Python version set in a project?

Usually in several places at once: .python-version, runtime.txt, a Dockerfile's FROM python: line, CI workflows (python-version:), and requires-python in pyproject.toml. All of them need to change together.

Can Versyka upgrade Python 3.8 for me?

Yes. It changes every pin together, runs your checks on the old version and then the new one, and opens a pull request only if nothing new fails. It's unlimited on every plan, the free one included.

Other Python versions

Python 3.9 · Python 3.10 · Python 3.11 · Python 3.12 · Python 3.13 · Python 3.14 · All versions