Hello community,

here is the log from the commit of package python-django-storages for 
openSUSE:Factory checked in at 2019-04-18 09:56:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-storages (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-storages.new.17052 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-storages"

Thu Apr 18 09:56:30 2019 rev:2 rq:695091 version:1.7.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-storages/python-django-storages.changes
    2019-03-20 13:18:04.645360654 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-storages.new.17052/python-django-storages.changes
 2019-04-18 09:56:39.297349988 +0200
@@ -1,0 +2,5 @@
+Thu Apr  4 09:25:45 UTC 2019 - Ondřej Súkup <[email protected]>
+
+- add e9bb4bcb8a1b7720468add08bc8343ffbaa0165c.patch for django-2.2 
+
+-------------------------------------------------------------------

New:
----
  e9bb4bcb8a1b7720468add08bc8343ffbaa0165c.patch

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

Other differences:
------------------
++++++ python-django-storages.spec ++++++
--- /var/tmp/diff_new_pack.buLqzQ/_old  2019-04-18 09:56:39.881350356 +0200
+++ /var/tmp/diff_new_pack.buLqzQ/_new  2019-04-18 09:56:39.885350358 +0200
@@ -25,6 +25,7 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/jschneier/django-storages
 Source:         
https://files.pythonhosted.org/packages/source/d/django-storages/django-storages-%{version}.tar.gz
+Patch0:         e9bb4bcb8a1b7720468add08bc8343ffbaa0165c.patch
 BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -56,6 +57,7 @@
 
 %prep
 %setup -q -n django-storages-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ e9bb4bcb8a1b7720468add08bc8343ffbaa0165c.patch ++++++
Index: django-storages-1.7.1/setup.py
===================================================================
--- django-storages-1.7.1.orig/setup.py
+++ django-storages-1.7.1/setup.py
@@ -36,6 +36,7 @@ setup(
         'Framework :: Django :: 1.11',
         'Framework :: Django :: 2.0',
         'Framework :: Django :: 2.1',
+        'Framework :: Django :: 2.2',
         'Intended Audience :: Developers',
         'License :: OSI Approved :: BSD License',
         'Operating System :: OS Independent',
Index: django-storages-1.7.1/tests/test_dropbox.py
===================================================================
--- django-storages-1.7.1.orig/tests/test_dropbox.py
+++ django-storages-1.7.1/tests/test_dropbox.py
@@ -6,7 +6,9 @@ from django.core.exceptions import (
 from django.core.files.base import ContentFile, File
 from django.test import TestCase
 from django.utils.six import BytesIO
+from unittest import skipIf
 
+import django
 from storages.backends import dropbox
 
 try:
@@ -156,9 +158,14 @@ class DropBoxFileTest(TestCase):
         self.storage = dropbox.DropBoxStorage('foo')
         self.file = dropbox.DropBoxFile('/foo.txt', self.storage)
 
-    @mock.patch('dropbox.Dropbox.files_download',
-                return_value=ContentFile(b'bar'))
+    @mock.patch('dropbox.Dropbox.files_download', 
return_value=ContentFile(b'bar'))
     def test_read(self, *args):
+        file = self.storage._open('foo')
+        self.assertEqual(file.read(), b'bar')
+
+    @skipIf(django.VERSION >= (2, 2), 'Bytes paths are not supported')
+    @mock.patch('dropbox.Dropbox.files_download', 
return_value=ContentFile(b'bar'))
+    def test_read_bytes_path(self, *args):
         file = self.storage._open(b'foo')
         self.assertEqual(file.read(), b'bar')
 

Reply via email to