Skip to content

Commit

Permalink
Update python-future to rev 11 via SR 754444
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/754444
by user dimstar_suse
- Update to 0.18.2:
  - Fix min/max functions with generators, and 'None' default (PR #514)
  - Use BaseException in raise_() (PR #515)
  - Fix builtins.round() for Decimals (Issue #501)
  - Fix raise_from() to prevent failures with immutable classes (PR #518)
  - Make FixInput idempotent (Issue #427)
  - Fix type in newround (PR #521)
  - Support mimetype guessing in urllib2 for Py3.8+ (Issue #508)
  - fix for raise_() when passed an exception that's not an
    Exception (e.g. BaseException subclasses)
- Rebase future-correct-mimetype.patch to revert incorrect fix in
  gh#PythonCharmers/python-future#508
  • Loading branch information
bmwiedemann committed Dec 11, 2019
1 parent 3ec6341 commit 43fd152
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 18 deletions.
Binary file modified packages/p/python-future/.files
Binary file not shown.
19 changes: 19 additions & 0 deletions packages/p/python-future/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,23 @@
the MIME type now.</comment>
<requestid>738188</requestid>
</revision>
<revision rev="11" vrev="1">
<srcmd5>8d0261a2470c53e8b9ec1dc6fd74a735</srcmd5>
<version>0.18.2</version>
<time>1576062573</time>
<user>dimstar_suse</user>
<comment>- Update to 0.18.2:
- Fix min/max functions with generators, and 'None' default (PR #514)
- Use BaseException in raise_() (PR #515)
- Fix builtins.round() for Decimals (Issue #501)
- Fix raise_from() to prevent failures with immutable classes (PR #518)
- Make FixInput idempotent (Issue #427)
- Fix type in newround (PR #521)
- Support mimetype guessing in urllib2 for Py3.8+ (Issue #508)
- fix for raise_() when passed an exception that's not an
Exception (e.g. BaseException subclasses)
- Rebase future-correct-mimetype.patch to revert incorrect fix in
gh#PythonCharmers/python-future#508</comment>
<requestid>754444</requestid>
</revision>
</revisionlist>
1 change: 0 additions & 1 deletion packages/p/python-future/future-0.18.0.tar.gz

This file was deleted.

1 change: 1 addition & 0 deletions packages/p/python-future/future-0.18.2.tar.gz
20 changes: 10 additions & 10 deletions packages/p/python-future/future-correct-mimetype.patch
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
--- a/tests/test_future/test_urllib2.py 2019-10-14 12:22:14.230684473 +1100
+++ b/tests/test_future/test_urllib2.py 2019-10-14 12:35:31.722438625 +1100
@@ -691,6 +691,10 @@
--- a/tests/test_future/test_urllib2.py
+++ b/tests/test_future/test_urllib2.py
@@ -691,10 +691,6 @@ class HandlerTests(unittest.TestCase):
h = NullFTPHandler(data)
h.parent = MockOpener()

+ # MIME guessing works in Python 3.8!
+ guessed_mime = None
+ if sys.hexversion >= 0x03080000:
+ guessed_mime = "image/gif"
- # MIME guessing works in Python 3.8!
- guessed_mime = None
- if sys.hexversion >= 0x03080000:
- guessed_mime = "image/gif"
for url, host, port, user, passwd, type_, dirs, filename, mimetype in [
("ftp://localhost/foo/bar/baz.html",
"localhost", ftplib.FTP_PORT, "", "", "I",
@@ -709,7 +714,7 @@
@@ -713,7 +709,7 @@ class HandlerTests(unittest.TestCase):
["foo", "bar"], "", None),
("ftp://localhost/baz.gif;type=a",
"localhost", ftplib.FTP_PORT, "", "", "A",
- [], "baz.gif", None), # XXX really this should guess image/gif
+ [], "baz.gif", guessed_mime),
- [], "baz.gif", guessed_mime),
+ [], "baz.gif", None),
]:
req = Request(url)
req.timeout = None
16 changes: 16 additions & 0 deletions packages/p/python-future/python-future.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Dec 5 15:02:01 CET 2019 - Matej Cepl <mcepl@suse.com>

- Update to 0.18.2:
- Fix min/max functions with generators, and 'None' default (PR #514)
- Use BaseException in raise_() (PR #515)
- Fix builtins.round() for Decimals (Issue #501)
- Fix raise_from() to prevent failures with immutable classes (PR #518)
- Make FixInput idempotent (Issue #427)
- Fix type in newround (PR #521)
- Support mimetype guessing in urllib2 for Py3.8+ (Issue #508)
- fix for raise_() when passed an exception that's not an
Exception (e.g. BaseException subclasses)
- Rebase future-correct-mimetype.patch to revert incorrect fix in
gh#PythonCharmers/python-future#508

-------------------------------------------------------------------
Mon Oct 14 07:17:21 UTC 2019 - Steve Kowalik <steven.kowalik@suse.com>

Expand Down
12 changes: 6 additions & 6 deletions packages/p/python-future/python-future.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package python-future
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand All @@ -12,23 +12,23 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-future
Version: 0.18.0
Version: 0.18.2
Release: 0
Summary: Single-source support for Python 3 and 2
License: MIT AND Python-2.0
# See https://github.com/PythonCharmers/python-future/issues/242 for PSF licensing
Url: https://python-future.org
License: MIT AND Python-2.0
URL: https://python-future.org
Source0: https://files.pythonhosted.org/packages/source/f/future/future-%{version}.tar.gz
Source100: python-future-rpmlintrc
# PATCH-FIX-UPSTREAM python38-pow.patch gh#PythonCharmers/python-future#474 mcepl@suse.com
Patch0: python38-pow.patch
# UPSTREAM ISSUE https://github.com/PythonCharmers/python-future/issues/508
# UPSTREAM ISSUE gh#PythonCharmers/python-future#508
Patch1: future-correct-mimetype.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
Expand Down
2 changes: 1 addition & 1 deletion packages/p/python-future/python38-pow.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
self.assertRaises(ValueError, pow, -342.43, 0.234)
--- a/tests/test_future/test_builtins.py
+++ b/tests/test_future/test_builtins.py
@@ -1286,7 +1286,6 @@ class BuiltinTest(unittest.TestCase):
@@ -1305,7 +1305,6 @@ class BuiltinTest(unittest.TestCase):
self.assertAlmostEqual(pow(-1, 1/3), 0.5 + 0.8660254037844386j)

# Raises TypeError in Python < v3.5, ValueError in v3.5:
Expand Down

0 comments on commit 43fd152

Please sign in to comment.