diff --git a/backport-adding-missing-declaration.patch b/backport-adding-missing-declaration.patch new file mode 100644 index 0000000000000000000000000000000000000000..3d8f3c56c5942906970b9cadafca75842acbdd2a --- /dev/null +++ b/backport-adding-missing-declaration.patch @@ -0,0 +1,32 @@ +From fc37566262709ce6d0dd1ca3eafa5eb375610f2f Mon Sep 17 00:00:00 2001 +From: violuke +Date: Sat, 19 Feb 2022 10:01:54 +0000 +Subject: [PATCH] Adding missing declaration + +--- + requests_oauthlib/oauth2_session.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/requests_oauthlib/oauth2_session.py b/requests_oauthlib/oauth2_session.py +index 1a68282..75e9a14 100644 +--- a/requests_oauthlib/oauth2_session.py ++++ b/requests_oauthlib/oauth2_session.py +@@ -96,6 +96,7 @@ class OAuth2Session(requests.Session): + "refresh_token_response": set(), + "protected_request": set(), + "refresh_token_request": set(), ++ "access_token_request": set(), + } + + def new_state(self): +@@ -538,6 +539,7 @@ class OAuth2Session(requests.Session): + access_token_response invoked before token parsing. + refresh_token_response invoked before refresh token parsing. + protected_request invoked before making a request. ++ access_token_request invoked before making a token fetch request. + refresh_token_request invoked before making a refresh request. + + If you find a new hook is needed please send a GitHub PR request +-- +2.9.3.windows.1 + diff --git a/python-requests-oauthlib.spec b/python-requests-oauthlib.spec index b3ba0f0df957b5f130b97151721b52b5c6e1704e..b6b5104710a0196f53eff40f21d4bb945828a137 100644 --- a/python-requests-oauthlib.spec +++ b/python-requests-oauthlib.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-requests-oauthlib Version: 1.3.1 -Release: 1 +Release: 2 Summary: OAuthlib authentication support for Requests. License: ISC URL: https://github.com/requests/requests-oauthlib Source0: https://files.pythonhosted.org/packages/95/52/531ef197b426646f26b53815a7d2a67cb7a331ef098bb276db26a68ac49f/requests-oauthlib-1.3.1.tar.gz +Patch0: backport-adding-missing-declaration.patch BuildArch: noarch %description @@ -66,6 +67,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu May 9 2024 wuzhaomin - 1.3.1-2 +- Adding missing declaration + * Thu Jun 16 2022 OpenStack_SIG - 1.3.1-1 - Upgrade version for openstack yoga