Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-django-tastypie for openSUSE:Factory checked in at 2022-05-12 23:00:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-django-tastypie (Old) and /work/SRC/openSUSE:Factory/.python-django-tastypie.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-tastypie" Thu May 12 23:00:00 2022 rev:18 rq:976399 version:0.14.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-django-tastypie/python-django-tastypie.changes 2022-02-26 17:02:43.859542078 +0100 +++ /work/SRC/openSUSE:Factory/.python-django-tastypie.new.1538/python-django-tastypie.changes 2022-05-12 23:00:25.612802162 +0200 @@ -1,0 +2,8 @@ +Wed May 11 12:30:36 UTC 2022 - pgaj...@suse.com + +- do not use python-mock for build +- added patches + fix https://github.com/django-tastypie/django-tastypie/issues/1635 + + python-django-tastypie-no-mock.patch + +------------------------------------------------------------------- New: ---- python-django-tastypie-no-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-django-tastypie.spec ++++++ --- /var/tmp/diff_new_pack.apgJCb/_old 2022-05-12 23:00:26.116802838 +0200 +++ /var/tmp/diff_new_pack.apgJCb/_new 2022-05-12 23:00:26.124802849 +0200 @@ -24,12 +24,13 @@ License: BSD-3-Clause URL: https://github.com/django-tastypie/django-tastypie Source: https://github.com/django-tastypie/django-tastypie/archive/v%{version}.tar.gz +# https://github.com/django-tastypie/django-tastypie/issues/1635 +Patch0: python-django-tastypie-no-mock.patch BuildRequires: %{python_module Django >= 1.11.0} BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module biplist} BuildRequires: %{python_module defusedxml} BuildRequires: %{python_module lxml} -BuildRequires: %{python_module mock} BuildRequires: %{python_module python-dateutil >= 2.1} BuildRequires: %{python_module python-mimeparse >= 0.1.4} BuildRequires: %{python_module setuptools} ++++++ python-django-tastypie-no-mock.patch ++++++ diff -upr django-tastypie-0.14.4.orig/docs/code/authentication.py django-tastypie-0.14.4/docs/code/authentication.py --- django-tastypie-0.14.4.orig/docs/code/authentication.py 2022-05-11 14:26:13.697935887 +0200 +++ django-tastypie-0.14.4/docs/code/authentication.py 2022-05-11 14:26:13.713935987 +0200 @@ -1,4 +1,4 @@ -import mock +from unittest import mock OAuth20Authentication = mock.Mock() diff -upr django-tastypie-0.14.4.orig/docs/code/myapp/models.py django-tastypie-0.14.4/docs/code/myapp/models.py --- django-tastypie-0.14.4.orig/docs/code/myapp/models.py 2022-05-11 14:26:13.697935887 +0200 +++ django-tastypie-0.14.4/docs/code/myapp/models.py 2022-05-11 14:26:13.713935987 +0200 @@ -1,4 +1,4 @@ -import mock +from unittest import mock from django.contrib.auth.models import User # noqa diff -upr django-tastypie-0.14.4.orig/tests/authorization/tests.py django-tastypie-0.14.4/tests/authorization/tests.py --- django-tastypie-0.14.4.orig/tests/authorization/tests.py 2022-05-11 14:26:13.701935911 +0200 +++ django-tastypie-0.14.4/tests/authorization/tests.py 2022-05-11 14:26:13.721936038 +0200 @@ -1,5 +1,5 @@ import json -import mock +from unittest import mock from django.contrib.auth.models import User from django.contrib.sites.models import Site diff -upr django-tastypie-0.14.4.orig/tests/core/tests/cache.py django-tastypie-0.14.4/tests/core/tests/cache.py --- django-tastypie-0.14.4.orig/tests/core/tests/cache.py 2022-05-11 14:26:13.705935937 +0200 +++ django-tastypie-0.14.4/tests/core/tests/cache.py 2022-05-11 14:26:13.721936038 +0200 @@ -1,4 +1,4 @@ -import mock +from unittest import mock from django.core.cache import cache from django.test import TestCase diff -upr django-tastypie-0.14.4.orig/tests/core/tests/resources.py django-tastypie-0.14.4/tests/core/tests/resources.py --- django-tastypie-0.14.4.orig/tests/core/tests/resources.py 2022-05-11 14:26:13.705935937 +0200 +++ django-tastypie-0.14.4/tests/core/tests/resources.py 2022-05-11 14:26:13.725936064 +0200 @@ -7,7 +7,7 @@ import copy import datetime from decimal import Decimal import json -from mock import patch, Mock +from unittest.mock import patch, Mock import sys import time from unittest import skipIf diff -upr django-tastypie-0.14.4.orig/tests/core/tests/serializers.py django-tastypie-0.14.4/tests/core/tests/serializers.py --- django-tastypie-0.14.4.orig/tests/core/tests/serializers.py 2022-05-11 14:26:13.705935937 +0200 +++ django-tastypie-0.14.4/tests/core/tests/serializers.py 2022-05-11 14:26:13.725936064 +0200 @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import datetime from decimal import Decimal -import mock +from unittest import mock from unittest import skipIf import yaml diff -upr django-tastypie-0.14.4.orig/tests/core/tests/throttle.py django-tastypie-0.14.4/tests/core/tests/throttle.py --- django-tastypie-0.14.4.orig/tests/core/tests/throttle.py 2022-05-11 14:26:13.705935937 +0200 +++ django-tastypie-0.14.4/tests/core/tests/throttle.py 2022-05-11 14:26:13.725936064 +0200 @@ -1,4 +1,4 @@ -import mock +from unittest import mock import time from django.core.cache import cache diff -upr django-tastypie-0.14.4.orig/tests/core/tests/utils.py django-tastypie-0.14.4/tests/core/tests/utils.py --- django-tastypie-0.14.4.orig/tests/core/tests/utils.py 2022-05-11 14:26:13.705935937 +0200 +++ django-tastypie-0.14.4/tests/core/tests/utils.py 2022-05-11 14:26:13.725936064 +0200 @@ -1,5 +1,5 @@ import datetime -import mock +from unittest import mock from pytz.reference import Pacific from django.http import HttpRequest