1
0
python-google-auth/python-google-auth.spec
Markéta Machová 3e9ae989ae Accepting request 860736 from home:buschmann23:branches:devel:languages:python
- Update to 1.24.0
  * add Python 3.9 support, drop Python 3.5 support
    (gh#googleapis/google-auth-library-python#654)
  * avoid losing the original '_include_email' parameter in impersonated
    credentials (gh#googleapis/google-auth-library-python#626)
- from version 1.23.0
  * Add custom scopes for access tokens from the metadata service
    (gh#googleapis/google-auth-library-python#633)
  * remove checks for ancient versions of Cryptography
- from version 1.22.1
  * move aiohttp to extra as it is currently internal surface
    (gh#googleapis/google-auth-library-python#619)
- from version 1.22.0
  * add asyncio based auth flow
    (gh#googleapis/google-auth-library-python#612)
- from version 1.21.3
  * fix expiry for to_json()
    (gh#googleapis/google-auth-library-python#589)
- Skip build for python2 as it is not supported anymore and unit tests
  can not be run because of unsatisfiable dependencies (mock >= 3.6)
- Add urllib3 to the build requirements needed for testing and remove
  cryptography

OBS-URL: https://build.opensuse.org/request/show/860736
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=28
2021-01-06 14:16:09 +00:00

79 lines
2.5 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package python-google-auth
#
# Copyright (c) 2021 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: 1.24.0
Release: 0
Summary: Google Authentication Library
License: Apache-2.0
URL: https://github.com/GoogleCloudPlatform/google-auth-library-python
Source: https://files.pythonhosted.org/packages/source/g/google-auth/google-auth-%{version}.tar.gz
BuildRequires: %{python_module cachetools >= 2.0.0}
BuildRequires: %{python_module pyasn1-modules >= 0.2.1}
BuildRequires: %{python_module rsa >= 3.1.4}
BuildRequires: %{python_module setuptools >= 40.3.0}
BuildRequires: %{python_module six >= 1.9.0}
# START TESTING SECTION
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module oauth2client-gce}
BuildRequires: %{python_module oauth2client}
BuildRequires: %{python_module pyOpenSSL}
BuildRequires: %{python_module pytest-localserver}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module responses}
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
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}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog