> On 29 Jan 2019, at 23:19, Donald Stufft <don...@stufft.io> wrote: > >> On Jan 29, 2019, at 10:15 AM, Xavier Fernandez <xav.fernan...@gmail.com> >> wrote: >> >> I agree that such specifier would make little sense but why add a new syntax >> "foo-1 @ url" when "foo==1 @ url" (where ==1 is a version specifier as >> defined in PEP 508) would perfectly fit the bill ? > > > Well foo-1 wouldn’t work great because you can’t disambiguate between (“foo”, > “1”) and (“foo-1”, None). But the reason for using a different syntax would > be so people didn’t confuse the concept with the idea of version specifiers, > since >=1.0 doesn’t make sense, if we allow ==10, then people will assume > they can add >=10.0 and willet confused when it doesn’t work. A different > syntax side steps that issue.
A >=10.0 specifier could still work, I think. Resolvers are implemented to calculate the union of specifiers, so any specifiers would do. Of course it does not make perfect sense, but I guess it could be interpreted as “you can find the package here, and I promise it satisfies the given specifiers. TP > -- > Distutils-SIG mailing list -- distutils-sig@python.org > To unsubscribe send an email to distutils-sig-le...@python.org > https://mail.python.org/mailman3/lists/distutils-sig.python.org/ > Message archived at > https://mail.python.org/archives/list/distutils-sig@python.org/message/CTQH6ZR3FVCODND3NXQC34U6O4J6AVTM/
-- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-le...@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/3LMJRZSRFC5ATDEDFZF7YM6J2PD77XTY/