Menu

Your Python version is pinned in 7 places. Here they are.
📰

Your Python version is pinned in 7 places. Here they are.

DEV Community: docker·Versyka·about 17 hours ago
#rnfazRkV
#devtodocker#devto#dev#python#include
Reading 0:00
15s threshold

Versyka

Posted on Dec 5

AI-assisted

Stop: your Python version hides in 7 places. Don't miss 1. Miss one and you get the worst kind of bug: CI on 3.12, production on 3.10, and green tests in the wrong place.

You won't have all seven. You'll have three or four, and that's exactly how one gets missed.

The seven

.python-version : pyenv, uv and many editors read it.

runtime.txt : Heroku-style platforms ( python-3.10.14 ).

Dockerfile : FROM python:3.10-slim . Keep the variant ( -slim , -alpine , -bookworm ) when you change the version.

CI workflows : python-version: "3.10" in setup-python , and matrix entries.

pyproject.toml : requires-python = ">=3.10,<3.11" can exclude the new version.

Pipfile : python_version = "3.10" .

.tool-versions : asdf and mise.

Also worth a search: tox.ini / noxfile.py environments, setup.cfg python_requires , serverless configs ( runtime: python3.10 ).

One search for all of them

grep -rnE "3\.10|python3\.10|py310" \ --include=.python-version --include=runtime.txt…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.