Malformed version requirement specifications can result in unexpected version resolutions #11956
Closed
1 task done
Labels
resolution: duplicate
Duplicate of an existing issue/PR
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:
DeprecationWarning
regarding the use ofLegacyVersion
pandas-dev/pandas-stubs#612Basically, specifying
instead of
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 thatpip
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
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: