Public bug reported: Noticed the following:
[09:48:13] <@harlowja> Python 2.6.6 (r266:84292, Dec 19 2012, 19:54:30) [09:48:13] <@harlowja> [GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2 [09:48:13] <@harlowja> Type "help", "copyright", "credits" or "license" for more information. [09:48:13] <@harlowja> >>> import pkg_resources [09:48:13] <@harlowja> >>> r = pkg_resources.Requirement.parse( 'requests>=1.2.1,<=2.2.1,!=2.4.0' ) [09:48:13] <@harlowja> >>> x = '2.4.3' [09:48:13] <@harlowja> >>> x in r [09:48:13] <@harlowja> True [09:48:33] <@harlowja> Python 2.7.10 (default, Jun 18 2015, 15:58:36) [09:48:33] <@harlowja> [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 [09:48:33] <@harlowja> Type "help", "copyright", "credits" or "license" for more information. [09:48:33] <@harlowja> >>> import pkg_resources [09:48:33] <@harlowja> >>> r = pkg_resources.Requirement.parse( 'requests>=1.2.1,<=2.2.1,!=2.4.0' ) [09:48:33] <@harlowja> >>> x = '2.4.3' [09:48:33] <@harlowja> >>> x in r [09:48:33] <@harlowja> False The 2.6 version is fixed by upgrading setuptools, so that it will then work like the 2.7 version. ** Affects: anvil Importance: Undecided Status: New ** Description changed: Noticed the following: [09:48:13] <@harlowja> Python 2.6.6 (r266:84292, Dec 19 2012, 19:54:30) [09:48:13] <@harlowja> [GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2 [09:48:13] <@harlowja> Type "help", "copyright", "credits" or "license" for more information. [09:48:13] <@harlowja> >>> import pkg_resources [09:48:13] <@harlowja> >>> r = pkg_resources.Requirement.parse( 'requests>=1.2.1,<=2.2.1,!=2.4.0' ) [09:48:13] <@harlowja> >>> x = '2.4.3' [09:48:13] <@harlowja> >>> x in r [09:48:13] <@harlowja> True [09:48:33] <@harlowja> Python 2.7.10 (default, Jun 18 2015, 15:58:36) [09:48:33] <@harlowja> [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 [09:48:33] <@harlowja> Type "help", "copyright", "credits" or "license" for more information. [09:48:33] <@harlowja> >>> import pkg_resources [09:48:33] <@harlowja> >>> r = pkg_resources.Requirement.parse( 'requests>=1.2.1,<=2.2.1,!=2.4.0' ) [09:48:33] <@harlowja> >>> x = '2.4.3' [09:48:33] <@harlowja> >>> x in r + [09:48:33] <@harlowja> False The 2.6 version is fixed by upgrading setuptools, so that it will then work like the 2.7 version. -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to anvil. https://bugs.launchpad.net/bugs/1489969 Title: Python2.6 pkg_resources allowing incompat versions Status in anvil: New Bug description: Noticed the following: [09:48:13] <@harlowja> Python 2.6.6 (r266:84292, Dec 19 2012, 19:54:30) [09:48:13] <@harlowja> [GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2 [09:48:13] <@harlowja> Type "help", "copyright", "credits" or "license" for more information. [09:48:13] <@harlowja> >>> import pkg_resources [09:48:13] <@harlowja> >>> r = pkg_resources.Requirement.parse( 'requests>=1.2.1,<=2.2.1,!=2.4.0' ) [09:48:13] <@harlowja> >>> x = '2.4.3' [09:48:13] <@harlowja> >>> x in r [09:48:13] <@harlowja> True [09:48:33] <@harlowja> Python 2.7.10 (default, Jun 18 2015, 15:58:36) [09:48:33] <@harlowja> [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 [09:48:33] <@harlowja> Type "help", "copyright", "credits" or "license" for more information. [09:48:33] <@harlowja> >>> import pkg_resources [09:48:33] <@harlowja> >>> r = pkg_resources.Requirement.parse( 'requests>=1.2.1,<=2.2.1,!=2.4.0' ) [09:48:33] <@harlowja> >>> x = '2.4.3' [09:48:33] <@harlowja> >>> x in r [09:48:33] <@harlowja> False The 2.6 version is fixed by upgrading setuptools, so that it will then work like the 2.7 version. To manage notifications about this bug go to: https://bugs.launchpad.net/anvil/+bug/1489969/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp