1
0
python-google-auth/python-google-auth.spec

91 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-google-auth
#
Accepting request 949379 from home:buschmann23:branches:devel:languages:python - Update to 2.5.0 * ADC can load an impersonated service account credentials. (#965) - from version 2.4.1 * fix urrlib3 import (gh#googleapis/google-auth-library-python#953) - from version 2.4.0 * add 'py.typed' declaration (#919) * add api key support (#826) * deps: allow cachetools 5.0 for python 3.7+ (gh#googleapis/google-auth-library-python#937) * fix the message format for metadata server exception (gh#googleapis/google-auth-library-python#916) - from version 2.3.3 * add fetch_id_token_credentials (gh#googleapis/google-auth-library-python#866) * fix error in sign_bytes (gh#googleapis/google-auth-library-python#905) * use 'int.to_bytes' and 'int.from_bytes' for py3 (gh#googleapis/google-auth-library-python#904) - from version 2.3.2 * add clock_skew_in_seconds to verify_token functions (gh#googleapis/google-auth-library-python#894) - from version 2.3.1 * add back python 2.7 for gcloud usage only (gh#googleapis/google-auth-library-python#892) - from version 2.3.0 * add support for Python 3.10 (#882) * ADC with impersonated workforce pools (gh#googleapis/google-auth-library-python#877) - from version 2.2.1 * disable self signed jwt for domain wide delegation (gh#googleapis/google-auth-library-python#873) - from version 2.2.0 * add support for workforce pool credentials (#868) - from version 2.1.0 * Improve handling of clock skew (#858) * add SAML challenge to reauth (gh#googleapis/google-auth-library-python#819) * disable warning if quota project id provided to auth.default() (gh#googleapis/google-auth-library-python#856) * rename CLOCK_SKEW and separate client/server user case (gh#googleapis/google-auth-library-python#863) - from version 2.0.2 * use 'int.to_bytes' rather than deprecated crypto wrapper (gh#googleapis/google-auth-library-python#848) * use int.from_bytes (gh#googleapis/google-auth-library-python#846) OBS-URL: https://build.opensuse.org/request/show/949379 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=31
2022-01-28 14:16:45 +01:00
# Copyright (c) 2022 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/
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-google-auth
Version: 2.7.0
Release: 0
Summary: Google Authentication Library
License: Apache-2.0
URL: https://github.com/googleapis/google-auth-library-python
Source: https://files.pythonhosted.org/packages/source/g/google-auth/google-auth-%{version}.tar.gz
Accepting request 913294 from home:glaubitz:branches:devel:languages:python - Update to 2.0.1 * normalize AWS paths correctly on windows (#842) - from version 2.0.0 * drop support for Python 2.7 (#778) * service account is able to use a private token endpoint (#835) * downscoping documentation bugs (#830) * Fix missing space in error message. (#821) * update user guide/references for downscoped creds (#827) - from version 1.34.0 * support refresh callable on google.oauth2.credentials.Credentials (#812) * do not use the GAE APIs on gen2+ runtimes (#807) - from version 1.33.1 * fallback to source creds expiration in downscoped tokens (#805) * revert "feat: service account is able to use a private token endpoint (#784) - from version 1.33.0 * define `CredentialAccessBoundary` classes (#793) * define `google.auth.downscoped.Credentials` class (#801) * service account is able to use a private token endpoint (#784) * fix fetch_id_token credential lookup order to match adc (#748) * fix code block formatting in 'user-guide.rst' (#794) - from version 1.32.1 * avoid leaking sub-session created for '_auth_request' (#789) - from version 1.32.0 * allow scopes for self signed jwt (#776) - from version 1.31.0 * define useful properties on `google.auth.external_account.Credentials` (#770) * avoid deleting items while iterating (#772) - from version 1.30.2 * **dependencies:** add urllib3 and requests to aiohttp extra (#755) * enforce constraints during unit tests (#760) OBS-URL: https://build.opensuse.org/request/show/913294 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=30
2021-08-20 15:11:54 +02:00
Patch0: ga_python-executable-name.patch
# https://github.com/googleapis/google-auth-library-python/issues/1055
Patch1: python-google-auth-no-mock.patch
BuildRequires: %{python_module Flask}
# START TESTING SECTION
Accepting request 949379 from home:buschmann23:branches:devel:languages:python - Update to 2.5.0 * ADC can load an impersonated service account credentials. (#965) - from version 2.4.1 * fix urrlib3 import (gh#googleapis/google-auth-library-python#953) - from version 2.4.0 * add 'py.typed' declaration (#919) * add api key support (#826) * deps: allow cachetools 5.0 for python 3.7+ (gh#googleapis/google-auth-library-python#937) * fix the message format for metadata server exception (gh#googleapis/google-auth-library-python#916) - from version 2.3.3 * add fetch_id_token_credentials (gh#googleapis/google-auth-library-python#866) * fix error in sign_bytes (gh#googleapis/google-auth-library-python#905) * use 'int.to_bytes' and 'int.from_bytes' for py3 (gh#googleapis/google-auth-library-python#904) - from version 2.3.2 * add clock_skew_in_seconds to verify_token functions (gh#googleapis/google-auth-library-python#894) - from version 2.3.1 * add back python 2.7 for gcloud usage only (gh#googleapis/google-auth-library-python#892) - from version 2.3.0 * add support for Python 3.10 (#882) * ADC with impersonated workforce pools (gh#googleapis/google-auth-library-python#877) - from version 2.2.1 * disable self signed jwt for domain wide delegation (gh#googleapis/google-auth-library-python#873) - from version 2.2.0 * add support for workforce pool credentials (#868) - from version 2.1.0 * Improve handling of clock skew (#858) * add SAML challenge to reauth (gh#googleapis/google-auth-library-python#819) * disable warning if quota project id provided to auth.default() (gh#googleapis/google-auth-library-python#856) * rename CLOCK_SKEW and separate client/server user case (gh#googleapis/google-auth-library-python#863) - from version 2.0.2 * use 'int.to_bytes' rather than deprecated crypto wrapper (gh#googleapis/google-auth-library-python#848) * use int.from_bytes (gh#googleapis/google-auth-library-python#846) OBS-URL: https://build.opensuse.org/request/show/949379 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=31
2022-01-28 14:16:45 +01:00
BuildRequires: %{python_module aiohttp >= 3.6.2}
BuildRequires: %{python_module cachetools >= 2.0.0}
BuildRequires: %{python_module freezegun}
Accepting request 949379 from home:buschmann23:branches:devel:languages:python - Update to 2.5.0 * ADC can load an impersonated service account credentials. (#965) - from version 2.4.1 * fix urrlib3 import (gh#googleapis/google-auth-library-python#953) - from version 2.4.0 * add 'py.typed' declaration (#919) * add api key support (#826) * deps: allow cachetools 5.0 for python 3.7+ (gh#googleapis/google-auth-library-python#937) * fix the message format for metadata server exception (gh#googleapis/google-auth-library-python#916) - from version 2.3.3 * add fetch_id_token_credentials (gh#googleapis/google-auth-library-python#866) * fix error in sign_bytes (gh#googleapis/google-auth-library-python#905) * use 'int.to_bytes' and 'int.from_bytes' for py3 (gh#googleapis/google-auth-library-python#904) - from version 2.3.2 * add clock_skew_in_seconds to verify_token functions (gh#googleapis/google-auth-library-python#894) - from version 2.3.1 * add back python 2.7 for gcloud usage only (gh#googleapis/google-auth-library-python#892) - from version 2.3.0 * add support for Python 3.10 (#882) * ADC with impersonated workforce pools (gh#googleapis/google-auth-library-python#877) - from version 2.2.1 * disable self signed jwt for domain wide delegation (gh#googleapis/google-auth-library-python#873) - from version 2.2.0 * add support for workforce pool credentials (#868) - from version 2.1.0 * Improve handling of clock skew (#858) * add SAML challenge to reauth (gh#googleapis/google-auth-library-python#819) * disable warning if quota project id provided to auth.default() (gh#googleapis/google-auth-library-python#856) * rename CLOCK_SKEW and separate client/server user case (gh#googleapis/google-auth-library-python#863) - from version 2.0.2 * use 'int.to_bytes' rather than deprecated crypto wrapper (gh#googleapis/google-auth-library-python#848) * use int.from_bytes (gh#googleapis/google-auth-library-python#846) OBS-URL: https://build.opensuse.org/request/show/949379 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=31
2022-01-28 14:16:45 +01:00
BuildRequires: %{python_module pyOpenSSL >= 20.0.0}
BuildRequires: %{python_module pyasn1-modules >= 0.2.1}
BuildRequires: %{python_module pytest-localserver}
BuildRequires: %{python_module pytest}
Accepting request 949379 from home:buschmann23:branches:devel:languages:python - Update to 2.5.0 * ADC can load an impersonated service account credentials. (#965) - from version 2.4.1 * fix urrlib3 import (gh#googleapis/google-auth-library-python#953) - from version 2.4.0 * add 'py.typed' declaration (#919) * add api key support (#826) * deps: allow cachetools 5.0 for python 3.7+ (gh#googleapis/google-auth-library-python#937) * fix the message format for metadata server exception (gh#googleapis/google-auth-library-python#916) - from version 2.3.3 * add fetch_id_token_credentials (gh#googleapis/google-auth-library-python#866) * fix error in sign_bytes (gh#googleapis/google-auth-library-python#905) * use 'int.to_bytes' and 'int.from_bytes' for py3 (gh#googleapis/google-auth-library-python#904) - from version 2.3.2 * add clock_skew_in_seconds to verify_token functions (gh#googleapis/google-auth-library-python#894) - from version 2.3.1 * add back python 2.7 for gcloud usage only (gh#googleapis/google-auth-library-python#892) - from version 2.3.0 * add support for Python 3.10 (#882) * ADC with impersonated workforce pools (gh#googleapis/google-auth-library-python#877) - from version 2.2.1 * disable self signed jwt for domain wide delegation (gh#googleapis/google-auth-library-python#873) - from version 2.2.0 * add support for workforce pool credentials (#868) - from version 2.1.0 * Improve handling of clock skew (#858) * add SAML challenge to reauth (gh#googleapis/google-auth-library-python#819) * disable warning if quota project id provided to auth.default() (gh#googleapis/google-auth-library-python#856) * rename CLOCK_SKEW and separate client/server user case (gh#googleapis/google-auth-library-python#863) - from version 2.0.2 * use 'int.to_bytes' rather than deprecated crypto wrapper (gh#googleapis/google-auth-library-python#848) * use int.from_bytes (gh#googleapis/google-auth-library-python#846) OBS-URL: https://build.opensuse.org/request/show/949379 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=31
2022-01-28 14:16:45 +01:00
BuildRequires: %{python_module pyu2f >= 0.1.5}
BuildRequires: %{python_module requests >= 2.20.0}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module rsa >= 3.1.4}
BuildRequires: %{python_module setuptools >= 40.3.0}
BuildRequires: %{python_module six >= 1.9.0}
BuildRequires: %{python_module urllib3}
# END TESTING SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cachetools >= 2.0.0
Requires: python-pyasn1-modules >= 0.2.1
Requires: python-rsa >= 3.1.4
Requires: python-setuptools >= 40.3.0
Requires: python-six >= 1.9.0
Accepting request 949379 from home:buschmann23:branches:devel:languages:python - Update to 2.5.0 * ADC can load an impersonated service account credentials. (#965) - from version 2.4.1 * fix urrlib3 import (gh#googleapis/google-auth-library-python#953) - from version 2.4.0 * add 'py.typed' declaration (#919) * add api key support (#826) * deps: allow cachetools 5.0 for python 3.7+ (gh#googleapis/google-auth-library-python#937) * fix the message format for metadata server exception (gh#googleapis/google-auth-library-python#916) - from version 2.3.3 * add fetch_id_token_credentials (gh#googleapis/google-auth-library-python#866) * fix error in sign_bytes (gh#googleapis/google-auth-library-python#905) * use 'int.to_bytes' and 'int.from_bytes' for py3 (gh#googleapis/google-auth-library-python#904) - from version 2.3.2 * add clock_skew_in_seconds to verify_token functions (gh#googleapis/google-auth-library-python#894) - from version 2.3.1 * add back python 2.7 for gcloud usage only (gh#googleapis/google-auth-library-python#892) - from version 2.3.0 * add support for Python 3.10 (#882) * ADC with impersonated workforce pools (gh#googleapis/google-auth-library-python#877) - from version 2.2.1 * disable self signed jwt for domain wide delegation (gh#googleapis/google-auth-library-python#873) - from version 2.2.0 * add support for workforce pool credentials (#868) - from version 2.1.0 * Improve handling of clock skew (#858) * add SAML challenge to reauth (gh#googleapis/google-auth-library-python#819) * disable warning if quota project id provided to auth.default() (gh#googleapis/google-auth-library-python#856) * rename CLOCK_SKEW and separate client/server user case (gh#googleapis/google-auth-library-python#863) - from version 2.0.2 * use 'int.to_bytes' rather than deprecated crypto wrapper (gh#googleapis/google-auth-library-python#848) * use int.from_bytes (gh#googleapis/google-auth-library-python#846) OBS-URL: https://build.opensuse.org/request/show/949379 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=31
2022-01-28 14:16:45 +01:00
Recommends: python-aiohttp >= 3.6.2
Recommends: python-pyOpenSSL >= 20.0.0
Recommends: python-pyu2f >= 0.1.5
Recommends: python-requests >= 2.20.0
BuildArch: noarch
%python_subpackages
%description
This library simplifies using Googles various server-to-server authentication mechanisms to access Google APIs.
%prep
%setup -q -n google-auth-%{version}
Accepting request 913294 from home:glaubitz:branches:devel:languages:python - Update to 2.0.1 * normalize AWS paths correctly on windows (#842) - from version 2.0.0 * drop support for Python 2.7 (#778) * service account is able to use a private token endpoint (#835) * downscoping documentation bugs (#830) * Fix missing space in error message. (#821) * update user guide/references for downscoped creds (#827) - from version 1.34.0 * support refresh callable on google.oauth2.credentials.Credentials (#812) * do not use the GAE APIs on gen2+ runtimes (#807) - from version 1.33.1 * fallback to source creds expiration in downscoped tokens (#805) * revert "feat: service account is able to use a private token endpoint (#784) - from version 1.33.0 * define `CredentialAccessBoundary` classes (#793) * define `google.auth.downscoped.Credentials` class (#801) * service account is able to use a private token endpoint (#784) * fix fetch_id_token credential lookup order to match adc (#748) * fix code block formatting in 'user-guide.rst' (#794) - from version 1.32.1 * avoid leaking sub-session created for '_auth_request' (#789) - from version 1.32.0 * allow scopes for self signed jwt (#776) - from version 1.31.0 * define useful properties on `google.auth.external_account.Credentials` (#770) * avoid deleting items while iterating (#772) - from version 1.30.2 * **dependencies:** add urllib3 and requests to aiohttp extra (#755) * enforce constraints during unit tests (#760) OBS-URL: https://build.opensuse.org/request/show/913294 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=30
2021-08-20 15:11:54 +02:00
%patch0 -p1
%patch1 -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# don't test deprecated oauth2client utilities if we don't have it anymore
%pytest --ignore tests/test__oauth2client.py
%files %{python_files}
%license LICENSE
%doc README.rst
%dir %{python_sitelib}/google
%{python_sitelib}/google/auth
%{python_sitelib}/google/oauth2
%{python_sitelib}/google_auth-%{version}*-info
%{python_sitelib}/google_auth-%{version}*-nspkg.pth
%changelog