2020-08-06 03:51:59 +00:00
|
|
|
%global modname oauthlib
|
2019-09-30 11:15:17 -04:00
|
|
|
Name: python-oauthlib
|
2020-07-23 20:00:56 +08:00
|
|
|
Version: 3.1.0
|
2020-08-06 04:29:25 +00:00
|
|
|
Release: 2
|
2019-09-30 11:15:17 -04:00
|
|
|
Summary: Python Framework for OAuth1 & OAuth2
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://github.com/oauthlib/oauthlib
|
|
|
|
|
Source0: https://github.com/oauthlib/oauthlib/archive/oauthlib-%{version}.tar.gz
|
|
|
|
|
|
2020-08-06 03:51:59 +00:00
|
|
|
Patch6000: backport-Use-unittest.mock-instead-of-external-mock.patch.patch
|
2019-09-30 11:15:17 -04:00
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
AuthLib is a framework which implements the logic of OAuth1 or OAuth2
|
|
|
|
|
without assuming a specific HTTP request object or web framework. Use
|
|
|
|
|
it to graft OAuth client support onto your favorite HTTP library, or
|
|
|
|
|
provide support onto your favourite web framework. If you're a
|
|
|
|
|
maintainer of such a library, write a thin veneer on top of OAuthLib
|
|
|
|
|
and get OAuth support for very little effort.
|
|
|
|
|
|
|
|
|
|
%package -n python3-oauthlib
|
|
|
|
|
Summary: Python3 package for oauthlib
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools python3-nose python3-mock
|
|
|
|
|
BuildRequires: python3-blinker python3-jwt python3-cryptography
|
|
|
|
|
Requires: python3-jwt python3-cryptography
|
|
|
|
|
|
|
|
|
|
%description -n python3-oauthlib
|
|
|
|
|
Python3 package for oauthlib
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n oauthlib-%{version} -p1
|
|
|
|
|
sed -i "s/'unittest2', //" setup.py
|
2020-08-06 03:51:59 +00:00
|
|
|
rm -rf %{modname}.egg-info
|
2019-09-30 11:15:17 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
%files -n python3-oauthlib
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python3_sitelib}/oauthlib/*
|
|
|
|
|
%{python3_sitelib}/oauthlib-%{version}*
|
2020-08-06 03:51:59 +00:00
|
|
|
|
2019-09-30 11:15:17 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2020-08-06 03:51:59 +00:00
|
|
|
* Thu Aug 6 2020 wenzhanli<wenzhanli23@huawei.com> - 3.1.0-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Remove python2 require and Fix make test
|
|
|
|
|
|
2020-07-23 20:00:56 +08:00
|
|
|
* Thu Jul 23 2020 tianwei <tianwei12@huawei.com> - 3.1.0-1
|
|
|
|
|
- Package update to release 3.1.0
|
|
|
|
|
|
2019-09-30 11:15:17 -04:00
|
|
|
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0.2-1
|
|
|
|
|
- Package init
|