Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-django-oidc-provider for openSUSE:Factory checked in at 2022-05-10 15:12:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-django-oidc-provider (Old) and /work/SRC/openSUSE:Factory/.python-django-oidc-provider.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-oidc-provider" Tue May 10 15:12:46 2022 rev:2 rq:976055 version:0.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-django-oidc-provider/python-django-oidc-provider.changes 2022-02-26 17:02:54.663543794 +0100 +++ /work/SRC/openSUSE:Factory/.python-django-oidc-provider.new.1538/python-django-oidc-provider.changes 2022-05-10 15:13:03.891655844 +0200 @@ -1,0 +2,8 @@ +Tue May 10 11:20:57 UTC 2022 - pgaj...@suse.com + +- do not require python-mock for build +- added patches + fix no mock + + python-django-oidc-provider-no-mock.patch + +------------------------------------------------------------------- New: ---- python-django-oidc-provider-no-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-django-oidc-provider.spec ++++++ --- /var/tmp/diff_new_pack.Q9sTaa/_old 2022-05-10 15:13:04.323656388 +0200 +++ /var/tmp/diff_new_pack.Q9sTaa/_new 2022-05-10 15:13:04.331656398 +0200 @@ -27,6 +27,8 @@ # PATCH-FIX-UPSTREAM django4.patch gh#juanifioren/django-oidc-provider#399 mc...@suse.com # Django 4 doesn't have ugettext_lazy function Patch1: django4.patch +# https://github.com/juanifioren/django-oidc-provider/issues/401 +Patch2: python-django-oidc-provider-no-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -35,7 +37,6 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Django} -BuildRequires: %{python_module mock >= 2.0.0} BuildRequires: %{python_module psycopg2} BuildRequires: %{python_module pyjwkest >= 1.3.0} BuildRequires: %{python_module pytest >= 3.6.4} ++++++ python-django-oidc-provider-no-mock.patch ++++++ Index: django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_authorize_endpoint.py =================================================================== --- django-oidc-provider-0.7.0.orig/oidc_provider/tests/cases/test_authorize_endpoint.py +++ django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_authorize_endpoint.py @@ -13,7 +13,8 @@ import uuid from django.contrib.auth.models import AnonymousUser from django.core.management import call_command -from mock import mock, patch +from unittest import mock +from unittest.mock import patch try: from django.urls import reverse Index: django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_end_session_endpoint.py =================================================================== --- django-oidc-provider-0.7.0.orig/oidc_provider/tests/cases/test_end_session_endpoint.py +++ django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_end_session_endpoint.py @@ -5,7 +5,7 @@ try: except ImportError: from django.core.urlresolvers import reverse -import mock +from unittest import mock from django.test import TestCase from oidc_provider import settings Index: django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_introspection_endpoint.py =================================================================== --- django-oidc-provider-0.7.0.orig/oidc_provider/tests/cases/test_introspection_endpoint.py +++ django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_introspection_endpoint.py @@ -1,7 +1,7 @@ import random import time -from mock import patch +from unittest.mock import patch try: from urllib.parse import urlencode Index: django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_middleware.py =================================================================== --- django-oidc-provider-0.7.0.orig/oidc_provider/tests/cases/test_middleware.py +++ django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_middleware.py @@ -4,7 +4,7 @@ except ImportError: from django.urls import path from django.test import TestCase, override_settings from django.views.generic import View -from mock import mock +from unittest import mock class StubbedViews: Index: django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_token_endpoint.py =================================================================== --- django-oidc-provider-0.7.0.orig/oidc_provider/tests/cases/test_token_endpoint.py +++ django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_token_endpoint.py @@ -21,7 +21,7 @@ from django.views.decorators.http import from jwkest.jwk import KEYS from jwkest.jws import JWS from jwkest.jwt import JWT -from mock import patch +from unittest.mock import patch from oidc_provider.lib.endpoints.introspection import INTROSPECTION_SCOPE from oidc_provider.lib.utils.oauth2 import protected_resource_view Index: django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_utils.py =================================================================== --- django-oidc-provider-0.7.0.orig/oidc_provider/tests/cases/test_utils.py +++ django-oidc-provider-0.7.0/oidc_provider/tests/cases/test_utils.py @@ -5,7 +5,7 @@ from hashlib import sha224 from django.http import HttpRequest from django.test import TestCase, override_settings from django.utils import timezone -from mock import mock +from unittest import mock from oidc_provider.lib.utils.common import get_browser_state_or_default, get_issuer from oidc_provider.lib.utils.token import create_id_token, create_token