mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
Dependency Update (#2175)
##### Core requirements * _discord.py_ Rapptz/discord.py@77239e4 -> Rapptz/discord.py@836ae73 * _aiohttp-json-rpc_ 0.11.1 -> 0.11.2 * _aiohttp_ 3.3.2 -> 3.4.4 ##### [test] * _pytest_ 3.8.1 -> 3.8.2 ##### [docs] * _packaging_ 17.1 -> 18.0 * _pyparsing_ 2.2.1 -> 2.2.2 * _six_ Removed duplicate entry ##### [style] * _black_ 18.6b4 -> 18.9b0 * _click_ 6.7 -> 7.0 ### Notes - `extra_requires` in setup.py is now a module-level global - Some style changes have occurred after the _black_ update Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
89
setup.py
89
setup.py
@@ -5,9 +5,9 @@ import tempfile
|
||||
from distutils.errors import CCompilerError, DistutilsPlatformError
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
requirements = [
|
||||
"aiohttp-json-rpc==0.11.1",
|
||||
"aiohttp==3.3.2",
|
||||
install_requires = [
|
||||
"aiohttp-json-rpc==0.11.2",
|
||||
"aiohttp==3.4.4",
|
||||
"appdirs==1.4.3",
|
||||
"async-timeout==3.0.0",
|
||||
"attrs==18.2.0",
|
||||
@@ -28,6 +28,42 @@ requirements = [
|
||||
"yarl==1.2.6",
|
||||
]
|
||||
|
||||
extras_require = {
|
||||
"test": [
|
||||
"atomicwrites==1.2.1",
|
||||
"more-itertools==4.3.0",
|
||||
"pluggy==0.7.1",
|
||||
"py==1.6.0",
|
||||
"pytest==3.8.2",
|
||||
"pytest-asyncio==0.9.0",
|
||||
"six==1.11.0",
|
||||
],
|
||||
"mongo": ["motor==2.0.0", "pymongo==3.7.1", "dnspython==1.15.0"],
|
||||
"docs": [
|
||||
"alabaster==0.7.11",
|
||||
"babel==2.6.0",
|
||||
"certifi==2018.8.24",
|
||||
"docutils==0.14",
|
||||
"imagesize==1.1.0",
|
||||
"Jinja2==2.10",
|
||||
"MarkupSafe==1.0",
|
||||
"packaging==18.0",
|
||||
"pyparsing==2.2.2",
|
||||
"Pygments==2.2.0",
|
||||
"pytz==2018.5",
|
||||
"requests==2.19.1",
|
||||
"urllib3==1.23",
|
||||
"six==1.11.0",
|
||||
"snowballstemmer==1.2.1",
|
||||
"sphinx==1.7.9",
|
||||
"sphinx_rtd_theme==0.4.1",
|
||||
"sphinxcontrib-asyncio==0.2.0",
|
||||
"sphinxcontrib-websupport==1.1.0",
|
||||
],
|
||||
"voice": ["red-lavalink==0.1.2"],
|
||||
"style": ["black==18.9b0", "click==7.0", "toml==0.9.6"],
|
||||
}
|
||||
|
||||
python_requires = ">=3.6.2,<3.8"
|
||||
if os.name == "nt":
|
||||
# Due to issues with ProactorEventLoop prior to 3.6.6 (bpo-26819)
|
||||
@@ -62,12 +98,14 @@ def get_version():
|
||||
|
||||
if __name__ == "__main__":
|
||||
if not check_compiler_available():
|
||||
requirements.remove(
|
||||
next(r for r in requirements if r.lower().startswith("python-levenshtein"))
|
||||
install_requires.remove(
|
||||
next(r for r in install_requires if r.lower().startswith("python-levenshtein"))
|
||||
)
|
||||
|
||||
if "READTHEDOCS" in os.environ:
|
||||
requirements.remove(next(r for r in requirements if r.lower().startswith("discord.py")))
|
||||
install_requires.remove(
|
||||
next(r for r in install_requires if r.lower().startswith("discord.py"))
|
||||
)
|
||||
|
||||
setup(
|
||||
name="Red-DiscordBot",
|
||||
@@ -100,42 +138,7 @@ if __name__ == "__main__":
|
||||
"pytest11": ["red-discordbot = redbot.pytest"],
|
||||
},
|
||||
python_requires=python_requires,
|
||||
install_requires=requirements,
|
||||
install_requires=install_requires,
|
||||
dependency_links=get_dependency_links(),
|
||||
extras_require={
|
||||
"test": [
|
||||
"atomicwrites==1.2.1",
|
||||
"more-itertools==4.3.0",
|
||||
"pluggy==0.7.1",
|
||||
"py==1.6.0",
|
||||
"pytest==3.8.1",
|
||||
"pytest-asyncio==0.9.0",
|
||||
"six==1.11.0",
|
||||
],
|
||||
"mongo": ["motor==2.0.0", "pymongo==3.7.1", "dnspython==1.15.0"],
|
||||
"docs": [
|
||||
"alabaster==0.7.11",
|
||||
"babel==2.6.0",
|
||||
"certifi==2018.8.24",
|
||||
"docutils==0.14",
|
||||
"imagesize==1.1.0",
|
||||
"Jinja2==2.10",
|
||||
"MarkupSafe==1.0",
|
||||
"packaging==17.1",
|
||||
"pyparsing==2.2.1",
|
||||
"six==1.11.0",
|
||||
"Pygments==2.2.0",
|
||||
"pytz==2018.5",
|
||||
"requests==2.19.1",
|
||||
"urllib3==1.23",
|
||||
"six==1.11.0",
|
||||
"snowballstemmer==1.2.1",
|
||||
"sphinx==1.7.9",
|
||||
"sphinx_rtd_theme==0.4.1",
|
||||
"sphinxcontrib-asyncio==0.2.0",
|
||||
"sphinxcontrib-websupport==1.1.0",
|
||||
],
|
||||
"voice": ["red-lavalink==0.1.2"],
|
||||
"style": ["black==18.6b4", "click==6.7", "toml==0.9.6"],
|
||||
},
|
||||
extras_require=extras_require,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user