[packages/python-more_itertools] - updated to 5.0.0 (the last release supporting python 2.7) - removed obsolete tests patch

qboosh qboosh at pld-linux.org
Wed Oct 23 19:47:18 CEST 2019


commit 48249ae495ac9bd29811cb32864f151427a17ddb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Oct 23 19:50:51 2019 +0200

    - updated to 5.0.0 (the last release supporting python 2.7)
    - removed obsolete tests patch

 python-more_itertools-tests.patch | 14 --------------
 python-more_itertools.spec        | 10 ++++------
 2 files changed, 4 insertions(+), 20 deletions(-)
---
diff --git a/python-more_itertools.spec b/python-more_itertools.spec
index 2881d03..90f2858 100644
--- a/python-more_itertools.spec
+++ b/python-more_itertools.spec
@@ -8,14 +8,13 @@
 Summary:	More routines for operating on iterables, beyond itertools
 Summary(pl.UTF-8):	Uzupełniające itertools dodatkowe funkcje do operowania na zmiennych iterowalnych
 Name:		python-more_itertools
-Version:	4.3.0
+Version:	5.0.0
 Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/more_itertools/
 Source0:	https://files.pythonhosted.org/packages/source/m/more_itertools/more-itertools-%{version}.tar.gz
-# Source0-md5:	42157ef9b677bdf6d3609ed6eadcbd4a
-Patch0:		%{name}-tests.patch
+# Source0-md5:	f2ea58aa336ce6c13b7b225b3bbe305d
 URL:		https://github.com/erikrose/more-itertools
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -27,7 +26,7 @@ BuildRequires:	python-six >= 1.0.0
 %endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-modules >= 1:3.4
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-six >= 1.0.0
@@ -57,7 +56,7 @@ przepisy i procedury do pracy z pythonowymi zmiennymi iterowalnymi.
 Summary:	More routines for operating on iterables, beyond itertools
 Summary(pl.UTF-8):	Uzupełniające itertools dodatkowe funkcje do operowania na zmiennych iterowalnych
 Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.2
+Requires:	python3-modules >= 1:3.4
 
 %description -n python3-more_itertools
 Python's itertools library is a gem - you can compose elegant
@@ -84,7 +83,6 @@ Dokumentacja API modułu Pythona more-itertools.
 
 %prep
 %setup -q -n more-itertools-%{version}
-%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/python-more_itertools-tests.patch b/python-more_itertools-tests.patch
deleted file mode 100644
index b3b5290..0000000
--- a/python-more_itertools-tests.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-10**10 is too large for 32-bit python
---- more-itertools-4.3.0/more_itertools/tests/test_more.py.orig	2018-07-15 03:49:34.000000000 +0200
-+++ more-itertools-4.3.0/more_itertools/tests/test_more.py	2018-11-24 22:51:05.704438058 +0100
-@@ -1977,8 +1977,8 @@
-             self.assertEqual(actual, expected)
- 
-     def test_efficient_reversal(self):
--        iterable = range(10 ** 10)  # Is efficiently reversible
--        target = 10 ** 10 - 2
-+        iterable = range(10 ** 9)  # Is efficiently reversible
-+        target = 10 ** 9 - 2
-         pred = lambda x: x == target  # Find-able from the right
-         actual = next(mi.rlocate(iterable, pred))
-         self.assertEqual(actual, target)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-more_itertools.git/commitdiff/48249ae495ac9bd29811cb32864f151427a17ddb



More information about the pld-cvs-commit mailing list