diff --git a/python-oauthlib.changes b/python-oauthlib.changes index ec4a41f..578032a 100644 --- a/python-oauthlib.changes +++ b/python-oauthlib.changes @@ -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 diff --git a/python-oauthlib.spec b/python-oauthlib.spec index 1c8a90e..2d1d1e6 100644 --- a/python-oauthlib.spec +++ b/python-oauthlib.spec @@ -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 diff --git a/remove_unittest2.patch b/remove_unittest2.patch new file mode 100644 index 0000000..6b5fd5e --- /dev/null +++ b/remove_unittest2.patch @@ -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']