Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-django-rest-framework-client
for openSUSE:Factory checked in at 2022-05-12 23:00:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-rest-framework-client (Old)
and
/work/SRC/openSUSE:Factory/.python-django-rest-framework-client.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-rest-framework-client"
Thu May 12 23:00:50 2022 rev:4 rq:976574 version:0.1.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-rest-framework-client/python-django-rest-framework-client.changes
2022-01-07 12:48:01.103913667 +0100
+++
/work/SRC/openSUSE:Factory/.python-django-rest-framework-client.new.1538/python-django-rest-framework-client.changes
2022-05-12 23:01:46.316910518 +0200
@@ -1,0 +2,8 @@
+Thu May 12 08:20:41 UTC 2022 - [email protected]
+
+- to not require python-mock for build
+- added patches
+ fix https://github.com/dkarchmer/django-rest-framework-client/issues/7
+ + python-django-rest-framework-client-no-mock.patch
+
+-------------------------------------------------------------------
New:
----
python-django-rest-framework-client-no-mock.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-rest-framework-client.spec ++++++
--- /var/tmp/diff_new_pack.qlGqOr/_old 2022-05-12 23:01:46.836911216 +0200
+++ /var/tmp/diff_new_pack.qlGqOr/_new 2022-05-12 23:01:46.844911226 +0200
@@ -26,14 +26,17 @@
License: MIT
Group: Development/Languages/Python
URL: https://github.com/dkarchmer/django-rest-framework-client
+# newer versions exist on pypi, but without test packaged, see
+# https://github.com/dkarchmer/django-rest-framework-client/issues/7
Source:
https://github.com/dkarchmer/django-rest-framework-client/archive/v%{version}.tar.gz#/django-rest-framework-client-%{version}.tar.gz
# fake dependency,
https://github.com/dkarchmer/django-rest-framework-client/pull/2
Patch0: python-django-rest-framework-client-no-unittest2.patch
+# https://github.com/dkarchmer/django-rest-framework-client/issues/7
+Patch1: python-django-rest-framework-client-no-mock.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module Django}
-BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module requests}
@@ -54,6 +57,7 @@
%prep
%setup -q -n django-rest-framework-client-%{version}
%patch0 -p1
+%patch1 -p1
%build
%python_build
++++++ python-django-rest-framework-client-no-mock.patch ++++++
diff -upr django-rest-framework-client-0.1.1.orig/tests/api.py
django-rest-framework-client-0.1.1/tests/api.py
--- django-rest-framework-client-0.1.1.orig/tests/api.py 2022-05-12
09:32:27.295052321 +0200
+++ django-rest-framework-client-0.1.1/tests/api.py 2022-05-12
09:32:27.299052347 +0200
@@ -1,6 +1,6 @@
import sys
import json
-import mock
+from unittest import mock
import requests
import requests_mock
import unittest
diff -upr django-rest-framework-client-0.1.1.orig/tests/resources.py
django-rest-framework-client-0.1.1/tests/resources.py
--- django-rest-framework-client-0.1.1.orig/tests/resources.py 2022-05-12
09:32:27.295052321 +0200
+++ django-rest-framework-client-0.1.1/tests/resources.py 2022-05-12
09:32:27.299052347 +0200
@@ -1,6 +1,6 @@
import sys
import json
-import mock
+from unittest import mock
import requests
import requests_mock
import unittest