From 2e52b674ef0a7dda8ee7c55958bf9a9d6cfbb334 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 10 May 2023 03:44:04 +0000 Subject: automatic import of python-cleverwrap --- .gitignore | 1 + python-cleverwrap.spec | 174 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 176 insertions(+) create mode 100644 python-cleverwrap.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ed97882 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/cleverwrap-0.3.0.2.tar.gz diff --git a/python-cleverwrap.spec b/python-cleverwrap.spec new file mode 100644 index 0000000..765537f --- /dev/null +++ b/python-cleverwrap.spec @@ -0,0 +1,174 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cleverwrap +Version: 0.3.0.2 +Release: 1 +Summary: A wrapper for the official cleverbot.com API +License: MIT +URL: https://github.com/snoonetIRC/cleverwrap.py +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/02/57/ffb3ffc89b23a6704be9db3b58ce410bc58b0371590f15a31afbb34690e3/cleverwrap-0.3.0.2.tar.gz +BuildArch: noarch + + +%description +# CleverWrap.py +[![Build Status](https://travis-ci.com/snoonetIRC/cleverwrap.py.svg?branch=master)](https://travis-ci.com/snoonetIRC/cleverwrap.py) +[![codecov](https://codecov.io/gh/snoonetIRC/cleverwrap.py/branch/master/graph/badge.svg)](https://codecov.io/gh/snoonetIRC/cleverwrap.py) + +A simple python wrapper class to interact with the official [CleverBot API](http://www.cleverbot.com/api). + +This package was created to run on python3 + +# Installing + +You can install cleverwrap.py from pypi using: `pip install cleverwrap` + +You can also clone this repository and import the library directly. + +# Usage + +``` +>>> from cleverwrap import CleverWrap +>>> cw = CleverWrap("API_KEY") +>>> cw.say("Hello CleverBot.") +"Hello Human." +>>> cw.reset() # resets the conversation ID and conversation state. +>>> conv = cw.new_conversation() # Start a new conversation with CleverBot +>>> conv.say("Hellon there.") +"Hello Human." +>>> conv.reset() # Reset the conversation state +``` + +# License + +Copyright 2017 Andrew Edwards using the [MIT License](http://opensource.org/licenses/MIT). + + + + + +%package -n python3-cleverwrap +Summary: A wrapper for the official cleverbot.com API +Provides: python-cleverwrap +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cleverwrap +# CleverWrap.py +[![Build Status](https://travis-ci.com/snoonetIRC/cleverwrap.py.svg?branch=master)](https://travis-ci.com/snoonetIRC/cleverwrap.py) +[![codecov](https://codecov.io/gh/snoonetIRC/cleverwrap.py/branch/master/graph/badge.svg)](https://codecov.io/gh/snoonetIRC/cleverwrap.py) + +A simple python wrapper class to interact with the official [CleverBot API](http://www.cleverbot.com/api). + +This package was created to run on python3 + +# Installing + +You can install cleverwrap.py from pypi using: `pip install cleverwrap` + +You can also clone this repository and import the library directly. + +# Usage + +``` +>>> from cleverwrap import CleverWrap +>>> cw = CleverWrap("API_KEY") +>>> cw.say("Hello CleverBot.") +"Hello Human." +>>> cw.reset() # resets the conversation ID and conversation state. +>>> conv = cw.new_conversation() # Start a new conversation with CleverBot +>>> conv.say("Hellon there.") +"Hello Human." +>>> conv.reset() # Reset the conversation state +``` + +# License + +Copyright 2017 Andrew Edwards using the [MIT License](http://opensource.org/licenses/MIT). + + + + + +%package help +Summary: Development documents and examples for cleverwrap +Provides: python3-cleverwrap-doc +%description help +# CleverWrap.py +[![Build Status](https://travis-ci.com/snoonetIRC/cleverwrap.py.svg?branch=master)](https://travis-ci.com/snoonetIRC/cleverwrap.py) +[![codecov](https://codecov.io/gh/snoonetIRC/cleverwrap.py/branch/master/graph/badge.svg)](https://codecov.io/gh/snoonetIRC/cleverwrap.py) + +A simple python wrapper class to interact with the official [CleverBot API](http://www.cleverbot.com/api). + +This package was created to run on python3 + +# Installing + +You can install cleverwrap.py from pypi using: `pip install cleverwrap` + +You can also clone this repository and import the library directly. + +# Usage + +``` +>>> from cleverwrap import CleverWrap +>>> cw = CleverWrap("API_KEY") +>>> cw.say("Hello CleverBot.") +"Hello Human." +>>> cw.reset() # resets the conversation ID and conversation state. +>>> conv = cw.new_conversation() # Start a new conversation with CleverBot +>>> conv.say("Hellon there.") +"Hello Human." +>>> conv.reset() # Reset the conversation state +``` + +# License + +Copyright 2017 Andrew Edwards using the [MIT License](http://opensource.org/licenses/MIT). + + + + + +%prep +%autosetup -n cleverwrap-0.3.0.2 + +%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-cleverwrap -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot - 0.3.0.2-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..d4b9a57 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +193e78f31182f9e35a1170fe0b48083a cleverwrap-0.3.0.2.tar.gz -- cgit v1.2.3