Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpecifierSet.contains's installed kwarg not following PEP 440 #854

Open
gsnedders opened this issue Nov 6, 2024 · 0 comments
Open

SpecifierSet.contains's installed kwarg not following PEP 440 #854

gsnedders opened this issue Nov 6, 2024 · 0 comments

Comments

@gsnedders
Copy link
Contributor

#505 / #515 added a installed kwarg to SpecifierSet.contains.

PER 440 says:

Pre-releases of any kind, including developmental releases, are implicitly excluded from all version specifiers, unless they are already present on the system, explicitly requested by the user, or if the only available version that satisfies the version specifier is a pre-release.

This implies that SpecifierSet(">=1,<2").contains('1.5a1', installed=True) should be True. However, this returns False.

(The docstring should also be updated to document the installed kwarg!)

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

No branches or pull requests

1 participant