diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:19:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:19:09 +0000 |
commit | 035d7956fe4fe3eebd77bf7b8cbfc743d4d07938 (patch) | |
tree | a9f27fbc6d3219eb1587e850c1187f5571fc93e7 | |
parent | 02fa4d803035b0e8160999d8205a9d2e2175f907 (diff) |
automatic import of python-duo-universal
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-duo-universal.spec | 278 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 280 insertions, 0 deletions
@@ -0,0 +1 @@ +/duo_universal-2.0.3.tar.gz diff --git a/python-duo-universal.spec b/python-duo-universal.spec new file mode 100644 index 0000000..de2752a --- /dev/null +++ b/python-duo-universal.spec @@ -0,0 +1,278 @@ +%global _empty_manifest_terminate_build 0 +Name: python-duo-universal +Version: 2.0.3 +Release: 1 +Summary: Duo Web SDK for two-factor authentication +License: BSD +URL: https://github.com/duosecurity/duo_universal_python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2d/66/b4fbfaa211eda3547695c7aae0781d9b462b5e84b4280f4cfa4001dccd27/duo_universal-2.0.3.tar.gz +BuildArch: noarch + +Requires: python3-cryptography +Requires: python3-PyJWT +Requires: python3-pyOpenSSL +Requires: python3-requests +Requires: python3-wheel + +%description +# Duo Universal Python SDK + +[](https://github.com/duosecurity/duo_universal_python/actions) +[](https://github.com/duosecurity/duo_universal_python/issues) +[](https://github.com/duosecurity/duo_universal_python/network/members) +[](https://github.com/duosecurity/duo_universal_python/stargazers) +[](https://github.com/duosecurity/duo_universal_python/blob/master/LICENSE) + + +This SDK allows a web developer to quickly add Duo's interactive, self-service, two-factor authentication to any Python3 web login form. Only Python 3 is supported. + +What's here: +* `duo_universal` - The Python Duo SDK for interacting with the Duo Universal Prompt +* `demo` - An example web application with Duo integrated +* `tests` - Test cases + +## Getting Started +To use the SDK in your existing development environment, install it from pypi (https://pypi.org/project/duo_universal). +``` +pip3 install duo_universal +``` +Once it's installed, see our developer documentation at https://duo.com/docs/duoweb and `demo/app.py` in this repo for guidance on integrating Duo 2FA into your web application. + +## Contribute +To contribute, fork this repo and make a pull request with your changes when they're ready. + +If you're not already working from a dedicated development environment, it's recommended a virtual environment is used. Assuming a virtual environment named `env`, create and activate the environment: +``` +python3 -m venv env +source env/bin/activate +``` + +Build and install the SDK from source: +``` +pip3 install -r requirements.txt +pip3 install . +``` + +## Tests +Install the test requirements: +``` +cd tests +pip3 install -r requirements.txt +``` +Then run tests from the `test` directory: +``` +# Run an individual test file +python3 <test_name>.py + +# Run all tests with unittest +python3 -m unittest +``` + +## Lint +``` +flake8 +``` + +## Support + +Please report any bugs, feature requests, or issues to us directly at support@duosecurity.com. + +Thank you for using Duo! + +https://duo.com/ + + + + +%package -n python3-duo-universal +Summary: Duo Web SDK for two-factor authentication +Provides: python-duo-universal +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-duo-universal +# Duo Universal Python SDK + +[](https://github.com/duosecurity/duo_universal_python/actions) +[](https://github.com/duosecurity/duo_universal_python/issues) +[](https://github.com/duosecurity/duo_universal_python/network/members) +[](https://github.com/duosecurity/duo_universal_python/stargazers) +[](https://github.com/duosecurity/duo_universal_python/blob/master/LICENSE) + + +This SDK allows a web developer to quickly add Duo's interactive, self-service, two-factor authentication to any Python3 web login form. Only Python 3 is supported. + +What's here: +* `duo_universal` - The Python Duo SDK for interacting with the Duo Universal Prompt +* `demo` - An example web application with Duo integrated +* `tests` - Test cases + +## Getting Started +To use the SDK in your existing development environment, install it from pypi (https://pypi.org/project/duo_universal). +``` +pip3 install duo_universal +``` +Once it's installed, see our developer documentation at https://duo.com/docs/duoweb and `demo/app.py` in this repo for guidance on integrating Duo 2FA into your web application. + +## Contribute +To contribute, fork this repo and make a pull request with your changes when they're ready. + +If you're not already working from a dedicated development environment, it's recommended a virtual environment is used. Assuming a virtual environment named `env`, create and activate the environment: +``` +python3 -m venv env +source env/bin/activate +``` + +Build and install the SDK from source: +``` +pip3 install -r requirements.txt +pip3 install . +``` + +## Tests +Install the test requirements: +``` +cd tests +pip3 install -r requirements.txt +``` +Then run tests from the `test` directory: +``` +# Run an individual test file +python3 <test_name>.py + +# Run all tests with unittest +python3 -m unittest +``` + +## Lint +``` +flake8 +``` + +## Support + +Please report any bugs, feature requests, or issues to us directly at support@duosecurity.com. + +Thank you for using Duo! + +https://duo.com/ + + + + +%package help +Summary: Development documents and examples for duo-universal +Provides: python3-duo-universal-doc +%description help +# Duo Universal Python SDK + +[](https://github.com/duosecurity/duo_universal_python/actions) +[](https://github.com/duosecurity/duo_universal_python/issues) +[](https://github.com/duosecurity/duo_universal_python/network/members) +[](https://github.com/duosecurity/duo_universal_python/stargazers) +[](https://github.com/duosecurity/duo_universal_python/blob/master/LICENSE) + + +This SDK allows a web developer to quickly add Duo's interactive, self-service, two-factor authentication to any Python3 web login form. Only Python 3 is supported. + +What's here: +* `duo_universal` - The Python Duo SDK for interacting with the Duo Universal Prompt +* `demo` - An example web application with Duo integrated +* `tests` - Test cases + +## Getting Started +To use the SDK in your existing development environment, install it from pypi (https://pypi.org/project/duo_universal). +``` +pip3 install duo_universal +``` +Once it's installed, see our developer documentation at https://duo.com/docs/duoweb and `demo/app.py` in this repo for guidance on integrating Duo 2FA into your web application. + +## Contribute +To contribute, fork this repo and make a pull request with your changes when they're ready. + +If you're not already working from a dedicated development environment, it's recommended a virtual environment is used. Assuming a virtual environment named `env`, create and activate the environment: +``` +python3 -m venv env +source env/bin/activate +``` + +Build and install the SDK from source: +``` +pip3 install -r requirements.txt +pip3 install . +``` + +## Tests +Install the test requirements: +``` +cd tests +pip3 install -r requirements.txt +``` +Then run tests from the `test` directory: +``` +# Run an individual test file +python3 <test_name>.py + +# Run all tests with unittest +python3 -m unittest +``` + +## Lint +``` +flake8 +``` + +## Support + +Please report any bugs, feature requests, or issues to us directly at support@duosecurity.com. + +Thank you for using Duo! + +https://duo.com/ + + + + +%prep +%autosetup -n duo-universal-2.0.3 + +%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-universal -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.3-1 +- Package Spec generated @@ -0,0 +1 @@ +4442a238a5b269672d2f743b30e6dbe1 duo_universal-2.0.3.tar.gz |