[Python-ideas] Support 1.x notation in version specifiers
Oleg Broytman
phd at phdru.name
Tue May 5 10:21:57 CEST 2015
Hi!
On Sat, May 02, 2015 at 09:48:42AM +0200, anatoly techtonik <techtonik at gmail.com> wrote:
> pip team said they won't support setting limit for major version
> of package being installed in the way below until it is supported
> by PEP 440.
>
> pip install patch==1.x
This syntax (1.x) is even less intuitive for me.
> The current way ==1.* conflicts with system shell expansion
Other comparison operators (< and >) conflict with shell redirection.
And nobody cares because one can always quote shell metacharacters.
pip install patch==1.\*
pip install patch=='1.*'
pip install 'patch==1.*'
pip install 'patch>=1,<2'
> and the other way is not known / not intuitive.
>
> https://github.com/pypa/pip/issues/2737#issuecomment-97621684
> --
> anatoly t.
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas
mailing list