summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 14:35:14 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 14:35:14 +0000
commitf350396c9fa3a5b6dcf99f25f396f73e658b0e53 (patch)
tree816d485426243ac475e5f52669a4b51c7b95cebe
parent0d38d977e914c1ef56fbebd3b76e402e3b3f1e17 (diff)
automatic import of python-guilded-pyopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-guilded-py.spec245
-rw-r--r--sources1
3 files changed, 247 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7f4e7db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/guilded.py-1.8.0.tar.gz
diff --git a/python-guilded-py.spec b/python-guilded-py.spec
new file mode 100644
index 0000000..2aec8ee
--- /dev/null
+++ b/python-guilded-py.spec
@@ -0,0 +1,245 @@
+%global _empty_manifest_terminate_build 0
+Name: python-guilded.py
+Version: 1.8.0
+Release: 1
+Summary: An API wrapper in Python for Guilded's bot API
+License: MIT
+URL: https://github.com/shayypy/guilded.py
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/40/02/9802f172f8dbbd0264927df8105517742c9712988f0c314f536bc279b310/guilded.py-1.8.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-aiohttp
+Requires: python3-sphinx
+Requires: python3-sphinxcontrib-trio
+Requires: python3-sphinxcontrib-websupport
+Requires: python3-typing-extensions
+
+%description
+Welcome to guilded.py, a discord.py-esque asynchronous Python wrapper for Guilded's bot API. If you know discord.py, you know guilded.py.
+
+## Documentation
+
+Documentation is available on [Read the Docs](https://guildedpy.readthedocs.io).
+
+## Basic Example
+
+```py
+import guilded
+
+client = guilded.Client()
+
+@client.event
+async def on_ready():
+ print('Ready')
+
+@client.event
+async def on_message(message):
+ if message.author == client.user:
+ return
+ if message.content == 'ping':
+ await message.channel.send('pong!')
+
+client.run('token')
+```
+
+### Bot example
+
+```py
+import guilded
+from guilded.ext import commands
+
+bot = commands.Bot(command_prefix='!')
+
+@bot.command()
+async def ping(ctx):
+ await ctx.send('pong!')
+
+bot.run('token')
+```
+
+For more examples, see the examples directory in this repository.
+
+## Support
+
+Guilded.py has a support channel under its dedicated group for any questions you may have.
+
+1. Join [this server](https://guilded.gg/guilded-api)
+2. Click on the far-left plus sign
+
+ ![](https://img.guildedcdn.com/ContentMedia/f4f92fa74bf1b6043b438046eebcf0f4-Full.webp?w=198&h=165)
+
+3. Click the "Follow" button on the guilded.py group
+
+ ![](https://img.guildedcdn.com/ContentMedia/ecfc6237dd2f401fbd356edfd50916fc-Full.webp?w=816&h=339)
+
+
+%package -n python3-guilded.py
+Summary: An API wrapper in Python for Guilded's bot API
+Provides: python-guilded.py
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-guilded.py
+Welcome to guilded.py, a discord.py-esque asynchronous Python wrapper for Guilded's bot API. If you know discord.py, you know guilded.py.
+
+## Documentation
+
+Documentation is available on [Read the Docs](https://guildedpy.readthedocs.io).
+
+## Basic Example
+
+```py
+import guilded
+
+client = guilded.Client()
+
+@client.event
+async def on_ready():
+ print('Ready')
+
+@client.event
+async def on_message(message):
+ if message.author == client.user:
+ return
+ if message.content == 'ping':
+ await message.channel.send('pong!')
+
+client.run('token')
+```
+
+### Bot example
+
+```py
+import guilded
+from guilded.ext import commands
+
+bot = commands.Bot(command_prefix='!')
+
+@bot.command()
+async def ping(ctx):
+ await ctx.send('pong!')
+
+bot.run('token')
+```
+
+For more examples, see the examples directory in this repository.
+
+## Support
+
+Guilded.py has a support channel under its dedicated group for any questions you may have.
+
+1. Join [this server](https://guilded.gg/guilded-api)
+2. Click on the far-left plus sign
+
+ ![](https://img.guildedcdn.com/ContentMedia/f4f92fa74bf1b6043b438046eebcf0f4-Full.webp?w=198&h=165)
+
+3. Click the "Follow" button on the guilded.py group
+
+ ![](https://img.guildedcdn.com/ContentMedia/ecfc6237dd2f401fbd356edfd50916fc-Full.webp?w=816&h=339)
+
+
+%package help
+Summary: Development documents and examples for guilded.py
+Provides: python3-guilded.py-doc
+%description help
+Welcome to guilded.py, a discord.py-esque asynchronous Python wrapper for Guilded's bot API. If you know discord.py, you know guilded.py.
+
+## Documentation
+
+Documentation is available on [Read the Docs](https://guildedpy.readthedocs.io).
+
+## Basic Example
+
+```py
+import guilded
+
+client = guilded.Client()
+
+@client.event
+async def on_ready():
+ print('Ready')
+
+@client.event
+async def on_message(message):
+ if message.author == client.user:
+ return
+ if message.content == 'ping':
+ await message.channel.send('pong!')
+
+client.run('token')
+```
+
+### Bot example
+
+```py
+import guilded
+from guilded.ext import commands
+
+bot = commands.Bot(command_prefix='!')
+
+@bot.command()
+async def ping(ctx):
+ await ctx.send('pong!')
+
+bot.run('token')
+```
+
+For more examples, see the examples directory in this repository.
+
+## Support
+
+Guilded.py has a support channel under its dedicated group for any questions you may have.
+
+1. Join [this server](https://guilded.gg/guilded-api)
+2. Click on the far-left plus sign
+
+ ![](https://img.guildedcdn.com/ContentMedia/f4f92fa74bf1b6043b438046eebcf0f4-Full.webp?w=198&h=165)
+
+3. Click the "Follow" button on the guilded.py group
+
+ ![](https://img.guildedcdn.com/ContentMedia/ecfc6237dd2f401fbd356edfd50916fc-Full.webp?w=816&h=339)
+
+
+%prep
+%autosetup -n guilded.py-1.8.0
+
+%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-guilded.py -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ac5d5d0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bf8c690750ea72ca0596a9306434b9d4 guilded.py-1.8.0.tar.gz