%define scl rh-python36 %{?scl:%scl_package %{name}} %{!?scl:%global pkg_name %{name}} %define name google-auth %define version 1.11.3 %define unmangled_version 1.11.3 %define unmangled_version 1.11.3 %define release 1 Summary: Google Authentication Library %{?scl:Requires: %{scl}-runtime} %{?scl:BuildRequires: %{scl}-runtime} Name: %{?scl_prefix}google-auth Version: %{version} Release: %{release} Source0: google-auth-%{unmangled_version}.tar.gz License: Apache 2.0 Group: Development/Libraries BuildRoot: %{_tmppath}/google-auth-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Google Cloud Platform Packager: Martin Juhl Url: https://github.com/GoogleCloudPlatform/google-auth-library-python %description Google Auth Python Library ========================== |build| |docs| |pypi| This library simplifies using Google's various server-to-server authentication mechanisms to access Google APIs. .. |build| image:: https://travis-ci.org/GoogleCloudPlatform/google-auth-library-python.svg?branch=master :target: https://travis-ci.org/GoogleCloudPlatform/google-auth-library-python .. |docs| image:: https://readthedocs.org/projects/google-auth/badge/?version=latest :target: https://google-auth.readthedocs.io/en/latest/ .. |pypi| image:: https://img.shields.io/pypi/v/google-auth.svg :target: https://pypi.python.org/pypi/google-auth Installing ---------- You can install using `pip`_:: $ pip install google-auth .. _pip: https://pip.pypa.io/en/stable/ For more information on setting up your Python development environment, please refer to `Python Development Environment Setup Guide`_ for Google Cloud Platform. .. _`Python Development Environment Setup Guide`: https://cloud.google.com/python/setup Supported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^ Python >= 3.4 Deprecated Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^^ Python == 2.7. Python 2.7 support will be removed on January 1, 2020. Documentation ------------- Google Auth Python Library has usage and reference documentation at `google-auth.readthedocs.io `_. Maintainers ----------- - `@theacodes `_ (Thea Flowers) - `@dhermes `_ (Danny Hermes) - `@lukesneeringer `_ (Luke Sneeringer) Contributing ------------ Contributions to this library are always welcome and highly encouraged. See `CONTRIBUTING.rst`_ for more information on how to get started. .. _CONTRIBUTING.rst: https://github.com/GoogleCloudPlatform/google-auth-library-python/blob/master/CONTRIBUTING.rst License ------- Apache 2.0 - See `the LICENSE`_ for more information. .. _the LICENSE: https://github.com/GoogleCloudPlatform/google-auth-library-python/blob/master/LICENSE %prep %{?scl:scl enable %{scl} - << \EOF} set -ex %setup -n google-auth-%{unmangled_version} -n google-auth-%{unmangled_version} %{?scl:EOF} %build %{?scl:scl enable %{scl} - << \EOF} set -ex python3 setup.py build %{?scl:EOF} %install %{?scl:scl enable %{scl} - << \EOF} set -ex python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %{?scl:EOF} %clean %{?scl:scl enable %{scl} - << \EOF} set -ex rm -rf $RPM_BUILD_ROOT %{?scl:EOF} %files -f INSTALLED_FILES %defattr(-,root,root)