Accepting request 1133644 from devel:languages:python

- 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/request/show/1133644
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth-httplib2?expand=0&rev=6
This commit is contained in:
Ana Guerrero 2023-12-17 20:32:21 +00:00 committed by Git OBS Bridge
commit c1db3f6c9c
5 changed files with 19 additions and 24 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c64bc555fdc6dd788ea62ecf7bccffcf497bf77244887a3f3d7a5a02f8e3fc29
size 10817

BIN
google-auth-httplib2-0.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Dec 16 20:16:51 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 Mon Sep 18 14:42:19 UTC 2023 - pgajdos@suse.com

View File

@ -18,21 +18,20 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-google-auth-httplib2 Name: python-google-auth-httplib2
Version: 0.1.1 Version: 0.2.0
Release: 0 Release: 0
Summary: Google Authentication Library: httplib2 transport Summary: Google Authentication Library: httplib2 transport
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2 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 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 Flask}
BuildRequires: %{python_module google-auth} BuildRequires: %{python_module google-auth}
BuildRequires: %{python_module httplib2 >= 0.15.0} BuildRequires: %{python_module httplib2 >= 0.15.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-localserver} BuildRequires: %{python_module pytest-localserver}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-google-auth Requires: python-google-auth
@ -47,10 +46,10 @@ This library provides an `httplib2`_ transport for `google-auth`_.
%autosetup -p1 -n google-auth-httplib2-%{version} %autosetup -p1 -n google-auth-httplib2-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@ -59,7 +58,8 @@ This library provides an `httplib2`_ transport for `google-auth`_.
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python_sitelib}/__pycache__ %{python_sitelib}/google_auth_httplib2.py
%{python_sitelib}/google_auth_httplib2* %pycache_only %{python_sitelib}/__pycache__/google_auth_httplib*
%{python_sitelib}/google_auth_httplib2-%{version}.dist-info
%changelog %changelog