From 93255e1c247c3664bc0497d6c4896e68c02415982031e2b70b16f6cbc53d3229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 08:24:43 +0000 Subject: [PATCH] - Update to 1.2.2 * Do not include docs/conf.py & scripts in wheel (#328) * Let OS select an available port when running TestInstalledAppFlow (#407) * Remove setup.cfg configuration for creating universal wheels (#405) - Refresh python-google-auth-oauthlib-no-mock.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth-oauthlib?expand=0&rev=38 --- .gitattributes | 23 ++++ .gitignore | 1 + google-auth-oauthlib-1.2.0.tar.gz | 3 + google_auth_oauthlib-1.2.1.tar.gz | 3 + google_auth_oauthlib-1.2.2.tar.gz | 3 + python-google-auth-oauthlib-no-mock.patch | 48 +++++++ python-google-auth-oauthlib.changes | 156 ++++++++++++++++++++++ python-google-auth-oauthlib.spec | 80 +++++++++++ 8 files changed, 317 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 google-auth-oauthlib-1.2.0.tar.gz create mode 100644 google_auth_oauthlib-1.2.1.tar.gz create mode 100644 google_auth_oauthlib-1.2.2.tar.gz create mode 100644 python-google-auth-oauthlib-no-mock.patch create mode 100644 python-google-auth-oauthlib.changes create mode 100644 python-google-auth-oauthlib.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/google-auth-oauthlib-1.2.0.tar.gz b/google-auth-oauthlib-1.2.0.tar.gz new file mode 100644 index 0000000..638838c --- /dev/null +++ b/google-auth-oauthlib-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:292d2d3783349f2b0734a0a0207b1e1e322ac193c2c09d8f7c613fb7cc501ea8 +size 24829 diff --git a/google_auth_oauthlib-1.2.1.tar.gz b/google_auth_oauthlib-1.2.1.tar.gz new file mode 100644 index 0000000..e9189b8 --- /dev/null +++ b/google_auth_oauthlib-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afd0cad092a2eaa53cd8e8298557d6de1034c6cb4a740500b5357b648af97263 +size 24970 diff --git a/google_auth_oauthlib-1.2.2.tar.gz b/google_auth_oauthlib-1.2.2.tar.gz new file mode 100644 index 0000000..60a0e3d --- /dev/null +++ b/google_auth_oauthlib-1.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11046fb8d3348b296302dd939ace8af0a724042e8029c1b872d87fabc9f41684 +size 20955 diff --git a/python-google-auth-oauthlib-no-mock.patch b/python-google-auth-oauthlib-no-mock.patch new file mode 100644 index 0000000..a3c46cc --- /dev/null +++ b/python-google-auth-oauthlib-no-mock.patch @@ -0,0 +1,48 @@ +diff -Nru google_auth_oauthlib-1.2.2.orig/tests/unit/test_flow.py google_auth_oauthlib-1.2.2/tests/unit/test_flow.py +--- google_auth_oauthlib-1.2.2.orig/tests/unit/test_flow.py 2025-04-22 18:36:18.000000000 +0200 ++++ google_auth_oauthlib-1.2.2/tests/unit/test_flow.py 2025-05-19 15:48:51.119128294 +0200 +@@ -20,7 +20,7 @@ + import re + import socket + +-import mock ++from unittest import mock + import pytest + import requests + import urllib +diff -Nru google_auth_oauthlib-1.2.2.orig/tests/unit/test_helpers.py google_auth_oauthlib-1.2.2/tests/unit/test_helpers.py +--- google_auth_oauthlib-1.2.2.orig/tests/unit/test_helpers.py 2025-04-22 18:36:18.000000000 +0200 ++++ google_auth_oauthlib-1.2.2/tests/unit/test_helpers.py 2025-05-19 15:48:51.117975705 +0200 +@@ -16,7 +16,7 @@ + import json + import os + +-import mock ++from unittest import mock + import pytest + + from google.auth import external_account_authorized_user +diff -Nru google_auth_oauthlib-1.2.2.orig/tests/unit/test_interactive.py google_auth_oauthlib-1.2.2/tests/unit/test_interactive.py +--- google_auth_oauthlib-1.2.2.orig/tests/unit/test_interactive.py 2025-04-22 18:36:18.000000000 +0200 ++++ google_auth_oauthlib-1.2.2/tests/unit/test_interactive.py 2025-05-19 15:48:51.116736793 +0200 +@@ -14,7 +14,7 @@ + + import socket + +-import mock ++from unittest import mock + import pytest + + +diff -Nru google_auth_oauthlib-1.2.2.orig/tests/unit/test_tool.py google_auth_oauthlib-1.2.2/tests/unit/test_tool.py +--- google_auth_oauthlib-1.2.2.orig/tests/unit/test_tool.py 2025-04-22 18:36:18.000000000 +0200 ++++ google_auth_oauthlib-1.2.2/tests/unit/test_tool.py 2025-05-19 15:48:51.114736755 +0200 +@@ -19,7 +19,7 @@ + + import click.testing + import google.oauth2.credentials +-import mock ++from unittest import mock + import pytest + + import google_auth_oauthlib.flow diff --git a/python-google-auth-oauthlib.changes b/python-google-auth-oauthlib.changes new file mode 100644 index 0000000..f17f1bd --- /dev/null +++ b/python-google-auth-oauthlib.changes @@ -0,0 +1,156 @@ +------------------------------------------------------------------- +Mon May 19 13:49:14 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.2.2 + * Do not include docs/conf.py & scripts in wheel (#328) + * Let OS select an available port when running TestInstalledAppFlow (#407) + * Remove setup.cfg configuration for creating universal wheels (#405) +- Refresh python-google-auth-oauthlib-no-mock.patch + +------------------------------------------------------------------- +Mon Jul 15 13:24:24 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 1.2.1 + * Clean up local server socket on error (#339) +- Adjust upstream source name in spec file + +------------------------------------------------------------------- +Thu Feb 29 23:23:16 UTC 2024 - Steve Kowalik + +- Switch to autosetup macro. + +------------------------------------------------------------------- +Sat Dec 16 20:21:10 UTC 2023 - Dirk Müller + +- update to 1.2.0: + * Add support for Python 3.12 (#318) + * Use setuptools.find_namespace_packages (#321) + +------------------------------------------------------------------- +Thu Oct 5 09:03:50 UTC 2023 - Dirk Müller + +- update to 1.1.0: + * Adding support to specify browser while launching browser to + authention (#305) (1a9dca8), closes #303 + * Pass thru OAuth audience during + InstalledAppFlow.run_local_server (#300) (fe08531) + * Fix grammar with fetch_token docstring (#273) (b2e3688) + +------------------------------------------------------------------- +Sun Jul 2 12:51:37 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Apr 3 08:08:21 UTC 2023 - pgajdos@suse.com + +- python-six is not required + +------------------------------------------------------------------- +Tue Mar 7 10:38:03 UTC 2023 - John Paul Adrian Glaubitz + +- Update to 1.0.0 + * PKCE is enabled by default. (#269) + * Change the library from preview to stable (#267) + * Remove deprecated OOB code (1391486) + +------------------------------------------------------------------- +Wed Jan 4 22:20:07 UTC 2023 - Dirk Müller + +- update to v0.8.0: + * Add support for Python 3.11 + * Introduce granted scopes to credentials + +------------------------------------------------------------------- +Mon Nov 7 17:14:38 UTC 2022 - John Paul Adrian Glaubitz + +- Update to 0.7.1 + * Include updates to properties from Google Auth lib (#249) +- from version 0.7.0 + * **setup.py:** increase required google-auth version to >= 2.13.0 (f8a15f7) +- from version 0.6.0 + * Update to allow for 3PI credentials (#240) + * Add timeout to run_local_server when waiting for response (#245) + * Update readme to point to current docs url (#241) +- Refresh patches for new version + * python-google-auth-oauthlib-no-mock.patch +- Update Requires from setup.py + +------------------------------------------------------------------- +Wed Oct 12 03:29:53 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.5.3 + Bug Fixes + * Pass port range from get_user_credentials to find_open_port + +------------------------------------------------------------------- +Tue Sep 13 09:23:59 UTC 2022 - John Paul Adrian Glaubitz + +- Update to 0.5.2 + * fix changelog header to consistent size (#204) + +------------------------------------------------------------------- +Wed Jun 8 11:56:35 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build +- added patches + fix https://github.com/googleapis/google-auth-library-python-oauthlib/issues/207 + + python-google-auth-oauthlib-no-mock.patch + +------------------------------------------------------------------- +Wed Apr 13 11:59:18 UTC 2022 - John Paul Adrian Glaubitz + +- Update to 0.5.1 + * avoid deprecated "out-of-band" authentication flow (#186) +- from version 0.5.0 + * deprecate OAuth out-of-band flow (#175) +- from version 0.4.6 + * remove dependency on `six` (#146), closes (#145) + +------------------------------------------------------------------- +Fri Aug 20 11:44:53 UTC 2021 - John Paul Adrian Glaubitz + +- Update 0.4.5: + * fix links to installed app, client secrets docs (#86) + * omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) + * add Samples section to CONTRIBUTING.rst (#134) + * release as 0.4.5 (#137) +- from version 0.4.4 + * add redirect_uri_trailing slash param to run_local_server (#111) +- from version 0.4.3 + * add `charset-utf-8` to response header (#104) + * **deps:** add lower bounds to all dependencies (#99) +- from version 0.4.2 + * don't open browser if port is occupied (#92) +- Update BuildRequires from setup.py + +------------------------------------------------------------------- +Tue May 26 06:34:28 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Mon Apr 20 11:55:01 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Tue Oct 8 09:01:57 UTC 2019 - Tomáš Chvátal + +- Update to 0.4.1: + * Don't auto-generate code_verifier by default. (#48) + +------------------------------------------------------------------- +Thu Sep 12 11:30:53 UTC 2019 - Tomáš Chvátal + +- Update to 0.4.0: + * Add get_user_credentials function to get your user credentials (#40) + * Add noxfile (#43) + * Implement code verifier (PKCE) (#42) + * Use actual server port in redirect_uri to allow automatic assignment (#33) + * Fix links after repo move to googleapis (#41) + +------------------------------------------------------------------- +Thu May 2 17:31:50 UTC 2019 - Todd R + +- Initial version diff --git a/python-google-auth-oauthlib.spec b/python-google-auth-oauthlib.spec new file mode 100644 index 0000000..8d4c560 --- /dev/null +++ b/python-google-auth-oauthlib.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-google-auth-oauthlib +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-google-auth-oauthlib +Version: 1.2.2 +Release: 0 +Summary: Google authentication library +License: Apache-2.0 +URL: https://github.com/googleapis/google-auth-library-python-oauthlib +Source: https://files.pythonhosted.org/packages/source/g/google_auth_oauthlib/google_auth_oauthlib-%{version}.tar.gz +# https://github.com/googleapis/google-auth-library-python-oauthlib/issues/207 +Patch0: python-google-auth-oauthlib-no-mock.patch +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-google-auth >= 2.14.0 +Requires: python-requests-oauthlib >= 0.7.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives +Recommends: python-click +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module click >= 6.0.0} +BuildRequires: %{python_module google-auth >= 1.0.0} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests-oauthlib >= 0.7.0} +# /SECTION +%python_subpackages + +%description +This library provides oauthlib integration with google-auth. + +%prep +%autosetup -p1 -n google_auth_oauthlib-%{version} +rm -rf docs +rm -rf tests/__pycache__/ +rm -rf tests/*.pyc + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/google-oauthlib-tool +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative google-oauthlib-tool + +%postun +%python_uninstall_alternative google-oauthlib-tool + +%files %{python_files} +%doc README.rst +%license LICENSE +%python_alternative %{_bindir}/google-oauthlib-tool +%{python_sitelib}/google_auth_oauthlib +%{python_sitelib}/google_auth_oauthlib-%{version}.dist-info + +%changelog