[packages/python-future] - updated to 0.18.2

hawk hawk at pld-linux.org
Thu Dec 12 14:26:21 CET 2019


commit 32cf62683e3a21e6d16ecbc2b2fcbb2b94f43652
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Thu Dec 12 14:24:31 2019 +0100

    - updated to 0.18.2

 python-future-tests.patch | 20 ++++++++++++++++++++
 python-future.spec        |  7 ++++---
 2 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/python-future.spec b/python-future.spec
index 5188434..f19c95d 100644
--- a/python-future.spec
+++ b/python-future.spec
@@ -8,13 +8,13 @@
 Summary:	Clean single-source support for Python 3 and 2
 Summary(pl.UTF-8):	Czysta obsługa Pythona 3 i 2 w jednych źródłach
 Name:		python-future
-Version:	0.17.1
-Release:	2
+Version:	0.18.2
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/future/
 Source0:	https://files.pythonhosted.org/packages/source/f/future/future-%{version}.tar.gz
-# Source0-md5:	e42113b4b72fabb5273ff88417104913
+# Source0-md5:	e4579c836b9c025872efe230f6270349
 Patch0:		%{name}-tests.patch
 URL:		https://python-future.org/
 %if %{with python2}
@@ -24,6 +24,7 @@ BuildRequires:	python-setuptools
 BuildRequires:	python-argparse
 BuildRequires:	python-importlib
 %if %{with tests}
+BuildRequires:	python-2to3
 BuildRequires:	python-unittest2
 %endif
 %endif
diff --git a/python-future-tests.patch b/python-future-tests.patch
index bfaf900..069ab3e 100644
--- a/python-future-tests.patch
+++ b/python-future-tests.patch
@@ -45,3 +45,23 @@
  class urlopenNetworkTests(unittest.TestCase):
      """Tests urllib.reqest.urlopen using the network.
  
+--- future-0.18.2/tests/test_future/test_urllib2.py.orig	2019-10-31 01:56:12.000000000 +0100
++++ future-0.18.2/tests/test_future/test_urllib2.py	2019-12-12 13:58:33.947000000 +0100
+@@ -668,6 +668,7 @@
+ 
+ class HandlerTests(unittest.TestCase):
+ 
++    @unittest.skip("uses network")
+     def test_ftp(self):
+         class MockFTPWrapper(object):
+             def __init__(self, data): self.data = data
+--- future-0.18.2/tests/test_future/test_builtins.py.orig	2019-10-31 01:56:12.000000000 +0100
++++ future-0.18.2/tests/test_future/test_builtins.py	2019-12-12 14:03:02.070000000 +0100
+@@ -1260,6 +1260,7 @@
+         self.assertEqual(ord(chr(sys.maxunicode)), sys.maxunicode)
+         self.assertRaises(TypeError, ord, 42)
+ 
++    @unittest.skip("broken with Python > 3.7")
+     def test_pow(self):
+         self.assertEqual(pow(0,0), 1)
+         self.assertEqual(pow(0,1), 0)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-future.git/commitdiff/32cf62683e3a21e6d16ecbc2b2fcbb2b94f43652



More information about the pld-cvs-commit mailing list