Remove dependency on unittest2

Add remove_unittest2.patch to facilitate that

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oauthlib?expand=0&rev=36
This commit is contained in:
Matej Cepl 2018-08-13 13:02:31 +00:00 committed by Git OBS Bridge
parent e65838b338
commit 74f694657d
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 13 13:01:36 UTC 2018 - mcepl@suse.com
Remove dependency on unittest2
Add remove_unittest2.patch to facilitate that
-------------------------------------------------------------------
Wed May 23 02:49:49 UTC 2018 - arun@gmx.de

View File

@ -25,6 +25,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
Patch0: remove_unittest2.patch
BuildRequires: %{python_module PyJWT}
BuildRequires: %{python_module blinker}
BuildRequires: %{python_module cryptography}
@ -33,7 +34,6 @@ BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pyasn1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module unittest2}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyJWT
@ -61,6 +61,7 @@ veneer on top of OAuthLib and get OAuth support for very little effort.
%prep
%setup -q -n oauthlib-%{version}
%autopatch -p1
%build
%python_build

11
remove_unittest2.patch Normal file
View File

@ -0,0 +1,11 @@
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ def fread(fn):
if sys.version_info[0] == 3:
tests_require = ['nose', 'cryptography', 'pyjwt>=1.0.0', 'blinker']
else:
- tests_require = ['nose', 'unittest2', 'cryptography', 'mock', 'pyjwt>=1.0.0', 'blinker']
+ tests_require = ['nose', 'cryptography', 'mock', 'pyjwt>=1.0.0', 'blinker']
rsa_require = ['cryptography']
signedtoken_require = ['cryptography', 'pyjwt>=1.0.0']
signals_require = ['blinker']