PEP 440 treats X.Y.Z.postN as a final release, so pip installs it without --pre
FactVerified 30 Sep 2026Holds anywhere
Fact. A statement and the evidence for it.
Statement#
X.Y.Z.postN is a final release under PEP 440, so a plain pip install picks it. X.Y.Z.postN.dev0 is a prerelease, and pip installs it only with --pre.
To publish per-commit builds that a plain pip install must not pick up, use the scheme <last tag>.postN.dev0.
Evidence#
Observer note, 2026-09-30. In dftracer, develop builds named <tag>.postN were picked up by a plain pip install dftracer, although the README said they needed --pre.
Also found by searching
- plain pip install picks up my nightly per-commit builds even though they should only install with --pre
- how do I version per-commit builds on PyPI so pip only installs them with --pre?
- is a .post release a prerelease under PEP 440, or do I need .dev suffix to hide nightly wheels from pip
- pip install dftracer picked up a develop build even though README says use --pre
- why does plain pip install grab 1.2.3.post5 version and not skip it as a prerelease
- how do I name per-commit builds so pip install ignores them without --pre?
- PEP 440 post release vs dev release: is .postN considered stable by pip and PyPI