diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 05:56:32 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 05:56:32 +0000 |
commit | 269c41bc91c578cf3daad34524bd8ad51bea795a (patch) | |
tree | 0ce173e5b8cd84ce1a954533c3df2c0fd682c346 /python-voxelbotutils.spec | |
parent | 76882b2ae6ce6c31369a0d4afe66a617d52a5e09 (diff) |
automatic import of python-voxelbotutils
Diffstat (limited to 'python-voxelbotutils.spec')
-rw-r--r-- | python-voxelbotutils.spec | 201 |
1 files changed, 201 insertions, 0 deletions
diff --git a/python-voxelbotutils.spec b/python-voxelbotutils.spec new file mode 100644 index 0000000..9a370c3 --- /dev/null +++ b/python-voxelbotutils.spec @@ -0,0 +1,201 @@ +%global _empty_manifest_terminate_build 0 +Name: python-voxelbotutils +Version: 0.8.4 +Release: 1 +Summary: A set of bot utilities for Novus +License: GNU General Public License v2 (GPLv2) +URL: https://github.com/Voxel-Fox-Ltd/VoxelBotUtils +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/35/0b/75afe1d53be9413314e3dfb3febf545ca872cb699d6b1182f42bfae4c362/voxelbotutils-0.8.4.tar.gz +BuildArch: noarch + +Requires: python3-novus +Requires: python3-toml +Requires: python3-aiosqlite +Requires: python3-aioredis +Requires: python3-aioredlock +Requires: python3-aiodogstatsd +Requires: python3-aiohttp +Requires: python3-upgradechatpy +Requires: python3-cryptography +Requires: python3-aiohttp-jinja2 +Requires: python3-aiohttp-session +Requires: python3-jinja2 +Requires: python3-markdown +Requires: python3-htmlmin +Requires: python3-sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-aiomysql +Requires: python3-asyncpg + +%description + + + + + +# VoxelBotUtils + +VoxelBotUtils (VBU) is an extension for Novus to speed up Discord bot development. It includes a whole slew of features that are commonly used in a lot of bots so you don't need to keep writing them every time. Many features are available to you by default: + +* Built-in error handling for all of Novus's errors. +* Built-in database connector. +* Logging using Python's `logging.Logger` classes. +* Webhook sends on different events. +* Bot stats posting via StatsD and DataDog. +* A help command that doesn't look like trash. +* Owner-only commands. +* Presence auto-updating based on Twitch streamers. +* Website utilities. +* And more... + +# Basic Usage + +* Install VBU via pip - `pip install voxelbotutils`. +* Create your config file via CMD - `vbu create-config bot`. +* Update your auto-generated config file in `config/config.toml`. +* (Optional) Add/change any cogs you wish inside of the `cogs/` folder. +* Run your bot - `vbu run-bot`. + +# Docs + +Documentation for the package and its usage can be [found here](https://voxelbotutils.readthedocs.io/). + +# Installing + +The package is available via PyPi - `pip install voxelbotutils`. The tags on this repo can be used to keep up-to-date with different releases. The master branch is not guaranteed to be fully working, whereas PyPi releases are. + + + + +%package -n python3-voxelbotutils +Summary: A set of bot utilities for Novus +Provides: python-voxelbotutils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-voxelbotutils + + + + + +# VoxelBotUtils + +VoxelBotUtils (VBU) is an extension for Novus to speed up Discord bot development. It includes a whole slew of features that are commonly used in a lot of bots so you don't need to keep writing them every time. Many features are available to you by default: + +* Built-in error handling for all of Novus's errors. +* Built-in database connector. +* Logging using Python's `logging.Logger` classes. +* Webhook sends on different events. +* Bot stats posting via StatsD and DataDog. +* A help command that doesn't look like trash. +* Owner-only commands. +* Presence auto-updating based on Twitch streamers. +* Website utilities. +* And more... + +# Basic Usage + +* Install VBU via pip - `pip install voxelbotutils`. +* Create your config file via CMD - `vbu create-config bot`. +* Update your auto-generated config file in `config/config.toml`. +* (Optional) Add/change any cogs you wish inside of the `cogs/` folder. +* Run your bot - `vbu run-bot`. + +# Docs + +Documentation for the package and its usage can be [found here](https://voxelbotutils.readthedocs.io/). + +# Installing + +The package is available via PyPi - `pip install voxelbotutils`. The tags on this repo can be used to keep up-to-date with different releases. The master branch is not guaranteed to be fully working, whereas PyPi releases are. + + + + +%package help +Summary: Development documents and examples for voxelbotutils +Provides: python3-voxelbotutils-doc +%description help + + + + + +# VoxelBotUtils + +VoxelBotUtils (VBU) is an extension for Novus to speed up Discord bot development. It includes a whole slew of features that are commonly used in a lot of bots so you don't need to keep writing them every time. Many features are available to you by default: + +* Built-in error handling for all of Novus's errors. +* Built-in database connector. +* Logging using Python's `logging.Logger` classes. +* Webhook sends on different events. +* Bot stats posting via StatsD and DataDog. +* A help command that doesn't look like trash. +* Owner-only commands. +* Presence auto-updating based on Twitch streamers. +* Website utilities. +* And more... + +# Basic Usage + +* Install VBU via pip - `pip install voxelbotutils`. +* Create your config file via CMD - `vbu create-config bot`. +* Update your auto-generated config file in `config/config.toml`. +* (Optional) Add/change any cogs you wish inside of the `cogs/` folder. +* Run your bot - `vbu run-bot`. + +# Docs + +Documentation for the package and its usage can be [found here](https://voxelbotutils.readthedocs.io/). + +# Installing + +The package is available via PyPi - `pip install voxelbotutils`. The tags on this repo can be used to keep up-to-date with different releases. The master branch is not guaranteed to be fully working, whereas PyPi releases are. + + + + +%prep +%autosetup -n voxelbotutils-0.8.4 + +%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-voxelbotutils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.4-1 +- Package Spec generated |