pip
pip copied to clipboard
Missing Comma Should Warn/Error
Description
Recently, I wanted to limit a plotly version, which I did with plotly>=5.24.0<6.
This is missing a comma and should say plotly>=5.24.0,<6.
However, it installed plotly>6 without error or warning.
Expected behavior
I think it would be best if this generated an error or warning. Ideally, this would be an error, but if 5.24.0<6 is a valid version, a warning would also be possible.
This could be extended to other cases, such as plotly>=5.24.0<6.
pip version
pip 24.0
Python version
Python 3.11.7
OS
Linux 6.1.0-34-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.135-1 (2025-04-25) x86_64 GNU/Linux
Code of Conduct
- [x] I agree to follow the PSF Code of Conduct.