From 686e7487da3624dbaebedc71be72d78b0f50c6188ecb9693eaf4ec6cdb5ebaa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 25 May 2021 11:32:05 +0000 Subject: [PATCH] Accepting request 895332 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/895332 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oauthlib?expand=0&rev=50 --- python-oauthlib.changes | 5 +++++ python-oauthlib.spec | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-oauthlib.changes b/python-oauthlib.changes index fa04905..2e039ad 100644 --- a/python-oauthlib.changes +++ b/python-oauthlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 25 11:02:47 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Thu Sep 24 11:18:07 UTC 2020 - Hans-Peter Jansen diff --git a/python-oauthlib.spec b/python-oauthlib.spec index 1679b2f..88dd562 100644 --- a/python-oauthlib.spec +++ b/python-oauthlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-oauthlib # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-oauthlib Version: 3.1.0 Release: 0 @@ -25,7 +26,7 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/oauthlib/oauthlib Source: https://files.pythonhosted.org/packages/source/o/oauthlib/oauthlib-%{version}.tar.gz -Patch: o_switch_to_unitest_mock.patch +Patch0: o_switch_to_unitest_mock.patch BuildRequires: %{python_module PyJWT >= 1.0.0} BuildRequires: %{python_module blinker} BuildRequires: %{python_module cryptography} @@ -58,7 +59,7 @@ veneer on top of OAuthLib and get OAuth support for very little effort. %prep %setup -q -n oauthlib-%{version} -%patch -p1 +%patch0 -p1 %build %python_build @@ -68,7 +69,7 @@ veneer on top of OAuthLib and get OAuth support for very little effort. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest discover -v %files %{python_files} %license LICENSE