Accepting request 676945 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/676945
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-oauthlib?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2019-02-27 14:05:34 +00:00 committed by Git OBS Bridge
commit ef2414724d
4 changed files with 38 additions and 8 deletions

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Sun Feb 17 01:08:23 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Activate test suite, skipping three online tests
- Update to version 1.2.0
* This project now depends on OAuthlib 3.0.0 and above.
* Updated oauth2 tests to use 'sess' for an OAuth2Session instance instead
of auth because OAuth2Session objects and methods acceept an auth
paramether which is typically an instance of requests.auth.HTTPBasicAuth
* OAuth2Session.fetch_token previously tried to guess how and where to
provide "client" and "user" credentials incorrectly. This was
incompatible with some OAuth servers and incompatible with breaking
changes in oauthlib that seek to correctly provide the client_id.
The older implementation also did not raise the correct exceptions when
username and password are not present on Legacy clients.
* Avoid automatic netrc authentication for OAuth2Session.
- from v1.1.0
* Adjusted version specifier for oauthlib dependency
* Dropped dependency on nose.
* Minor changes to clean up the code and make it more readable/maintainable.
- from v1.0.0
* Removed support for Python 2.6 and Python 3.3.
* Added several examples to the documentation.
* Added plentymarkets compliance fix.
* Added a token property to OAuth1Session, to match the corresponding
token property on OAuth2Session.
-------------------------------------------------------------------
Tue Dec 4 12:53:49 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-requests-oauthlib
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-requests-oauthlib
Version: 0.8.0
Version: 1.2.0
Release: 0
Summary: OAuthlib authentication support for Requests
License: ISC
@ -26,12 +26,14 @@ Group: Development/Languages/Python
URL: https://github.com/requests/requests-oauthlib
Source: https://files.pythonhosted.org/packages/source/r/requests-oauthlib/requests-oauthlib-%{version}.tar.gz
BuildRequires: %{python_module mock}
BuildRequires: %{python_module oauthlib >= 0.6.2}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module oauthlib >= 3.0.0}
BuildRequires: %{python_module requests >= 2.0.0}
BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-oauthlib >= 0.6.2
Requires: python-oauthlib >= 3.0.0
Requires: python-requests >= 2.0.0
BuildArch: noarch
%python_subpackages
@ -52,7 +54,8 @@ This project provides first-class OAuth library support for Requests.
%fdupes %{buildroot}
%check
#%%python_exec setup.py test
# Three tests initiate network traffic to httpbin.org
%python_exec -m nose -e '(testCanPostBinaryData|test_content_type_override|test_url_is_native_str)'
%files %{python_files}
%license LICENSE

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:883ac416757eada6d3d07054ec7092ac21c7f35cb1d2cf82faf205637081f468
size 84110

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd6533330e8748e94bf0b214775fed487d309b8b8fe823dc45641ebcd9a32f57
size 83381