From ad7466a026ab8666a17981e81fba805af6579cc9 Mon Sep 17 00:00:00 2001 From: Toby Harradine Date: Wed, 3 Oct 2018 08:10:13 +1000 Subject: [PATCH] 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 --- Makefile | 4 +- Pipfile.lock | 142 +++++++++++++++++-------------- dependency_links.txt | 2 +- redbot/cogs/trivia/trivia.py | 2 +- redbot/core/commands/__init__.py | 1 - redbot/core/commands/context.py | 1 - setup.py | 89 +++++++++---------- tests/cogs/test_permissions.py | 1 - 8 files changed, 127 insertions(+), 115 deletions(-) diff --git a/Makefile b/Makefile index 84cd915d1..f2702b0b9 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ reformat: - black -l 99 `git ls-files "*.py"` + black -l 99 -N `git ls-files "*.py"` stylecheck: - black --check -l 99 `git ls-files "*.py"` + black --check -l 99 -N `git ls-files "*.py"` gettext: redgettext --command-docstrings --verbose --recursive redbot --exclude-files "redbot/pytest/**/*" crowdin upload diff --git a/Pipfile.lock b/Pipfile.lock index b48ed16c6..cd486bdf6 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -16,30 +16,37 @@ "default": { "aiohttp": { "hashes": [ - "sha256:1a112a1fdf3802b7f2b182e22e51d71e4a8fa7387d0d38e79a268921b869e384", - "sha256:33aa7c937ebaf063a860cbb0c263a771b33333a84965c6148eeafe64fb4e29ca", - "sha256:550b4a0788500f6d00f41b7fdd9fcce6d78f99706a7b2f6f81d4d331c7ca468e", - "sha256:601e8e83123b4d423a9dfddf7d6943f4f520651a78ffcd50c99d065136c7ff7b", - "sha256:620f19ba7628b70b177f5c2e6a55a6fd6e7c8591cde38c3f8f52551733d31b66", - "sha256:70d56c784da1239c89d39fefa166fd429306dada641178389be4184a9c04e501", - "sha256:7de2c9e445a5d257935011268202338538abef1aaff341a4733eca56419ca6f6", - "sha256:96bb80b659cc2bafa160f3f0c346ce7fc10de1ffec4908d7f9690797f155f658", - "sha256:ae7501cc6a6c37b8d4774bf2218c37be47fe42019a2570e8510fc2044e59d573", - "sha256:c833aa6f4c9ac3e3eb843e3d999bae51339ad33a937303f43ce78064e61cb4b6", - "sha256:dd81d85a342edf3d2a388e2f24d9facebc9c04550043888f970ee2f228c93059", - "sha256:f20deec7a3fbaec7b5eb7ad99878427ad2ee4cc16a46732b705e8121cbb3cc12", - "sha256:f52e7287eb9286a1e91e4c67c207c2573147fbaddc68f70efb5aeee5d1992f2e", - "sha256:fe7b2972ff7e779e812f974aa5695edc328ecf559ceeea887ac46f06f090ad4c", - "sha256:ff1447c84a02b9cd5dd3a9332d1fb181a4386c3625765bb5caf1cfbc210ab3f9" + "sha256:0419705a36b43c0ac6f15469f9c2a08cad5c939d78bd12a5c23ea167c8253b2b", + "sha256:1812fc4bc6ac1bde007daa05d2d0f61199324e0cc893b11523e646595047ca08", + "sha256:2214b5c0153f45256d5d52d1e0cafe53f9905ed035a142191727a5fb620c03dd", + "sha256:275909137f0c92c61ba6bb1af856a522d5546f1de8ea01e4e726321c697754ac", + "sha256:3983611922b561868428ea1e7269e757803713f55b53502423decc509fef1650", + "sha256:51afec6ffa50a9da4cdef188971a802beb1ca8e8edb40fa429e5e529db3475fa", + "sha256:589f2ec8a101a0f340453ee6945bdfea8e1cd84c8d88e5be08716c34c0799d95", + "sha256:789820ddc65e1f5e71516adaca2e9022498fa5a837c79ba9c692a9f8f916c330", + "sha256:7a968a0bdaaf9abacc260911775611c9a602214a23aeb846f2eb2eeaa350c4dc", + "sha256:7aeefbed253f59ea39e70c5848de42ed85cb941165357fc7e87ab5d8f1f9592b", + "sha256:7b2eb55c66512405103485bd7d285a839d53e7fdc261ab20e5bcc51d7aaff5de", + "sha256:87bc95d3d333bb689c8d755b4a9d7095a2356108002149523dfc8e607d5d32a4", + "sha256:9d80e40db208e29168d3723d1440ecbb06054d349c5ece6a2c5a611490830dd7", + "sha256:a1b442195c2a77d33e4dbee67c9877ccbdd3a1f686f91eb479a9577ed8cc326b", + "sha256:ab3d769413b322d6092f169f316f7b21cd261a7589f7e31db779d5731b0480d8", + "sha256:b066d3dec5d0f5aee6e34e5765095dc3d6d78ef9839640141a2b20816a0642bd", + "sha256:b24e7845ae8de3e388ef4bcfcf7f96b05f52c8e633b33cf8003a6b1d726fc7c2", + "sha256:c59a953c3f8524a7c86eaeaef5bf702555be12f5668f6384149fe4bb75c52698", + "sha256:cf2cc6c2c10d242790412bea7ccf73726a9a44b4c4b073d2699ef3b48971fd95", + "sha256:e0c9c8d4150ae904f308ff27b35446990d2b1dfc944702a21925937e937394c6", + "sha256:f1839db4c2b08a9c8f9788112644f8a8557e8e0ecc77b07091afabb941dc55d0", + "sha256:f3df52362be39908f9c028a65490fae0475e4898b43a03d8aa29d1e765b45e07" ], - "version": "==3.3.2" + "version": "==3.4.4" }, "aiohttp-json-rpc": { "hashes": [ - "sha256:970806a3b9887c389095d2bde84e2b540fefeddd0bae0efcae03c65f092ce00e", - "sha256:d6f365067676e6089ac043ad31bcbabbf33d0343c42b57c36751a562fbe64fb6" + "sha256:00d72f40edfc7271578d545a8c47874c0e23cc5d3201ed8128481f6a4af47e32", + "sha256:02d83b6998f8a0b7e59b46f0cb8a96b475bbf82600b1f9527df47135353f1ca8" ], - "version": "==0.11.1" + "version": "==0.11.2" }, "appdirs": { "hashes": [ @@ -80,7 +87,7 @@ "discord.py": { "editable": true, "git": "git://github.com/Rapptz/discord.py", - "ref": "77239e4f1588b7cf99ca54c36665ebfc4ad5bd57" + "ref": "836ae730401ea370aa10127bb9c86854c8b516ac" }, "distro": { "hashes": [ @@ -91,6 +98,7 @@ }, "dnspython": { "hashes": [ + "sha256:40f563e1f7a7b80dc5a4e76ad75c23da53d62f1e15e6e517293b04e1f84ead7c", "sha256:861e6e58faa730f9845aaaa9c6c832851fbf89382ac52915a51f89c71accdd31" ], "version": "==1.15.0" @@ -162,7 +170,6 @@ "sha256:e8a048bfd7d5a280f27527d11449a509ddedf08b58a09a24314828631c099306", "sha256:f6dd28a0ac60e2426a6918f36f1b4e2620fc785a0de7654cd206ba842eee57fd" ], - "markers": "python_version >= '3.4.1'", "version": "==4.4.2" }, "pymongo": { @@ -295,30 +302,37 @@ "develop": { "aiohttp": { "hashes": [ - "sha256:1a112a1fdf3802b7f2b182e22e51d71e4a8fa7387d0d38e79a268921b869e384", - "sha256:33aa7c937ebaf063a860cbb0c263a771b33333a84965c6148eeafe64fb4e29ca", - "sha256:550b4a0788500f6d00f41b7fdd9fcce6d78f99706a7b2f6f81d4d331c7ca468e", - "sha256:601e8e83123b4d423a9dfddf7d6943f4f520651a78ffcd50c99d065136c7ff7b", - "sha256:620f19ba7628b70b177f5c2e6a55a6fd6e7c8591cde38c3f8f52551733d31b66", - "sha256:70d56c784da1239c89d39fefa166fd429306dada641178389be4184a9c04e501", - "sha256:7de2c9e445a5d257935011268202338538abef1aaff341a4733eca56419ca6f6", - "sha256:96bb80b659cc2bafa160f3f0c346ce7fc10de1ffec4908d7f9690797f155f658", - "sha256:ae7501cc6a6c37b8d4774bf2218c37be47fe42019a2570e8510fc2044e59d573", - "sha256:c833aa6f4c9ac3e3eb843e3d999bae51339ad33a937303f43ce78064e61cb4b6", - "sha256:dd81d85a342edf3d2a388e2f24d9facebc9c04550043888f970ee2f228c93059", - "sha256:f20deec7a3fbaec7b5eb7ad99878427ad2ee4cc16a46732b705e8121cbb3cc12", - "sha256:f52e7287eb9286a1e91e4c67c207c2573147fbaddc68f70efb5aeee5d1992f2e", - "sha256:fe7b2972ff7e779e812f974aa5695edc328ecf559ceeea887ac46f06f090ad4c", - "sha256:ff1447c84a02b9cd5dd3a9332d1fb181a4386c3625765bb5caf1cfbc210ab3f9" + "sha256:0419705a36b43c0ac6f15469f9c2a08cad5c939d78bd12a5c23ea167c8253b2b", + "sha256:1812fc4bc6ac1bde007daa05d2d0f61199324e0cc893b11523e646595047ca08", + "sha256:2214b5c0153f45256d5d52d1e0cafe53f9905ed035a142191727a5fb620c03dd", + "sha256:275909137f0c92c61ba6bb1af856a522d5546f1de8ea01e4e726321c697754ac", + "sha256:3983611922b561868428ea1e7269e757803713f55b53502423decc509fef1650", + "sha256:51afec6ffa50a9da4cdef188971a802beb1ca8e8edb40fa429e5e529db3475fa", + "sha256:589f2ec8a101a0f340453ee6945bdfea8e1cd84c8d88e5be08716c34c0799d95", + "sha256:789820ddc65e1f5e71516adaca2e9022498fa5a837c79ba9c692a9f8f916c330", + "sha256:7a968a0bdaaf9abacc260911775611c9a602214a23aeb846f2eb2eeaa350c4dc", + "sha256:7aeefbed253f59ea39e70c5848de42ed85cb941165357fc7e87ab5d8f1f9592b", + "sha256:7b2eb55c66512405103485bd7d285a839d53e7fdc261ab20e5bcc51d7aaff5de", + "sha256:87bc95d3d333bb689c8d755b4a9d7095a2356108002149523dfc8e607d5d32a4", + "sha256:9d80e40db208e29168d3723d1440ecbb06054d349c5ece6a2c5a611490830dd7", + "sha256:a1b442195c2a77d33e4dbee67c9877ccbdd3a1f686f91eb479a9577ed8cc326b", + "sha256:ab3d769413b322d6092f169f316f7b21cd261a7589f7e31db779d5731b0480d8", + "sha256:b066d3dec5d0f5aee6e34e5765095dc3d6d78ef9839640141a2b20816a0642bd", + "sha256:b24e7845ae8de3e388ef4bcfcf7f96b05f52c8e633b33cf8003a6b1d726fc7c2", + "sha256:c59a953c3f8524a7c86eaeaef5bf702555be12f5668f6384149fe4bb75c52698", + "sha256:cf2cc6c2c10d242790412bea7ccf73726a9a44b4c4b073d2699ef3b48971fd95", + "sha256:e0c9c8d4150ae904f308ff27b35446990d2b1dfc944702a21925937e937394c6", + "sha256:f1839db4c2b08a9c8f9788112644f8a8557e8e0ecc77b07091afabb941dc55d0", + "sha256:f3df52362be39908f9c028a65490fae0475e4898b43a03d8aa29d1e765b45e07" ], - "version": "==3.3.2" + "version": "==3.4.4" }, "aiohttp-json-rpc": { "hashes": [ - "sha256:970806a3b9887c389095d2bde84e2b540fefeddd0bae0efcae03c65f092ce00e", - "sha256:d6f365067676e6089ac043ad31bcbabbf33d0343c42b57c36751a562fbe64fb6" + "sha256:00d72f40edfc7271578d545a8c47874c0e23cc5d3201ed8128481f6a4af47e32", + "sha256:02d83b6998f8a0b7e59b46f0cb8a96b475bbf82600b1f9527df47135353f1ca8" ], - "version": "==0.11.1" + "version": "==0.11.2" }, "alabaster": { "hashes": [ @@ -347,7 +361,7 @@ "sha256:0312ad34fcad8fac3704d441f7b317e50af620823353ec657a53e981f92920c0", "sha256:ec9ae8adaae229e4f8446952d204a3e4b5fdd2d099f9be3aaf556120135fb3ee" ], - "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.1.*' and python_version != '3.2.*'", + "markers": "python_version != '3.2.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.0.*' and python_version != '3.1.*'", "version": "==1.2.1" }, "attrs": { @@ -366,10 +380,10 @@ }, "black": { "hashes": [ - "sha256:22158b89c1a6b4eb333a1e65e791a3f8b998cf3b11ae094adb2570f31f769a44", - "sha256:4b475bbd528acce094c503a3d2dbc2d05a4075f6d0ef7d9e7514518e14cc5191" + "sha256:817243426042db1d36617910df579a54f1afd659adb96fc5032fcf4b36209739", + "sha256:e030a9a28f542debc08acceb273f228ac422798e5215ba2a791a6ddeaaca22a5" ], - "version": "==18.6b4" + "version": "==18.9b0" }, "certifi": { "hashes": [ @@ -387,10 +401,10 @@ }, "click": { "hashes": [ - "sha256:29f99fc6125fbc931b758dc053b3114e55c77a6e4c6c3a2674a2dc986016381d", - "sha256:f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b" + "sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13", + "sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7" ], - "version": "==6.7" + "version": "==7.0" }, "colorama": { "hashes": [ @@ -448,7 +462,7 @@ "sha256:3f349de3eb99145973fefb7dbe38554414e5c30abd0c8e4b970a7c9d09f3a1d8", "sha256:f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5" ], - "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.1.*' and python_version != '3.2.*'", + "markers": "python_version != '3.2.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.0.*' and python_version != '3.1.*'", "version": "==1.1.0" }, "jinja2": { @@ -504,22 +518,21 @@ "sha256:e8a048bfd7d5a280f27527d11449a509ddedf08b58a09a24314828631c099306", "sha256:f6dd28a0ac60e2426a6918f36f1b4e2620fc785a0de7654cd206ba842eee57fd" ], - "markers": "python_version >= '3.4.1'", "version": "==4.4.2" }, "packaging": { "hashes": [ - "sha256:e9215d2d2535d3ae866c3d6efc77d5b24a0192cce0ff20e42896cc0664f889c0", - "sha256:f019b770dd64e585a99714f1fd5e01c7a8f11b45635aa953fd41c689a657375b" + "sha256:0886227f54515e592aaa2e5a553332c73962917f2831f1b0f9b9f4380a4b9807", + "sha256:f95a1e147590f204328170981833854229bb2912ac3d5f89e2a8ccd2834800c9" ], - "version": "==17.1" + "version": "==18.0" }, "pluggy": { "hashes": [ "sha256:6e3836e39f4d36ae72840833db137f7b7d35105079aee6ec4a62d9f80d594dd1", "sha256:95eb8364a4708392bae89035f45341871286a333f749c3141c20573d2b3876e1" ], - "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.1.*' and python_version != '3.2.*'", + "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.2.*' and python_version != '3.1.*'", "version": "==0.7.1" }, "py": { @@ -527,7 +540,7 @@ "sha256:06a30435d058473046be836d3fc4f27167fd84c45b99704f2fb5509ef61f9af1", "sha256:50402e9d1c9005d759426988a492e0edaadb7f4e68bcddfea586bc7432d009c6" ], - "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.1.*' and python_version != '3.2.*'", + "markers": "python_version != '3.2.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.0.*' and python_version != '3.1.*'", "version": "==1.6.0" }, "pygments": { @@ -539,24 +552,24 @@ }, "pyparsing": { "hashes": [ - "sha256:905d8090c335314568b5faee0025b1829f27bb974604a5762a6cdef3a7dfc3b7", - "sha256:f493ee323be1e94929416b3585eefcc04943115cecbaaa35a8c86d1a2368af19" + "sha256:bc6c7146b91af3f567cf6daeaec360bc07d45ffec4cf5353f4d7a208ce7ca30a", + "sha256:d29593d8ebe7b57d6967b62494f8c72b03ac0262b1eed63826c6f788b3606401" ], - "markers": "python_version != '3.0.*' and python_version != '3.1.*' and python_version != '3.2.*' and python_version >= '2.6'", - "version": "==2.2.1" + "version": "==2.2.2" }, "pytest": { "hashes": [ - "sha256:0a72d8a9f559c006ba153e0c9b4838efd7b656cf1f993747ba7128770d6eb12c", - "sha256:95529588ff4e85114a0b0ad8e9cf0131ca47d46b28230e25366c5aba66b1d854" + "sha256:7e258ee50338f4e46957f9e09a0f10fb1c2d05493fa901d113a8dafd0790de4e", + "sha256:9332147e9af2dcf46cd7ceb14d5acadb6564744ddff1fe8c17f0ce60ece7d9a2" ], - "version": "==3.8.1" + "version": "==3.8.2" }, "pytest-asyncio": { "hashes": [ "sha256:a962e8e1b6ec28648c8fe214edab4e16bacdb37b52df26eb9d63050af309b2a9", "sha256:fbd92c067c16111174a1286bfb253660f1e564e5146b39eeed1133315cf2c2cf" ], + "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.2.*' and python_version != '3.1.*'", "version": "==0.9.0" }, "python-levenshtein": { @@ -607,7 +620,6 @@ "sha256:63b52e3c866428a224f97cab011de738c36aec0185aa91cfacd418b5d58911d1", "sha256:ec22d826a36ed72a7358ff3fe56cbd4ba69dd7a6718ffd450ff0e9df7a47ce6a" ], - "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version < '4' and python_version != '3.1.*' and python_version != '3.2.*' and python_version >= '2.6'", "version": "==2.19.1" }, "schema": { @@ -656,7 +668,7 @@ "sha256:68ca7ff70785cbe1e7bccc71a48b5b6d965d79ca50629606c7861a21b206d9dd", "sha256:9de47f375baf1ea07cdb3436ff39d7a9c76042c10a769c52353ec46e4e8fc3b9" ], - "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.1.*' and python_version != '3.2.*'", + "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version >= '2.7' and python_version != '3.2.*' and python_version != '3.1.*'", "version": "==1.1.0" }, "toml": { @@ -679,7 +691,7 @@ "sha256:a68ac5e15e76e7e5dd2b8f94007233e01effe3e50e8daddf69acfd81cb686baf", "sha256:b5725a0bd4ba422ab0e66e89e030c806576753ea3ee08554382c14e685d117b5" ], - "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version < '4' and python_version != '3.1.*' and python_version != '3.2.*' and python_version >= '2.6'", + "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version != '3.2.*' and python_version < '4' and python_version >= '2.6' and python_version != '3.1.*'", "version": "==1.23" }, "virtualenv": { @@ -687,7 +699,7 @@ "sha256:2ce32cd126117ce2c539f0134eb89de91a8413a29baac49cbab3eb50e2026669", "sha256:ca07b4c0b54e14a91af9f34d0919790b016923d157afda5efdde55c96718f752" ], - "markers": "python_version != '3.0.*' and python_version >= '2.7' and python_version != '3.1.*' and python_version != '3.2.*'", + "markers": "python_version != '3.0.*' and python_version >= '2.7' and python_version != '3.2.*' and python_version != '3.1.*'", "version": "==16.0.0" }, "websockets": { diff --git a/dependency_links.txt b/dependency_links.txt index 85b17018d..791ce4d0c 100644 --- a/dependency_links.txt +++ b/dependency_links.txt @@ -1 +1 @@ -https://github.com/Rapptz/discord.py/tarball/77239e4f1588b7cf99ca54c36665ebfc4ad5bd57#egg=discord.py-1.0.0a0 +https://github.com/Rapptz/discord.py/tarball/836ae730401ea370aa10127bb9c86854c8b516ac#egg=discord.py-1.0.0a0 diff --git a/redbot/cogs/trivia/trivia.py b/redbot/cogs/trivia/trivia.py index c05262560..55ce6337a 100644 --- a/redbot/cogs/trivia/trivia.py +++ b/redbot/cogs/trivia/trivia.py @@ -14,7 +14,7 @@ from .session import TriviaSession __all__ = ["Trivia", "UNIQUE_ID", "get_core_lists"] -UNIQUE_ID = 0xb3c0e453 +UNIQUE_ID = 0xB3C0E453 class InvalidListError(Exception): diff --git a/redbot/core/commands/__init__.py b/redbot/core/commands/__init__.py index aac40617d..b91148af1 100644 --- a/redbot/core/commands/__init__.py +++ b/redbot/core/commands/__init__.py @@ -1,4 +1,3 @@ - from discord.ext.commands import * from .commands import * from .context import * diff --git a/redbot/core/commands/context.py b/redbot/core/commands/context.py index 65b5a862a..2a11c1180 100644 --- a/redbot/core/commands/context.py +++ b/redbot/core/commands/context.py @@ -1,4 +1,3 @@ - import asyncio from typing import Iterable, List import discord diff --git a/setup.py b/setup.py index 56e97a3e9..22b92a58b 100644 --- a/setup.py +++ b/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, ) diff --git a/tests/cogs/test_permissions.py b/tests/cogs/test_permissions.py index 40388cce3..679372732 100644 --- a/tests/cogs/test_permissions.py +++ b/tests/cogs/test_permissions.py @@ -1,4 +1,3 @@ - from redbot.cogs.permissions.permissions import Permissions, GLOBAL