Hello community, here is the log from the commit of package python-blist for openSUSE:Factory checked in at 2018-08-08 14:52:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-blist (Old) and /work/SRC/openSUSE:Factory/.python-blist.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-blist" Wed Aug 8 14:52:53 2018 rev:5 rq:627814 version:1.3.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-blist/python-blist.changes 2017-05-08 19:02:54.812996034 +0200 +++ /work/SRC/openSUSE:Factory/.python-blist.new/python-blist.changes 2018-08-08 14:53:48.797581061 +0200 @@ -1,0 +2,6 @@ +Tue Aug 7 07:54:37 UTC 2018 - [email protected] + +- Add patch to build with python3.7 + * 0001-Fix-compatibility-for-Python-3.7.patch + +------------------------------------------------------------------- New: ---- 0001-Fix-compatibility-for-Python-3.7.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-blist.spec ++++++ --- /var/tmp/diff_new_pack.ASOv5H/_old 2018-08-08 14:53:49.221581761 +0200 +++ /var/tmp/diff_new_pack.ASOv5H/_new 2018-08-08 14:53:49.221581761 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-blist # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%bcond_without tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-blist Version: 1.3.6 @@ -25,13 +23,13 @@ Summary: A list-like type with better asymptotic performance License: BSD-3-Clause Group: Development/Languages/Python -Url: http://stutzbachenterprises.com/blist/ +URL: http://stutzbachenterprises.com/blist/ Source: https://files.pythonhosted.org/packages/source/b/blist/blist-%{version}.tar.gz -BuildRequires: fdupes -BuildRequires: python-rpm-macros +Patch0: 0001-Fix-compatibility-for-Python-3.7.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: fdupes +BuildRequires: python-rpm-macros %python_subpackages %description @@ -42,23 +40,22 @@ %prep %setup -q -n blist-%{version} +%patch0 -p1 %build -export CFLAGS="%{optflags}" +export CFLAGS="%{optflags} -fno-strict-aliasing" %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} -%if %{with tests} %check %python_exec setup.py test -%endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst +%license LICENSE +%doc README.rst %{python_sitearch}/blist-%{version}-py*.egg-info %{python_sitearch}/blist/ ++++++ 0001-Fix-compatibility-for-Python-3.7.patch ++++++ >From 0e5c8db6965e203b40739914b9714010010ccce0 Mon Sep 17 00:00:00 2001 From: Felix Yan <[email protected]> Date: Tue, 3 Jul 2018 03:04:52 +0800 Subject: [PATCH] Fix compatibility for Python 3.7 --- blist/_sortedlist.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blist/_sortedlist.py b/blist/_sortedlist.py index b34f69e..d6143c4 100644 --- a/blist/_sortedlist.py +++ b/blist/_sortedlist.py @@ -420,7 +420,10 @@ class _setmixin(object): def __iter__(self): it = super(_setmixin, self).__iter__() while True: - item = next(it) + try: + item = next(it) + except StopIteration: + return n = len(self) yield item if n != len(self): -- 2.18.0.rc2
