Hello community,
here is the log from the commit of package python-django-rest-knox for
openSUSE:Leap:15.2 checked in at 2020-05-01 15:08:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-django-rest-knox (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-django-rest-knox.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-rest-knox"
Fri May 1 15:08:28 2020 rev:5 rq:799497 version:4.1.0
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-django-rest-knox/python-django-rest-knox.changes
2020-04-14 14:21:32.797299813 +0200
+++
/work/SRC/openSUSE:Leap:15.2/.python-django-rest-knox.new.2738/python-django-rest-knox.changes
2020-05-01 15:08:31.150723652 +0200
@@ -1,0 +2,6 @@
+Tue Apr 28 09:42:48 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Add patch to build with Django 3.x:
+ * django3.patch
+
+-------------------------------------------------------------------
New:
----
django3.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-rest-knox.spec ++++++
--- /var/tmp/diff_new_pack.KXRtg7/_old 2020-05-01 15:08:31.622724677 +0200
+++ /var/tmp/diff_new_pack.KXRtg7/_new 2020-05-01 15:08:31.626724686 +0200
@@ -25,6 +25,7 @@
License: MIT
URL: https://github.com/James1345/django-rest-knox
Source:
https://github.com/James1345/django-rest-knox/archive/%{version}.tar.gz#/django-rest-knox-%{version}.tar.gz
+Patch0: django3.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -46,6 +47,7 @@
%prep
%setup -q -n django-rest-knox-%{version}
+%patch0 -p1
# knox does not use pyOpenSSL; it uses cryptography.
# pyOpenSSL is a proxy for cryptography in 3.6.0,
# and replaced by cryptography in 4.0.0
++++++ django3.patch ++++++
Index: django-rest-knox-4.1.0/tests/tests.py
===================================================================
--- django-rest-knox-4.1.0.orig/tests/tests.py
+++ django-rest-knox-4.1.0/tests/tests.py
@@ -3,10 +3,10 @@ from datetime import datetime, timedelta
from django.contrib.auth import get_user_model
from django.test import override_settings
-from django.utils.six.moves import reload_module
from freezegun import freeze_time
from rest_framework.serializers import DateTimeField
from rest_framework.test import APIRequestFactory, APITestCase as TestCase
+from six.moves import reload_module
from knox import auth, views
from knox.auth import TokenAuthentication