Hello community,
here is the log from the commit of package python3-setuptools for
openSUSE:Factory checked in at 2015-06-17 16:16:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-setuptools (Old)
and /work/SRC/openSUSE:Factory/.python3-setuptools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-setuptools"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-setuptools/python3-setuptools.changes
2015-06-01 09:44:06.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python3-setuptools.new/python3-setuptools.changes
2015-06-17 16:16:13.000000000 +0200
@@ -1,0 +2,11 @@
+Sun Jun 14 06:50:58 UTC 2015 - [email protected]
+
+- update to version 17.1.1:
+ * Backed out unintended changes to pkg_resources, restoring removal
+ of deprecated imp module
+
+- changes from version 17.1:
+ * Issue #380: Add support for range operators on environment marker
+ evaluation.
+
+-------------------------------------------------------------------
Old:
----
setuptools-17.0.tar.gz
New:
----
setuptools-17.1.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-setuptools.spec ++++++
--- /var/tmp/diff_new_pack.2EQZ6B/_old 2015-06-17 16:16:14.000000000 +0200
+++ /var/tmp/diff_new_pack.2EQZ6B/_new 2015-06-17 16:16:14.000000000 +0200
@@ -17,7 +17,7 @@
Name: python3-setuptools
-Version: 17.0
+Version: 17.1.1
Release: 0
Url: http://pypi.python.org/pypi/setuptools
Summary: Easily download, build, install, upgrade, and uninstall Python
packages
++++++ setuptools-17.0.tar.gz -> setuptools-17.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-17.0/CHANGES.txt
new/setuptools-17.1.1/CHANGES.txt
--- old/setuptools-17.0/CHANGES.txt 2015-05-28 23:53:55.000000000 +0200
+++ new/setuptools-17.1.1/CHANGES.txt 2015-06-08 19:28:47.000000000 +0200
@@ -2,6 +2,21 @@
CHANGES
=======
+------
+17.1.1
+------
+
+* Backed out unintended changes to pkg_resources, restoring removal of
+ deprecated imp module (`ref
+
<https://bitbucket.org/pypa/setuptools/commits/f572ec9563d647fa8d4ffc534f2af8070ea07a8b#comment-1881283>`_).
+
+----
+17.1
+----
+
+* Issue #380: Add support for range operators on environment
+ marker evaluation.
+
----
17.0
----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-17.0/PKG-INFO
new/setuptools-17.1.1/PKG-INFO
--- old/setuptools-17.0/PKG-INFO 2015-05-29 04:22:34.000000000 +0200
+++ new/setuptools-17.1.1/PKG-INFO 2015-06-08 19:36:29.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: setuptools
-Version: 17.0
+Version: 17.1.1
Summary: Easily download, build, install, upgrade, and uninstall Python
packages
Home-page: https://bitbucket.org/pypa/setuptools
Author: Python Packaging Authority
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-17.0/ez_setup.py
new/setuptools-17.1.1/ez_setup.py
--- old/setuptools-17.0/ez_setup.py 2015-05-28 23:54:28.000000000 +0200
+++ new/setuptools-17.1.1/ez_setup.py 2015-06-08 19:36:24.000000000 +0200
@@ -30,7 +30,7 @@
except ImportError:
USER_SITE = None
-DEFAULT_VERSION = "17.0"
+DEFAULT_VERSION = "17.1.1"
DEFAULT_URL = "https://pypi.python.org/packages/source/s/setuptools/"
DEFAULT_SAVE_DIR = os.curdir
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-17.0/pkg_resources/__init__.py
new/setuptools-17.1.1/pkg_resources/__init__.py
--- old/setuptools-17.0/pkg_resources/__init__.py 2015-05-28
23:53:38.000000000 +0200
+++ new/setuptools-17.1.1/pkg_resources/__init__.py 2015-06-08
19:24:14.000000000 +0200
@@ -21,7 +21,7 @@
import io
import time
import re
-import imp
+import types
import zipfile
import zipimport
import warnings
@@ -39,6 +39,12 @@
import textwrap
from pkgutil import get_importer
+try:
+ import _imp
+except ImportError:
+ # Python 3.2 compatibility
+ import imp as _imp
+
PY3 = sys.version_info > (3,)
PY2 = not PY3
@@ -1489,6 +1495,10 @@
'in': lambda x, y: x in y,
'==': operator.eq,
'!=': operator.ne,
+ '<': operator.lt,
+ '>': operator.gt,
+ '<=': operator.le,
+ '>=': operator.ge,
}
if hasattr(symbol, 'or_test'):
ops[symbol.or_test] = cls.test
@@ -2163,7 +2173,7 @@
return None
module = sys.modules.get(packageName)
if module is None:
- module = sys.modules[packageName] = imp.new_module(packageName)
+ module = sys.modules[packageName] = types.ModuleType(packageName)
module.__path__ = []
_set_parent_ns(packageName)
elif not hasattr(module,'__path__'):
@@ -2182,7 +2192,7 @@
def declare_namespace(packageName):
"""Declare that package 'packageName' is a namespace package"""
- imp.acquire_lock()
+ _imp.acquire_lock()
try:
if packageName in _namespace_packages:
return
@@ -2209,18 +2219,18 @@
_handle_ns(packageName, path_item)
finally:
- imp.release_lock()
+ _imp.release_lock()
def fixup_namespace_packages(path_item, parent=None):
"""Ensure that previously-declared namespace packages include path_item"""
- imp.acquire_lock()
+ _imp.acquire_lock()
try:
for package in _namespace_packages.get(parent,()):
subpath = _handle_ns(package, path_item)
if subpath:
fixup_namespace_packages(subpath, package)
finally:
- imp.release_lock()
+ _imp.release_lock()
def file_ns_handler(importer, path_item, packageName, module):
"""Compute an ns-package subpath for a filesystem or zipfile importer"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-17.0/pkg_resources/api_tests.txt
new/setuptools-17.1.1/pkg_resources/api_tests.txt
--- old/setuptools-17.0/pkg_resources/api_tests.txt 2015-05-10
00:36:35.000000000 +0200
+++ new/setuptools-17.1.1/pkg_resources/api_tests.txt 2015-06-08
19:24:12.000000000 +0200
@@ -364,9 +364,6 @@
>>> print(im("'x'=='x' or os.open('foo')=='y'")) # no short-circuit!
Language feature not supported in environment markers
- >>> print(im("'x' < 'y'"))
- '<' operator not allowed in environment markers
-
>>> print(im("'x' < 'y' < 'z'"))
Chained comparison not allowed in environment markers
@@ -417,3 +414,9 @@
>>> em("'yx' in 'x'")
False
+
+ >>> em("python_version >= '2.6'")
+ True
+
+ >>> em("python_version > '2.5'")
+ True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-17.0/pkg_resources/tests/test_markers.py
new/setuptools-17.1.1/pkg_resources/tests/test_markers.py
--- old/setuptools-17.0/pkg_resources/tests/test_markers.py 1970-01-01
01:00:00.000000000 +0100
+++ new/setuptools-17.1.1/pkg_resources/tests/test_markers.py 2015-06-08
19:24:12.000000000 +0200
@@ -0,0 +1,16 @@
+try:
+ import unittest.mock as mock
+except ImportError:
+ import mock
+
+from pkg_resources import evaluate_marker
+
+
[email protected]('pkg_resources.MarkerEvaluation.values',
+ python_full_version=mock.Mock(return_value='2.7.10'))
+def test_lexicographic_ordering():
+ """
+ Although one might like 2.7.10 to be greater than 2.7.3,
+ the marker spec only supports lexicographic ordering.
+ """
+ assert evaluate_marker("python_full_version > '2.7.3'") is False
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-17.0/setuptools/version.py
new/setuptools-17.1.1/setuptools/version.py
--- old/setuptools-17.0/setuptools/version.py 2015-05-28 23:54:28.000000000
+0200
+++ new/setuptools-17.1.1/setuptools/version.py 2015-06-08 19:36:24.000000000
+0200
@@ -1 +1 @@
-__version__ = '17.0'
+__version__ = '17.1.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-17.0/setuptools.egg-info/PKG-INFO
new/setuptools-17.1.1/setuptools.egg-info/PKG-INFO
--- old/setuptools-17.0/setuptools.egg-info/PKG-INFO 2015-05-29
04:22:33.000000000 +0200
+++ new/setuptools-17.1.1/setuptools.egg-info/PKG-INFO 2015-06-08
19:36:28.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: setuptools
-Version: 17.0
+Version: 17.1.1
Summary: Easily download, build, install, upgrade, and uninstall Python
packages
Home-page: https://bitbucket.org/pypa/setuptools
Author: Python Packaging Authority
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-17.0/setuptools.egg-info/SOURCES.txt
new/setuptools-17.1.1/setuptools.egg-info/SOURCES.txt
--- old/setuptools-17.0/setuptools.egg-info/SOURCES.txt 2015-05-29
04:22:34.000000000 +0200
+++ new/setuptools-17.1.1/setuptools.egg-info/SOURCES.txt 2015-06-08
19:36:29.000000000 +0200
@@ -44,6 +44,7 @@
pkg_resources/_vendor/packaging/specifiers.py
pkg_resources/_vendor/packaging/version.py
pkg_resources/tests/__init__.py
+pkg_resources/tests/test_markers.py
pkg_resources/tests/test_pkg_resources.py
pkg_resources/tests/test_resources.py
setuptools/__init__.py