diff --git a/backport-Fix-tox-e-readme-build.patch b/backport-Fix-tox-e-readme-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..de0f887f56776b82aadd2884467590ea9d5690b0 --- /dev/null +++ b/backport-Fix-tox-e-readme-build.patch @@ -0,0 +1,23 @@ +From 3b6b76b68d65463e87c8abff3d6534d9b13e36cc Mon Sep 17 00:00:00 2001 +From: Jonathan Huot +Date: Sat, 6 Jan 2024 22:56:59 +0100 +Subject: [PATCH] Fix tox -e readme build + +--- + docs/requirements.txt | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/docs/requirements.txt b/docs/requirements.txt +index 2bfb263..812eac2 100644 +--- a/docs/requirements.txt ++++ b/docs/requirements.txt +@@ -1,4 +1,3 @@ +-sphinx<2 +-docutils<=0.15 # docutils 0.16 has an error when generating in api.rst +-sphinx_rtd_theme<0.5 ++sphinx ++sphinx_rtd_theme + readthedocs-sphinx-ext +-- +2.9.3.windows.1 + diff --git a/backport-will-this-fix-coverage-diff-of-0.0.patch b/backport-will-this-fix-coverage-diff-of-0.0.patch new file mode 100644 index 0000000000000000000000000000000000000000..a53c8b10347b0ecae39a63d7c629a5af2314cfd5 --- /dev/null +++ b/backport-will-this-fix-coverage-diff-of-0.0.patch @@ -0,0 +1,40 @@ +From 3cc4c15b2d2403c0fdee8404a9366b1b4f2c04f7 Mon Sep 17 00:00:00 2001 +From: jtroussard +Date: Sun, 2 Jan 2022 15:21:48 -0500 +Subject: [PATCH] will this fix coverage diff of -0.0 + +--- + requests_oauthlib/oauth1_session.py | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/requests_oauthlib/oauth1_session.py b/requests_oauthlib/oauth1_session.py +index e4c7401..a24eba6 100644 +--- a/requests_oauthlib/oauth1_session.py ++++ b/requests_oauthlib/oauth1_session.py +@@ -33,7 +33,6 @@ class TokenRequestDenied(ValueError): + super(TokenRequestDenied, self).__init__(message) + self.response = response + +- @property + def status_code(self): + """For backwards-compatibility purposes""" + return self.response.status_code +@@ -171,7 +170,6 @@ class OAuth1Session(requests.Session): + ) + self.auth = self._client + +- @property + def token(self): + oauth_token = self._client.client.resource_owner_key + oauth_token_secret = self._client.client.resource_owner_secret +@@ -191,7 +189,6 @@ class OAuth1Session(requests.Session): + def token(self, value): + self._populate_attributes(value) + +- @property + def authorized(self): + """Boolean that indicates whether this session has an OAuth token + or not. If `self.authorized` is True, you can reasonably expect +-- +2.9.3.windows.1 + diff --git a/python-requests-oauthlib.spec b/python-requests-oauthlib.spec index 3aa0c1c218ad197b13d2e99733802f861e144886..e3ad33da80330c24a1af198ca405b0db472e034e 100644 --- a/python-requests-oauthlib.spec +++ b/python-requests-oauthlib.spec @@ -1,12 +1,14 @@ %global _empty_manifest_terminate_build 0 Name: python-requests-oauthlib Version: 1.3.1 -Release: 2 +Release: 3 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-remove-erroneous-charset-param-from-Content-Type-header.patch +Patch1: backport-will-this-fix-coverage-diff-of-0.0.patch +Patch2: backport-Fix-tox-e-readme-build.patch BuildArch: noarch %description @@ -67,6 +69,10 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu May 16 2024 wuzhaomin - 1.3.1-3 +- will this fix coverage diff of -0.0 +- Fix tox -e readme build + * Sat May 11 2024 dongjiao - 1.3.1-2 - bugfix:remove erroneous charset param from Content-Type header