From 89e09c4483f2d6e86fe164047328954993afaaeeb7b46692c296491c3e7979d2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 16 Dec 2023 20:17:27 +0000 Subject: [PATCH] - update to 0.2.0: * Add support for Python 3.12 (#126) * Remove third-party mock library (#124) - drop python-google-auth-httplib2-no-mock.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth-httplib2?expand=0&rev=12 --- google-auth-httplib2-0.1.1.tar.gz | 3 --- google-auth-httplib2-0.2.0.tar.gz | 3 +++ python-google-auth-httplib2-no-mock.patch | 13 ------------- python-google-auth-httplib2.changes | 8 ++++++++ python-google-auth-httplib2.spec | 16 ++++++++-------- 5 files changed, 19 insertions(+), 24 deletions(-) delete mode 100644 google-auth-httplib2-0.1.1.tar.gz create mode 100644 google-auth-httplib2-0.2.0.tar.gz delete mode 100644 python-google-auth-httplib2-no-mock.patch diff --git a/google-auth-httplib2-0.1.1.tar.gz b/google-auth-httplib2-0.1.1.tar.gz deleted file mode 100644 index ec90a70..0000000 --- a/google-auth-httplib2-0.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c64bc555fdc6dd788ea62ecf7bccffcf497bf77244887a3f3d7a5a02f8e3fc29 -size 10817 diff --git a/google-auth-httplib2-0.2.0.tar.gz b/google-auth-httplib2-0.2.0.tar.gz new file mode 100644 index 0000000..a0a7828 --- /dev/null +++ b/google-auth-httplib2-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38aa7badf48f974f1eb9861794e9c0cb2a0511a4ec0679b1f886d108f5640e05 +size 10842 diff --git a/python-google-auth-httplib2-no-mock.patch b/python-google-auth-httplib2-no-mock.patch deleted file mode 100644 index f7783a9..0000000 --- a/python-google-auth-httplib2-no-mock.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: google-auth-httplib2-0.1.1/tests/test_google_auth_httplib2.py -=================================================================== ---- google-auth-httplib2-0.1.1.orig/tests/test_google_auth_httplib2.py -+++ google-auth-httplib2-0.1.1/tests/test_google_auth_httplib2.py -@@ -16,7 +16,7 @@ import http.client - import io - - import httplib2 --import mock -+from unittest import mock - - import google_auth_httplib2 - from tests import compliance diff --git a/python-google-auth-httplib2.changes b/python-google-auth-httplib2.changes index fbcad9f..69928fb 100644 --- a/python-google-auth-httplib2.changes +++ b/python-google-auth-httplib2.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sat Dec 16 20:16:51 UTC 2023 - Dirk Müller + +- update to 0.2.0: + * Add support for Python 3.12 (#126) + * Remove third-party mock library (#124) +- drop python-google-auth-httplib2-no-mock.patch (upstream) + ------------------------------------------------------------------- Mon Sep 18 14:42:19 UTC 2023 - pgajdos@suse.com diff --git a/python-google-auth-httplib2.spec b/python-google-auth-httplib2.spec index f567ce4..aab660e 100644 --- a/python-google-auth-httplib2.spec +++ b/python-google-auth-httplib2.spec @@ -18,21 +18,20 @@ %{?sle15_python_module_pythons} Name: python-google-auth-httplib2 -Version: 0.1.1 +Version: 0.2.0 Release: 0 Summary: Google Authentication Library: httplib2 transport License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2 Source: https://files.pythonhosted.org/packages/source/g/google-auth-httplib2/google-auth-httplib2-%{version}.tar.gz -# https://github.com/googleapis/google-auth-library-python-httplib2/issues/68 -Patch0: python-google-auth-httplib2-no-mock.patch BuildRequires: %{python_module Flask} BuildRequires: %{python_module google-auth} BuildRequires: %{python_module httplib2 >= 0.15.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-localserver} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-google-auth @@ -47,10 +46,10 @@ This library provides an `httplib2`_ transport for `google-auth`_. %autosetup -p1 -n google-auth-httplib2-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -59,7 +58,8 @@ This library provides an `httplib2`_ transport for `google-auth`_. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/__pycache__ -%{python_sitelib}/google_auth_httplib2* +%{python_sitelib}/google_auth_httplib2.py +%pycache_only %{python_sitelib}/__pycache__/google_auth_httplib* +%{python_sitelib}/google_auth_httplib2-%{version}.dist-info %changelog