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

Malformed version requirement specifications can result in unexpected version resolutions #11956

Closed
1 task done
jtilahun opened this issue Apr 13, 2023 · 1 comment
Closed
1 task done
Labels
resolution: duplicate Duplicate of an existing issue/PR

Comments

@jtilahun
Copy link

jtilahun commented Apr 13, 2023

Description

Hi, I wanted to open an issue to raise an unexpected observation regarding version resolution. Earlier discussion stemming from this can be found in other GitHub issues:

Basically, specifying

pandas-stubs>=1.5.3<2.0.0

instead of

pandas-stubs>=1.5.3,<2.0.0

as the requirement resolves the version of pandas-stubs to version 2.0.0 instead of version 1.5.3, which was unintended, and the malformed version requirement specification had undesirable effects. It seems that pip silently takes just the lower bound from the specification.

Expected behavior

I expected pip to catch the malformed version requirement specification during validation instead of silently taking just the lower bound.

pip version

20.0.2

Python version

3.8.10

OS

Linux Ubuntu 20.04

How to Reproduce

  1. Make a malformed version requirement specification, such as the one described in the description.
  2. Use that malformed specification and see that it does not get caught in validation.

Output

No response

Code of Conduct

@jtilahun jtilahun added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Apr 13, 2023
@uranusjr
Copy link
Member

#11715

@uranusjr uranusjr closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2023
@uranusjr uranusjr added resolution: duplicate Duplicate of an existing issue/PR and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Apr 13, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants