diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:41:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:41:12 +0000 |
| commit | 8025c29d433655a4295e2adcf2efdab100f863a1 (patch) | |
| tree | 7edb1fe70a68f44c3040f206e90ddb76e7fdb23f /python-asyncline.spec | |
| parent | 453c4b9a3bfbb5036de5489ba450ceb12bfd27ae (diff) | |
automatic import of python-asynclineopeneuler20.03
Diffstat (limited to 'python-asyncline.spec')
| -rw-r--r-- | python-asyncline.spec | 390 |
1 files changed, 390 insertions, 0 deletions
diff --git a/python-asyncline.spec b/python-asyncline.spec new file mode 100644 index 0000000..925b2f8 --- /dev/null +++ b/python-asyncline.spec @@ -0,0 +1,390 @@ +%global _empty_manifest_terminate_build 0 +Name: python-AsyncLine +Version: 1.5.9.5 +Release: 1 +Summary: LINE Unofficial Python Library with Asyncio support and C++ Binding +License: MIT +URL: https://github.com/dyseo/AsyncLine +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8b/d1/b034cf44746a5730addce1d62156e1af2dc6d7e76d10fd35c41195b64503/AsyncLine-1.5.9.5.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp +Requires: python3-aiostomp +Requires: python3-async-timeout +Requires: python3-asyncio-nats-client +Requires: python3-frugal +Requires: python3-pymongo +Requires: python3-requests +Requires: python3-rsa +Requires: python3-uvloop + +%description +<p align="center"> + <a href="https://github.com/dyseo/AsyncLine"> + <img src="https://i.imgur.com/8yPDQiHr.png" alt="AsyncLine"> + </a> + <br> + <b>Line Messaging API for Python</b> + <br> + <a href="https://pypi.org/project/AsyncLine"> + PyPi + </a> + • + <a href="https://github.com/dyseo/AsyncLine/releases"> + Releases + </a> + • + <a href="https://line.me/ti/g2/KeQQBF78pOLSfe4uaS--Ew"> + Community + </a> +</p> + +<h3 align="center"> + <a href="https://python.org"> + <img src="https://img.shields.io/badge/3.6%20%7C%203.7-blue.svg?&logo=python&label=Python" alt="Python"> + </a> + . + <a href="https://opensource.org/licenses/MIT"> + <img src="https://img.shields.io/github/license/dyseo/A.svg" alt="License"> + </a> + . + <a href="https://travis-ci.org/dyseo/AsyncLine.svg?branch=master"> + <img src="https://travis-ci.org/dyseo/AsyncLine.svg?branch=master" alt="Build"> + </a> + . + <a href="https://github.com/dyseo/AsyncLine"> + <img src="https://img.shields.io/badge/Version-1.5.8-red" alt="Version"> + <a/> +</h3> + + +## Important +Please be warned: `AsyncLine` is in a very early beta. You will encounter bugs when using it. In addition, there are very many rough edges. With that said, please try it out in your applications: I need your feedback to fix the bugs and file down the rough edges. + +## Features +- Fully Asynchronously +- Slightly faster +- Easy to use +- Documented +- Type-hint everywhere + +## Installation +- `pip3 install AsyncLine --upgrade` + +## Simple usage +```python +from AsyncLine import LineNext +import asyncio + +cli = LineNext('ios') +cli.login(name='your session name', qr=True) + +""" +Args login: + name: string for create new session for next login, no effect if using token login + token: string of token for login using token, no need to create session name + mail: string of email that using for login using email, you can pass name session for custom session + default using string of email for name session + passwd: password of email used + cert: (string | optional) if you have cert pass at this args for easy login using email + sure you can use custom session name for this too + qr: boolean pass True if want to login using authQr, and you can use custom session name + e.g client.login(name="sync", qr=True) this needed for next login +""" + +@cli.hooks(type=26, filters=Filters.command("hello")) +async def hello_message(client, msg): + await client.talk.sendMessage(msg.to, "Heyy!") + +#Run bot +cli.poll.streams() +``` +Please read [Example](examples) for more detail about usage this lib + +## Author +Dyseo / [@Dyseo](https://line.me/ti/p/~line.bngsad) + +## Base Source +Asynz / [Anysz](https://github.com/anysz) + + +## Getting Error +[Issues](https://github.com/dyseo/AsyncLine/issues) always open for this + + +## License +*AsyncLine* - Unofficially API Client library for Python + +A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code. + +AsyncLine is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + + + +%package -n python3-AsyncLine +Summary: LINE Unofficial Python Library with Asyncio support and C++ Binding +Provides: python-AsyncLine +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-AsyncLine +<p align="center"> + <a href="https://github.com/dyseo/AsyncLine"> + <img src="https://i.imgur.com/8yPDQiHr.png" alt="AsyncLine"> + </a> + <br> + <b>Line Messaging API for Python</b> + <br> + <a href="https://pypi.org/project/AsyncLine"> + PyPi + </a> + • + <a href="https://github.com/dyseo/AsyncLine/releases"> + Releases + </a> + • + <a href="https://line.me/ti/g2/KeQQBF78pOLSfe4uaS--Ew"> + Community + </a> +</p> + +<h3 align="center"> + <a href="https://python.org"> + <img src="https://img.shields.io/badge/3.6%20%7C%203.7-blue.svg?&logo=python&label=Python" alt="Python"> + </a> + . + <a href="https://opensource.org/licenses/MIT"> + <img src="https://img.shields.io/github/license/dyseo/A.svg" alt="License"> + </a> + . + <a href="https://travis-ci.org/dyseo/AsyncLine.svg?branch=master"> + <img src="https://travis-ci.org/dyseo/AsyncLine.svg?branch=master" alt="Build"> + </a> + . + <a href="https://github.com/dyseo/AsyncLine"> + <img src="https://img.shields.io/badge/Version-1.5.8-red" alt="Version"> + <a/> +</h3> + + +## Important +Please be warned: `AsyncLine` is in a very early beta. You will encounter bugs when using it. In addition, there are very many rough edges. With that said, please try it out in your applications: I need your feedback to fix the bugs and file down the rough edges. + +## Features +- Fully Asynchronously +- Slightly faster +- Easy to use +- Documented +- Type-hint everywhere + +## Installation +- `pip3 install AsyncLine --upgrade` + +## Simple usage +```python +from AsyncLine import LineNext +import asyncio + +cli = LineNext('ios') +cli.login(name='your session name', qr=True) + +""" +Args login: + name: string for create new session for next login, no effect if using token login + token: string of token for login using token, no need to create session name + mail: string of email that using for login using email, you can pass name session for custom session + default using string of email for name session + passwd: password of email used + cert: (string | optional) if you have cert pass at this args for easy login using email + sure you can use custom session name for this too + qr: boolean pass True if want to login using authQr, and you can use custom session name + e.g client.login(name="sync", qr=True) this needed for next login +""" + +@cli.hooks(type=26, filters=Filters.command("hello")) +async def hello_message(client, msg): + await client.talk.sendMessage(msg.to, "Heyy!") + +#Run bot +cli.poll.streams() +``` +Please read [Example](examples) for more detail about usage this lib + +## Author +Dyseo / [@Dyseo](https://line.me/ti/p/~line.bngsad) + +## Base Source +Asynz / [Anysz](https://github.com/anysz) + + +## Getting Error +[Issues](https://github.com/dyseo/AsyncLine/issues) always open for this + + +## License +*AsyncLine* - Unofficially API Client library for Python + +A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code. + +AsyncLine is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + + + +%package help +Summary: Development documents and examples for AsyncLine +Provides: python3-AsyncLine-doc +%description help +<p align="center"> + <a href="https://github.com/dyseo/AsyncLine"> + <img src="https://i.imgur.com/8yPDQiHr.png" alt="AsyncLine"> + </a> + <br> + <b>Line Messaging API for Python</b> + <br> + <a href="https://pypi.org/project/AsyncLine"> + PyPi + </a> + • + <a href="https://github.com/dyseo/AsyncLine/releases"> + Releases + </a> + • + <a href="https://line.me/ti/g2/KeQQBF78pOLSfe4uaS--Ew"> + Community + </a> +</p> + +<h3 align="center"> + <a href="https://python.org"> + <img src="https://img.shields.io/badge/3.6%20%7C%203.7-blue.svg?&logo=python&label=Python" alt="Python"> + </a> + . + <a href="https://opensource.org/licenses/MIT"> + <img src="https://img.shields.io/github/license/dyseo/A.svg" alt="License"> + </a> + . + <a href="https://travis-ci.org/dyseo/AsyncLine.svg?branch=master"> + <img src="https://travis-ci.org/dyseo/AsyncLine.svg?branch=master" alt="Build"> + </a> + . + <a href="https://github.com/dyseo/AsyncLine"> + <img src="https://img.shields.io/badge/Version-1.5.8-red" alt="Version"> + <a/> +</h3> + + +## Important +Please be warned: `AsyncLine` is in a very early beta. You will encounter bugs when using it. In addition, there are very many rough edges. With that said, please try it out in your applications: I need your feedback to fix the bugs and file down the rough edges. + +## Features +- Fully Asynchronously +- Slightly faster +- Easy to use +- Documented +- Type-hint everywhere + +## Installation +- `pip3 install AsyncLine --upgrade` + +## Simple usage +```python +from AsyncLine import LineNext +import asyncio + +cli = LineNext('ios') +cli.login(name='your session name', qr=True) + +""" +Args login: + name: string for create new session for next login, no effect if using token login + token: string of token for login using token, no need to create session name + mail: string of email that using for login using email, you can pass name session for custom session + default using string of email for name session + passwd: password of email used + cert: (string | optional) if you have cert pass at this args for easy login using email + sure you can use custom session name for this too + qr: boolean pass True if want to login using authQr, and you can use custom session name + e.g client.login(name="sync", qr=True) this needed for next login +""" + +@cli.hooks(type=26, filters=Filters.command("hello")) +async def hello_message(client, msg): + await client.talk.sendMessage(msg.to, "Heyy!") + +#Run bot +cli.poll.streams() +``` +Please read [Example](examples) for more detail about usage this lib + +## Author +Dyseo / [@Dyseo](https://line.me/ti/p/~line.bngsad) + +## Base Source +Asynz / [Anysz](https://github.com/anysz) + + +## Getting Error +[Issues](https://github.com/dyseo/AsyncLine/issues) always open for this + + +## License +*AsyncLine* - Unofficially API Client library for Python + +A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code. + +AsyncLine is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + + + +%prep +%autosetup -n AsyncLine-1.5.9.5 + +%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-AsyncLine -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.9.5-1 +- Package Spec generated |
