diff --git a/backport-Fix-tox-e-readme-build.patch b/backport-Fix-tox-e-readme-build.patch deleted file mode 100644 index de0f887f56776b82aadd2884467590ea9d5690b0..0000000000000000000000000000000000000000 --- a/backport-Fix-tox-e-readme-build.patch +++ /dev/null @@ -1,23 +0,0 @@ -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-remove-erroneous-charset-param-from-Content-Type-header.patch b/backport-remove-erroneous-charset-param-from-Content-Type-header.patch deleted file mode 100644 index 2c3dc6f948da47c883bef86f363c54bbe78febf2..0000000000000000000000000000000000000000 --- a/backport-remove-erroneous-charset-param-from-Content-Type-header.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 2a2ef2e670d11ee943d98044f548f0a24e27f8ba Mon Sep 17 00:00:00 2001 -From: Pat Patterson -Date: Wed, 27 Jan 2021 09:01:23 -0800 -Subject: [PATCH] Fix for #437 - remove erroneous charset param from - Content-Type header - ---- - requests_oauthlib/oauth2_session.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/requests_oauthlib/oauth2_session.py b/requests_oauthlib/oauth2_session.py -index bfec8e8..fad07f6 100644 ---- a/requests_oauthlib/oauth2_session.py -+++ b/requests_oauthlib/oauth2_session.py -@@ -325,7 +325,7 @@ class OAuth2Session(requests.Session): - - headers = headers or { - "Accept": "application/json", -- "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", -+ "Content-Type": "application/x-www-form-urlencoded", - } - self.token = {} - request_kwargs = {} -@@ -426,7 +426,7 @@ class OAuth2Session(requests.Session): - if headers is None: - headers = { - "Accept": "application/json", -- "Content-Type": ("application/x-www-form-urlencoded;charset=UTF-8"), -+ "Content-Type": ("application/x-www-form-urlencoded"), - } - - r = self.post( --- -2.27.0 - diff --git a/backport-will-this-fix-coverage-diff-of-0.0.patch b/backport-will-this-fix-coverage-diff-of-0.0.patch deleted file mode 100644 index a53c8b10347b0ecae39a63d7c629a5af2314cfd5..0000000000000000000000000000000000000000 --- a/backport-will-this-fix-coverage-diff-of-0.0.patch +++ /dev/null @@ -1,40 +0,0 @@ -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 e3ad33da80330c24a1af198ca405b0db472e034e..4a0e9b5c2fe461f2b968317b01757af983f8610f 100644 --- a/python-requests-oauthlib.spec +++ b/python-requests-oauthlib.spec @@ -1,14 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-requests-oauthlib -Version: 1.3.1 -Release: 3 +Version: 2.0.0 +Release: 1 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 +Source0: https://files.pythonhosted.org/packages/42/f2/05f29bc3913aea15eb670be136045bf5c5bbf4b99ecb839da9b422bb2c85/requests-oauthlib-2.0.0.tar.gz BuildArch: noarch %description @@ -29,7 +26,7 @@ Provides: python3-requests-oauthlib-doc This project provides first-class OAuth library support for `Requests `. %prep -%autosetup -p1 -n requests-oauthlib-1.3.1 +%autosetup -p1 -n requests-oauthlib-2.0.0 %build %py3_build @@ -69,6 +66,11 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Tue Jun 4 2024 lilu -2.0.0-1 +- Update package to version 2.0.0 +- Add support for Python 3.8-3.12, remove support of Python 2.x, <3.7 +- Cleanup some docs and examples + * Thu May 16 2024 wuzhaomin - 1.3.1-3 - will this fix coverage diff of -0.0 - Fix tox -e readme build diff --git a/requests-oauthlib-1.3.1.tar.gz b/requests-oauthlib-1.3.1.tar.gz deleted file mode 100644 index c95532c54b9898b1d77c37a6c658605489e4a572..0000000000000000000000000000000000000000 Binary files a/requests-oauthlib-1.3.1.tar.gz and /dev/null differ diff --git a/requests-oauthlib-2.0.0.tar.gz b/requests-oauthlib-2.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1f95d7d5b57e8529bb848dbaeba2e0f19d0a9a8e Binary files /dev/null and b/requests-oauthlib-2.0.0.tar.gz differ