forked from pool/python-oauthlib
Compare commits
35 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f773679dc9 | |||
| 8a12c28a75 | |||
| 81aa580b09 | |||
| 68b4bf95ba | |||
| afde77faaa | |||
| 2247089cab | |||
| ccddf83d9a | |||
| b95381b878 | |||
| f3b2f2717f | |||
| 10ef2fab41 | |||
| b8ab09684e | |||
| 8d4789bed1 | |||
| 1066dd796c | |||
| e7df79a450 | |||
| dd0ccc39b7 | |||
| 719856c4cb | |||
|
|
77ff072f20 | ||
| 7db70aab0f | |||
| 2a6b20ff29 | |||
| 29d9703c5c | |||
| fdeff4152e | |||
| 27c3f4e41c | |||
| 22fb525ddd | |||
| 126f0990c0 | |||
| cf8e5cfbc0 | |||
| a1d6b108d0 | |||
| 57e29e4f7f | |||
|
|
3af9522ec5 | ||
|
|
db4af0d63d | ||
|
|
8c66e024cd | ||
|
|
7cb34c1c14 | ||
|
|
3a81b0ec87 | ||
|
|
333db0978c | ||
|
|
c7b40b1be0 | ||
|
|
240798a6a6 |
@@ -0,0 +1,37 @@
|
|||||||
|
From 6cbbd16bf7ac0ee6af68dc900cbaa734c52343c8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||||
|
Date: Tue, 24 Oct 2023 15:08:10 +0200
|
||||||
|
Subject: [PATCH] Make UtilsTests.test_filter_params Python 3.13+ compatible
|
||||||
|
|
||||||
|
Since Python 3.13.0a1, docstrings are automatically dedented.
|
||||||
|
See https://github.com/python/cpython/issues/81283
|
||||||
|
and https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes
|
||||||
|
|
||||||
|
As a result, using a docstring with leading space as a test case
|
||||||
|
breaks the test assumption.
|
||||||
|
|
||||||
|
The initial commit which introduced this test a decade ago
|
||||||
|
(6c0c7914f3a57823834b1be492b307992f943629)
|
||||||
|
does not specify why testing the spaces is important.
|
||||||
|
---
|
||||||
|
tests/oauth1/rfc5849/test_utils.py | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/oauth1/rfc5849/test_utils.py b/tests/oauth1/rfc5849/test_utils.py
|
||||||
|
index 013c71a9..22128908 100644
|
||||||
|
--- a/tests/oauth1/rfc5849/test_utils.py
|
||||||
|
+++ b/tests/oauth1/rfc5849/test_utils.py
|
||||||
|
@@ -53,11 +53,11 @@ def test_filter_params(self):
|
||||||
|
# The following is an isolated test function used to test the filter_params decorator.
|
||||||
|
@filter_params
|
||||||
|
def special_test_function(params, realm=None):
|
||||||
|
- """ I am a special test function """
|
||||||
|
+ """I am a special test function"""
|
||||||
|
return 'OAuth ' + ','.join(['='.join([k, v]) for k, v in params])
|
||||||
|
|
||||||
|
# check that the docstring got through
|
||||||
|
- self.assertEqual(special_test_function.__doc__, " I am a special test function ")
|
||||||
|
+ self.assertEqual(special_test_function.__doc__, "I am a special test function")
|
||||||
|
|
||||||
|
# Check that the decorator filtering works as per design.
|
||||||
|
# Any param that does not start with 'oauth'
|
||||||
@@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 24 12:27:53 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Fix build error under Leap.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 9 10:18:06 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Cherry-pick upstream patch to make UtilsTests.test_filter_params Python 3.13+ compatible
|
||||||
|
* Make-UtilsTests.test_filter_params-Python-3.13-compatible.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 12 08:42:35 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Skip failing test with jwt 2.9.0
|
||||||
|
gh#oauthlib/oauthlib#877
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 21 12:28:37 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Fri Apr 21 12:28:37 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-oauthlib
|
# spec file for package python-oauthlib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -26,10 +26,13 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/oauthlib/oauthlib
|
URL: https://github.com/oauthlib/oauthlib
|
||||||
Source: https://files.pythonhosted.org/packages/source/o/oauthlib/oauthlib-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/o/oauthlib/oauthlib-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM gh/oauthlib/oauthlib#866 - Make UtilsTests.test_filter_params Python 3.13+ compatible
|
||||||
|
Patch1: https://github.com/oauthlib/oauthlib/pull/866.patch#/Make-UtilsTests.test_filter_params-Python-3.13-compatible.patch
|
||||||
BuildRequires: %{python_module PyJWT >= 2.0.0}
|
BuildRequires: %{python_module PyJWT >= 2.0.0}
|
||||||
BuildRequires: %{python_module blinker >= 1.4}
|
BuildRequires: %{python_module blinker >= 1.4}
|
||||||
BuildRequires: %{python_module cryptography >= 3.0.0 }
|
BuildRequires: %{python_module cryptography >= 3.0.0 }
|
||||||
BuildRequires: %{python_module pyasn1}
|
BuildRequires: %{python_module pyasn1}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -58,16 +61,24 @@ veneer on top of OAuthLib and get OAuth support for very little effort.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n oauthlib-%{version}
|
%setup -q -n oauthlib-%{version}
|
||||||
|
%patch -P 1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
# Fix python-bytecode-inconsistent-mtime
|
||||||
|
pushd %{buildroot}%{python_sitelib}
|
||||||
|
find . -name '*.pyc' -exec rm -f '{}' ';'
|
||||||
|
python%python_bin_suffix -m compileall *.py ';'
|
||||||
|
popd
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyunittest discover -v
|
# Failing test with JWT 2.9.0 gh#oauthlib/oauthlib#877
|
||||||
|
donttest="test_rsa_bad_keys"
|
||||||
|
%pytest -k "not $donttest"
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|||||||
Reference in New Issue
Block a user