Hello community,
here is the log from the commit of package python-django-rest-framework-client
for openSUSE:Factory checked in at 2020-06-02 14:40:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-rest-framework-client (Old)
and
/work/SRC/openSUSE:Factory/.python-django-rest-framework-client.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-rest-framework-client"
Tue Jun 2 14:40:06 2020 rev:2 rq:810620 version:0.1.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-rest-framework-client/python-django-rest-framework-client.changes
2019-05-22 11:03:57.914609034 +0200
+++
/work/SRC/openSUSE:Factory/.python-django-rest-framework-client.new.3606/python-django-rest-framework-client.changes
2020-06-02 14:41:01.499973909 +0200
@@ -1,0 +2,8 @@
+Mon Jun 1 12:15:50 UTC 2020 - [email protected]
+
+- use %pytest macro
+- added patches
+ unittest2 is not neccessary for python3
+ + python-django-rest-framework-client-no-unittest2.patch
+
+-------------------------------------------------------------------
New:
----
python-django-rest-framework-client-no-unittest2.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-rest-framework-client.spec ++++++
--- /var/tmp/diff_new_pack.aBrM3A/_old 2020-06-02 14:41:02.363976641 +0200
+++ /var/tmp/diff_new_pack.aBrM3A/_new 2020-06-02 14:41:02.367976653 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-django-rest-framework-client
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,26 +12,33 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
Name: python-django-rest-framework-client
Version: 0.1.1
Release: 0
-License: MIT
Summary: Python client for a Django REST Framework based web site
-Url: https://github.com/dkarchmer/django-rest-framework-client
+License: MIT
Group: Development/Languages/Python
+URL: https://github.com/dkarchmer/django-rest-framework-client
Source:
https://github.com/dkarchmer/django-rest-framework-client/archive/v%{version}.tar.gz#/django-rest-framework-client-%{version}.tar.gz
-BuildRequires: python-rpm-macros
+# fake dependency,
https://github.com/dkarchmer/django-rest-framework-client/pull/2
+Patch0: python-django-rest-framework-client-no-unittest2.patch
BuildRequires: %{python_module setuptools}
+BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module Django}
BuildRequires: %{python_module mock}
-BuildRequires: %{python_module requests}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests-mock}
-BuildRequires: %{python_module unittest2}
+BuildRequires: %{python_module requests}
+%if %{with python2}
+BuildRequires: python-unittest2
+%endif
# /SECTION
BuildRequires: fdupes
Requires: python-Django
@@ -45,6 +52,7 @@
%prep
%setup -q -n django-rest-framework-client-%{version}
+%patch0 -p1
%build
%python_build
@@ -54,7 +62,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%python_exec setup.py test --test-suite=tests
+%pytest
%files %{python_files}
%doc CHANGELOG.md README.md
++++++ python-django-rest-framework-client-no-unittest2.patch ++++++
Index: django-rest-framework-client-0.1.1/tests/api.py
===================================================================
--- django-rest-framework-client-0.1.1.orig/tests/api.py 2017-05-07
21:11:26.000000000 +0200
+++ django-rest-framework-client-0.1.1/tests/api.py 2020-06-01
14:13:14.172177016 +0200
@@ -3,7 +3,7 @@ import json
import mock
import requests
import requests_mock
-import unittest2 as unittest
+import unittest
from drf_client.connection import Api
from drf_client.exceptions import HttpClientError, HttpServerError
Index: django-rest-framework-client-0.1.1/tests/resources.py
===================================================================
--- django-rest-framework-client-0.1.1.orig/tests/resources.py 2017-05-07
21:11:26.000000000 +0200
+++ django-rest-framework-client-0.1.1/tests/resources.py 2020-06-01
14:13:31.476274606 +0200
@@ -3,7 +3,7 @@ import json
import mock
import requests
import requests_mock
-import unittest2 as unittest
+import unittest
from drf_client.connection import Api, RestResource
from drf_client import exceptions