Hello community,
here is the log from the commit of package python-django-rest-knox for
openSUSE:Factory checked in at 2020-04-28 22:31:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-rest-knox (Old)
and /work/SRC/openSUSE:Factory/.python-django-rest-knox.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-rest-knox"
Tue Apr 28 22:31:57 2020 rev:5 rq:798611 version:4.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-rest-knox/python-django-rest-knox.changes
2020-04-07 10:28:30.654308771 +0200
+++
/work/SRC/openSUSE:Factory/.python-django-rest-knox.new.2738/python-django-rest-knox.changes
2020-04-28 22:32:25.973760757 +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.yiyqfu/_old 2020-04-28 22:32:26.721762152 +0200
+++ /var/tmp/diff_new_pack.yiyqfu/_new 2020-04-28 22:32:26.725762159 +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