Hello community, here is the log from the commit of package python3 for openSUSE:Factory checked in at 2014-03-06 19:18:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3 (Old) and /work/SRC/openSUSE:Factory/.python3.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3" Changes: -------- --- /work/SRC/openSUSE:Factory/python3/python3-base.changes 2014-02-26 06:55:28.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3.new/python3-base.changes 2014-03-06 19:18:13.000000000 +0100 @@ -1,0 +2,10 @@ +Thu Feb 27 14:08:40 UTC 2014 - jmate...@suse.com + +- update to 3.4.0 rc2 + * pre-release bugfixes + * improvements to asyncio library +- drop upstreamed tracemalloc_gcov.patch +- python-3.4rc2-importlib.patch fixes backwards-incompatibility + in the reworked importlib module that blocks build of vim + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/python3/python3.changes 2014-02-26 06:55:28.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3.new/python3.changes 2014-03-06 19:18:13.000000000 +0100 @@ -1,0 +2,7 @@ +Thu Feb 27 14:07:55 UTC 2014 - jmate...@suse.com + +- update to 3.4.0 rc2 + * for full changelog, see python3-base +- hard Require for python3-pip, see what happens + +------------------------------------------------------------------- Old: ---- Python-3.4.0b3.tar.xz tracemalloc_gcov.patch New: ---- Python-3.4.0rc2.tar.xz python-3.4rc2-importlib.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-base.spec ++++++ --- /var/tmp/diff_new_pack.7hMKO4/_old 2014-03-06 19:18:15.000000000 +0100 +++ /var/tmp/diff_new_pack.7hMKO4/_new 2014-03-06 19:18:15.000000000 +0100 @@ -36,9 +36,9 @@ Summary: Python3 Interpreter License: Python-2.0 Group: Development/Languages/Python -Version: 3.4.0~b3 +Version: 3.4.0~rc2 Release: 0 -%define tarversion 3.4.0b3 +%define tarversion 3.4.0rc2 %define tarname Python-%{tarversion} # python 3.1 didn't have a separate python-base, so it is wrongly @@ -81,8 +81,8 @@ Patch12: python-3.3.3-skip-distutils-test_sysconfig_module.patch # Add support for ppc64le (ELFv2) to libffi copy for ctypes Patch13: libffi-ppc64le.diff -# disable #pragma in tracemalloc that causes profile-opt to fail -Patch14: tracemalloc_gcov.patch +# fix backwards compatibility in importlib +Patch14: python-3.4rc2-importlib.patch ### COMMON-PATCH-END ### BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ python3-doc.spec ++++++ --- /var/tmp/diff_new_pack.7hMKO4/_old 2014-03-06 19:18:15.000000000 +0100 +++ /var/tmp/diff_new_pack.7hMKO4/_new 2014-03-06 19:18:15.000000000 +0100 @@ -27,7 +27,7 @@ Release: 0 BuildArch: noarch # we use "tarversion" for Python tarball, to be in sync with other specs... -%define tarversion 3.4.0b3 +%define tarversion 3.4.0rc2 %define tarname Python-%{tarversion} # ...and "docversion" for version of doc tarballs, which can be lower %define docversion 3.4.0b2 @@ -68,8 +68,8 @@ Patch12: python-3.3.3-skip-distutils-test_sysconfig_module.patch # Add support for ppc64le (ELFv2) to libffi copy for ctypes Patch13: libffi-ppc64le.diff -# disable #pragma in tracemalloc that causes profile-opt to fail -Patch14: tracemalloc_gcov.patch +# fix backwards compatibility in importlib +Patch14: python-3.4rc2-importlib.patch ### COMMON-PATCH-END ### ### COMMON-DEF-BEGIN ### ++++++ python3.spec ++++++ --- /var/tmp/diff_new_pack.7hMKO4/_old 2014-03-06 19:18:15.000000000 +0100 +++ /var/tmp/diff_new_pack.7hMKO4/_new 2014-03-06 19:18:15.000000000 +0100 @@ -40,12 +40,13 @@ Summary: Python3 Interpreter License: Python-2.0 Group: Development/Languages/Python -Version: 3.4.0~b3 +Version: 3.4.0~rc2 Release: 0 -%define tarversion 3.4.0b3 +%define tarversion 3.4.0rc2 %define tarname Python-%{tarversion} Requires: python3-base = %{version} +Requires: python3-pip Source0: http://www.python.org/ftp/python/3.4.0/%{tarname}.tar.xz Source1: baselibs.conf @@ -79,8 +80,8 @@ Patch12: python-3.3.3-skip-distutils-test_sysconfig_module.patch # Add support for ppc64le (ELFv2) to libffi copy for ctypes Patch13: libffi-ppc64le.diff -# disable #pragma in tracemalloc that causes profile-opt to fail -Patch14: tracemalloc_gcov.patch +# fix backwards compatibility in importlib +Patch14: python-3.4rc2-importlib.patch ### COMMON-PATCH-END ### BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ python-3.4rc2-importlib.patch ++++++ # HG changeset patch # User Brett Cannon <br...@python.org> # Date 1393457209 18000 # Node ID 5dec1604322cc8853757e309de78b466ceb54d24 # Parent 1a38fa1f701d548a8edc297b635628f62f65c91d Issue #20763: Fix importlib.machinery.PathFinder to support PathEntryFinder instances which only define find_module(). Reported by Yukihiro Nakadaira. diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -1869,7 +1869,7 @@ class PathFinder: loader, portions = finder.find_loader(fullname) else: loader = finder.find_module(fullname) - portions = None + portions = [] if loader is not None: return spec_from_loader(fullname, loader) spec = ModuleSpec(fullname, None) diff --git a/Lib/test/test_importlib/import_/test_path.py b/Lib/test/test_importlib/import_/test_path.py --- a/Lib/test/test_importlib/import_/test_path.py +++ b/Lib/test/test_importlib/import_/test_path.py @@ -116,5 +116,29 @@ Frozen_FinderTests, Source_FinderTests = FinderTests, importlib=importlib, machinery=machinery) +class PathEntryFinderTests: + + def test_finder_with_failing_find_module(self): + # PathEntryFinder with find_module() defined should work. + # Issue #20763. + class Finder: + path_location = 'test_finder_with_find_module' + def __init__(self, path): + if path != self.path_location: + raise ImportError + + @staticmethod + def find_module(fullname): + return None + + + with util.import_state(path=[Finder.path_location]+sys.path[:], + path_hooks=[Finder]): + self.machinery.PathFinder.find_spec('importlib') + +Frozen_PEFTests, Source_PEFTests = util.test_both( + PathEntryFinderTests, machinery=machinery) + + if __name__ == '__main__': unittest.main() diff --git a/Python/importlib.h b/Python/importlib.h --- a/Python/importlib.h +++ b/Python/importlib.h @@ -3365,7 +3365,7 @@ const unsigned char _Py_M__importlib[] = 116,0,0,124,2,0,100,1,0,131,2,0,114,39,0,124, 2,0,106,1,0,124,1,0,131,1,0,92,2,0,125,3, 0,125,4,0,110,21,0,124,2,0,106,2,0,124,1,0, - 131,1,0,125,3,0,100,0,0,125,4,0,124,3,0,100, + 131,1,0,125,3,0,103,0,0,125,4,0,124,3,0,100, 0,0,107,9,0,114,85,0,116,3,0,124,1,0,124,3, 0,131,2,0,83,116,4,0,124,1,0,100,0,0,131,2, 0,125,5,0,124,4,0,124,5,0,95,5,0,124,5,0, -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org