Hello community,

here is the log from the commit of package python-future for openSUSE:Factory 
checked in at 2019-11-04 17:05:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-future (Old)
 and      /work/SRC/openSUSE:Factory/.python-future.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-future"

Mon Nov  4 17:05:25 2019 rev:10 rq:738188 version:0.18.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-future/python-future.changes      
2019-10-05 16:20:29.089409162 +0200
+++ /work/SRC/openSUSE:Factory/.python-future.new.2990/python-future.changes    
2019-11-04 17:05:27.488200344 +0100
@@ -1,0 +2,8 @@
+Mon Oct 14 07:17:21 UTC 2019 - Steve Kowalik <[email protected]>
+
+- Update to 0.18.0.
+- Remove python38-compat.patch, already included.
+- Add future-correct-mimetype.patch, since Python 3.8 is able to detect
+  the MIME type now.
+
+-------------------------------------------------------------------

Old:
----
  future-0.17.1.tar.gz
  python38-compat.patch

New:
----
  future-0.18.0.tar.gz
  future-correct-mimetype.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-future.spec ++++++
--- /var/tmp/diff_new_pack.PAl7gc/_old  2019-11-04 17:05:28.152201053 +0100
+++ /var/tmp/diff_new_pack.PAl7gc/_new  2019-11-04 17:05:28.156201058 +0100
@@ -12,25 +12,24 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-future
-Version:        0.17.1
+Version:        0.18.0
 Release:        0
 Summary:        Single-source support for Python 3 and 2
-# See https://github.com/PythonCharmers/python-future/issues/242 for PSF 
licensing
 License:        MIT AND Python-2.0
-URL:            https://python-future.org
+# See https://github.com/PythonCharmers/python-future/issues/242 for PSF 
licensing
+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-compat.patch gh#PythonCharmers/python-future#447 
[email protected]
-# Python 3.8 removed urllib.request.splitattr
-Patch0:         python38-compat.patch
 # PATCH-FIX-UPSTREAM python38-pow.patch gh#PythonCharmers/python-future#474 
[email protected]
-Patch1:         python38-pow.patch
+Patch0:         python38-pow.patch
+# UPSTREAM ISSUE https://github.com/PythonCharmers/python-future/issues/508
+Patch1:         future-correct-mimetype.patch
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes

++++++ future-0.17.1.tar.gz -> future-0.18.0.tar.gz ++++++
++++ 2540 lines of diff (skipped)

++++++ future-correct-mimetype.patch ++++++
--- 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 @@
         h = NullFTPHandler(data)
         h.parent = MockOpener()
 
+        # 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 @@
              ["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),
             ]:
             req = Request(url)
             req.timeout = None

Reply via email to