From a44c7ec5047d2279161268ca8e13476fd3ac1ea5 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 05:51:35 +0000 Subject: automatic import of python-duo-client --- python-duo-client.spec | 281 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 281 insertions(+) create mode 100644 python-duo-client.spec (limited to 'python-duo-client.spec') diff --git a/python-duo-client.spec b/python-duo-client.spec new file mode 100644 index 0000000..c5d47bc --- /dev/null +++ b/python-duo-client.spec @@ -0,0 +1,281 @@ +%global _empty_manifest_terminate_build 0 +Name: python-duo-client +Version: 4.7.1 +Release: 1 +Summary: Reference client for Duo Security APIs +License: BSD +URL: https://github.com/duosecurity/duo_client_python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/44/23/53544065f38961a8b75673282aef4e504577afb8f7bd541597959a45f15d/duo_client-4.7.1.tar.gz +BuildArch: noarch + +Requires: python3-six +Requires: python3-setuptools + +%description +# Overview + +[![Build Status](https://github.com/duosecurity/duo_client_python/workflows/Python%20CI/badge.svg)](https://github.com/duosecurity/duo_client_python/actions) +[![Issues](https://img.shields.io/github/issues/duosecurity/duo_client_python)](https://github.com/duosecurity/duo_client_python/issues) +[![Forks](https://img.shields.io/github/forks/duosecurity/duo_client_python)](https://github.com/duosecurity/duo_client_python/network/members) +[![Stars](https://img.shields.io/github/stars/duosecurity/duo_client_python)](https://github.com/duosecurity/duo_client_python/stargazers) +[![License](https://img.shields.io/badge/License-View%20License-orange)](https://github.com/duosecurity/duo_client_python/blob/master/LICENSE) + +**Auth** - https://www.duosecurity.com/docs/authapi + +**Admin** - https://www.duosecurity.com/docs/adminapi + +**Accounts** - https://www.duosecurity.com/docs/accountsapi + +**Activity** - TBD (As of now, the activity endpoint is not in general availability and is restricted to a few customers for private preview. +If you have any questions or need more information, feel free to reach out to support for guidance.) + +## Tested Against Python Versions +* 3.7 +* 3.8 +* 3.9 +* 3.10 +* 3.11 + +## TLS 1.2 and 1.3 Support + +Duo_client_python uses Python's ssl module and OpenSSL for TLS operations. Python versions 2.7 (and higher) and 3.5 (and higher) have both TLS 1.2 and TLS 1.3 support. + +# Installing + +Development: + +``` +$ git clone https://github.com/duosecurity/duo_client_python.git +$ cd duo_client_python +$ virtualenv .env +$ source .env/bin/activate +$ pip install --requirement requirements.txt +$ pip install --requirement requirements-dev.txt +$ python setup.py install +``` + +System: + +Install from [PyPi](https://pypi.org/project/duo-client/) +``` +$ pip install duo-client +``` + +# Using + +See the `examples` folder for how to use this library. + +To run an example query, execute a command like the following from the repo root: +``` +$ python examples/report_users_and_phones.py +``` + +# Testing + +``` +$ nose2 +``` + +# Linting + +``` +$ flake8 +``` + + +%package -n python3-duo-client +Summary: Reference client for Duo Security APIs +Provides: python-duo-client +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-duo-client +# Overview + +[![Build Status](https://github.com/duosecurity/duo_client_python/workflows/Python%20CI/badge.svg)](https://github.com/duosecurity/duo_client_python/actions) +[![Issues](https://img.shields.io/github/issues/duosecurity/duo_client_python)](https://github.com/duosecurity/duo_client_python/issues) +[![Forks](https://img.shields.io/github/forks/duosecurity/duo_client_python)](https://github.com/duosecurity/duo_client_python/network/members) +[![Stars](https://img.shields.io/github/stars/duosecurity/duo_client_python)](https://github.com/duosecurity/duo_client_python/stargazers) +[![License](https://img.shields.io/badge/License-View%20License-orange)](https://github.com/duosecurity/duo_client_python/blob/master/LICENSE) + +**Auth** - https://www.duosecurity.com/docs/authapi + +**Admin** - https://www.duosecurity.com/docs/adminapi + +**Accounts** - https://www.duosecurity.com/docs/accountsapi + +**Activity** - TBD (As of now, the activity endpoint is not in general availability and is restricted to a few customers for private preview. +If you have any questions or need more information, feel free to reach out to support for guidance.) + +## Tested Against Python Versions +* 3.7 +* 3.8 +* 3.9 +* 3.10 +* 3.11 + +## TLS 1.2 and 1.3 Support + +Duo_client_python uses Python's ssl module and OpenSSL for TLS operations. Python versions 2.7 (and higher) and 3.5 (and higher) have both TLS 1.2 and TLS 1.3 support. + +# Installing + +Development: + +``` +$ git clone https://github.com/duosecurity/duo_client_python.git +$ cd duo_client_python +$ virtualenv .env +$ source .env/bin/activate +$ pip install --requirement requirements.txt +$ pip install --requirement requirements-dev.txt +$ python setup.py install +``` + +System: + +Install from [PyPi](https://pypi.org/project/duo-client/) +``` +$ pip install duo-client +``` + +# Using + +See the `examples` folder for how to use this library. + +To run an example query, execute a command like the following from the repo root: +``` +$ python examples/report_users_and_phones.py +``` + +# Testing + +``` +$ nose2 +``` + +# Linting + +``` +$ flake8 +``` + + +%package help +Summary: Development documents and examples for duo-client +Provides: python3-duo-client-doc +%description help +# Overview + +[![Build Status](https://github.com/duosecurity/duo_client_python/workflows/Python%20CI/badge.svg)](https://github.com/duosecurity/duo_client_python/actions) +[![Issues](https://img.shields.io/github/issues/duosecurity/duo_client_python)](https://github.com/duosecurity/duo_client_python/issues) +[![Forks](https://img.shields.io/github/forks/duosecurity/duo_client_python)](https://github.com/duosecurity/duo_client_python/network/members) +[![Stars](https://img.shields.io/github/stars/duosecurity/duo_client_python)](https://github.com/duosecurity/duo_client_python/stargazers) +[![License](https://img.shields.io/badge/License-View%20License-orange)](https://github.com/duosecurity/duo_client_python/blob/master/LICENSE) + +**Auth** - https://www.duosecurity.com/docs/authapi + +**Admin** - https://www.duosecurity.com/docs/adminapi + +**Accounts** - https://www.duosecurity.com/docs/accountsapi + +**Activity** - TBD (As of now, the activity endpoint is not in general availability and is restricted to a few customers for private preview. +If you have any questions or need more information, feel free to reach out to support for guidance.) + +## Tested Against Python Versions +* 3.7 +* 3.8 +* 3.9 +* 3.10 +* 3.11 + +## TLS 1.2 and 1.3 Support + +Duo_client_python uses Python's ssl module and OpenSSL for TLS operations. Python versions 2.7 (and higher) and 3.5 (and higher) have both TLS 1.2 and TLS 1.3 support. + +# Installing + +Development: + +``` +$ git clone https://github.com/duosecurity/duo_client_python.git +$ cd duo_client_python +$ virtualenv .env +$ source .env/bin/activate +$ pip install --requirement requirements.txt +$ pip install --requirement requirements-dev.txt +$ python setup.py install +``` + +System: + +Install from [PyPi](https://pypi.org/project/duo-client/) +``` +$ pip install duo-client +``` + +# Using + +See the `examples` folder for how to use this library. + +To run an example query, execute a command like the following from the repo root: +``` +$ python examples/report_users_and_phones.py +``` + +# Testing + +``` +$ nose2 +``` + +# Linting + +``` +$ flake8 +``` + + +%prep +%autosetup -n duo-client-4.7.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-duo-client -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 4.7.1-1 +- Package Spec generated -- cgit v1.2.3