Skip to content

Comments

Update pip pre-release compatibility information#17788

Merged
zanieb merged 5 commits intoastral-sh:mainfrom
notatallshaw:update-pre-release-compatability-information
Jan 31, 2026
Merged

Update pip pre-release compatibility information#17788
zanieb merged 5 commits intoastral-sh:mainfrom
notatallshaw:update-pre-release-compatability-information

Conversation

@notatallshaw
Copy link
Collaborator

As of pip 26.0 I believe all outstanding bugs and questions about pre-release behavior in pip are resolved.

Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@notatallshaw notatallshaw force-pushed the update-pre-release-compatability-information branch from 1a1c3b2 to b0289ec Compare January 31, 2026 21:00
@notatallshaw notatallshaw force-pushed the update-pre-release-compatability-information branch from b0289ec to 787dcda Compare January 31, 2026 21:01
1. If the package is a direct dependency, and its version markers include a pre-release specifier
(e.g., `flask>=2.0.0rc1`).
1. If _all_ published versions of a package are pre-releases.
2. If _all_ published versions of a package are pre-releases.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was previously relying on the renderer to change this to the next number

Comment on lines 56 to 57
package. `pip`, meanwhile, respects pre-release identifiers in transitive dependencies, and allows
pre-releases of transitive dependencies if no stable versions match the dependency requirements.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we somehow note that this is a recent development? It'll be a while before people are on the new pip version. Maybe something like "In the past, this behavior was unreliable, but as of pip ... the behavior is consistent."

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't think of a non-clunky way to do this so I just added a note at the end of the paragraph.

([#1641](https://github.com/astral-sh/uv/issues/1641#issuecomment-1981402429)).
package. Meanwhile `pip`, respects pre-release identifiers in transitive dependencies, and allows
pre-releases of transitive dependencies if no stable versions match the dependency requirements.
Note: this behavior was made consistent in `pip` 26.0.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're going to write it in this style, prefixed by "Note: " (which I don't really prefer, but truly don't have strong feelings about at all) then we should use an admonition, e.g.,

!!! note

    Prior to pip 26.0, this behavior was not consistent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I don't prefer adding a note, but trying to add it in the sentence came off as clunky.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@zanieb zanieb merged commit ad3ad22 into astral-sh:main Jan 31, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants