mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
* PostgreSQL driver and general drivers cleanup Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Make tests pass Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Add black --target-version flag in make.bat Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Rewrite postgres driver Most of the logic is now in PL/pgSQL. This completely avoids the use of Python f-strings to format identifiers into queries. Although an SQL-injection attack would have been impossible anyway (only the owner would have ever had the ability to do that), using PostgreSQL's format() is more reliable for unusual identifiers. Performance-wise, I'm not sure whether this is an improvement, but I highly doubt that it's worse. Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Reformat Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Fix PostgresDriver.delete_all_data() Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Clean up PL/pgSQL code Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * More PL/pgSQL cleanup Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * PL/pgSQL function optimisations Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Ensure compatibility with PostgreSQL 10 and below Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * More/better docstrings for PG functions Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Fix typo in docstring Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Return correct value on toggle() Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Use composite type for PG function parameters Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Fix JSON driver's Config.clear_all() Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Correct description for Mongo tox recipe Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Fix linting errors Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Update dep specification after merging bumpdeps Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Add towncrier entries Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Update from merge Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Mention [postgres] extra in install docs Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Support more connection options and use better defaults Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Actually pass PG env vars in tox Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Replace event trigger with manual DELETE queries Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
130 lines
3.0 KiB
INI
130 lines
3.0 KiB
INI
[metadata]
|
|
name = Red-DiscordBot
|
|
version = attr: redbot.__version__
|
|
description = A highly customisable Discord bot
|
|
license = GPL-3.0
|
|
long_description = file: README.md
|
|
long_description_content_type = text/markdown; charset=UTF-8; variant=GFM
|
|
author = Cog-Creators
|
|
author_email = cogcreators@gmail.com
|
|
url = https://github.com/Cog-Creators/Red-DiscordBot
|
|
classifiers =
|
|
# List at https://pypi.org/pypi?%3Aaction=list_classifiers
|
|
Development Status :: 5 - Production/Stable
|
|
Framework :: AsyncIO
|
|
Framework :: Pytest
|
|
Intended Audience :: Developers
|
|
Intended Audience :: End Users/Desktop
|
|
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
Natural Language :: English
|
|
Operating System :: OS Independent
|
|
Programming Language :: Python :: 3.7
|
|
Topic :: Communications :: Chat
|
|
Topic :: Documentation :: Sphinx
|
|
|
|
[options]
|
|
packages = find_namespace:
|
|
python_requires = >=3.7
|
|
install_requires =
|
|
aiohttp==3.5.4
|
|
aiohttp-json-rpc==0.12.1
|
|
appdirs==1.4.3
|
|
async-timeout==3.0.1
|
|
attrs==19.1.0
|
|
chardet==3.0.4
|
|
Click==7.0
|
|
colorama==0.4.1
|
|
contextlib2==0.5.5
|
|
discord.py==1.2.3
|
|
distro==1.4.0; sys_platform == "linux"
|
|
fuzzywuzzy==0.17.0
|
|
idna==2.8
|
|
multidict==4.5.2
|
|
python-Levenshtein-wheels==0.13.1
|
|
PyYAML==5.1.1
|
|
Red-Lavalink==0.3.0
|
|
schema==0.7.0
|
|
tqdm==4.32.2
|
|
uvloop==0.12.2; sys_platform != "win32" and platform_python_implementation == "CPython"
|
|
websockets==6.0
|
|
yarl==1.3.0
|
|
|
|
[options.extras_require]
|
|
docs =
|
|
alabaster==0.7.12
|
|
Babel==2.7.0
|
|
certifi==2019.6.16
|
|
docutils==0.14
|
|
imagesize==1.1.0
|
|
Jinja2==2.10.1
|
|
MarkupSafe==1.1.1
|
|
packaging==19.0
|
|
Pygments==2.4.2
|
|
pyparsing==2.4.0
|
|
pytz==2019.1
|
|
requests==2.22.0
|
|
six==1.12.0
|
|
snowballstemmer==1.9.0
|
|
Sphinx==2.1.2
|
|
sphinx-rtd-theme==0.4.3
|
|
sphinxcontrib-applehelp==1.0.1
|
|
sphinxcontrib-devhelp==1.0.1
|
|
sphinxcontrib-htmlhelp==1.0.2
|
|
sphinxcontrib-jsmath==1.0.1
|
|
sphinxcontrib-qthelp==1.0.2
|
|
sphinxcontrib-serializinghtml==1.1.3
|
|
sphinxcontrib-trio==1.1.0
|
|
towncrier==19.2.0
|
|
urllib3==1.25.3
|
|
mongo =
|
|
dnspython==1.16.0
|
|
motor==2.0.0
|
|
pymongo==3.8.0
|
|
postgres =
|
|
asyncpg==0.18.3
|
|
style =
|
|
black==19.3b0
|
|
toml==0.10.0
|
|
test =
|
|
astroid==2.2.5
|
|
atomicwrites==1.3.0
|
|
importlib-metadata==0.18
|
|
isort==4.3.21
|
|
lazy-object-proxy==1.4.1
|
|
mccabe==0.6.1
|
|
more-itertools==7.1.0
|
|
packaging==19.0
|
|
pluggy==0.12.0
|
|
py==1.8.0
|
|
pylint==2.3.1
|
|
pyparsing==2.4.0
|
|
pytest==5.0.0
|
|
pytest-asyncio==0.10.0
|
|
six==1.12.0
|
|
typed-ast==1.4.0
|
|
wcwidth==0.1.7
|
|
wrapt==1.11.2
|
|
zipp==0.5.1
|
|
|
|
[options.entry_points]
|
|
console_scripts =
|
|
redbot=redbot.__main__:main
|
|
redbot-setup=redbot.setup:cli
|
|
redbot-launcher=redbot.launcher:main
|
|
pytest11 =
|
|
red-discordbot=redbot.pytest
|
|
|
|
[options.packages.find]
|
|
include =
|
|
redbot
|
|
redbot.*
|
|
|
|
[options.package_data]
|
|
* =
|
|
locales/*.po
|
|
**/locales/*.po
|
|
data/*
|
|
data/**/*
|
|
redbot.core.drivers.postgres =
|
|
*.sql
|