[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-distutils-sig
Subject:    Re: [Distutils] PEP440: foo-X.Y.Z does not satisfy "foo>X.Y"?
From:       Marcus Smith <qwcode () gmail ! com>
Date:       2014-12-28 1:11:12
Message-ID: CAPYWazoh5_P_J0h=kqzKzpH5fnWieK1=9JkN74kjU0p1pNOkYw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> > but look at this (using setuptools 8)
> >
> >>>> '1.7.dev1' in pkg_resources.Requirement.parse('foo>=1.7')
> > False
> >>>> '1.7.dev1' in pkg_resources.Requirement.parse('foo<=1.7')
> > True
>
> I believe the first example is a consequence of the following two
> excerpts from the PEP [...] In both cases (by (2) above), you

are supposed to compare the
> candidate version "1.7.dev1" with the specified version "1.7".
>
>
yes, I agree with you.  :  )
my 2 examples weren't meant to exemplify the inconsistency I was referring
to.
they were intended to be response to you quoting the bit about "implicitly
excluded"
Because the 2nd example was True, they're not implicitly excluded.

For fear that my current point is lost now (since it's changed from the
original title), I'm going to start a new thread that sums it up real
brief...

Marcus

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span class=""> &gt; but look at this (using \
setuptools 8)<br> &gt;<br>
&gt;&gt;&gt;&gt; &#39;1.7.dev1&#39; in \
pkg_resources.Requirement.parse(&#39;foo&gt;=1.7&#39;)<br> &gt; False<br>
&gt;&gt;&gt;&gt; &#39;1.7.dev1&#39; in \
pkg_resources.Requirement.parse(&#39;foo&lt;=1.7&#39;)<br> &gt; True<br>
<br>
</span>I believe the first example is a consequence of the following two<br>
excerpts from the PEP [...] 
In both cases (by (2) above), you  </blockquote><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">are supposed to compare the<br> candidate version \
&quot;1.7.dev1&quot; with the specified version &quot;1.7&quot;.<br> <span \
class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>yes, \
I agree with you.   :   )<br></div><div>my 2 examples weren&#39;t meant to exemplify \
the inconsistency I was referring to.<br></div><div>they were intended to be response \
to you quoting the bit about &quot;implicitly excluded&quot;<br></div><div>Because \
the 2nd example was True, they&#39;re not implicitly \
excluded.<br></div><div><br></div></div>For fear that my current point is lost now \
(since it&#39;s changed from the original title), I&#39;m going to start a new thread \
that sums it up real brief...<br><br></div><div \
class="gmail_extra">Marcus<br></div><div class="gmail_extra"><br></div></div>



_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic