mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Add bundled install extras. (#4443)
* add an `[all]` extras_requires * can go here * add a [dev] which includes [all] + development extras (style, test, docs) * special case all and dev in update message * Optimize by changing the place of the check for "special" extras Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
parent
b45e62f354
commit
d6c2e8c8c3
@ -119,7 +119,7 @@ def init_events(bot, cli_flags):
|
|||||||
if expected_version(current_python, py_version_req):
|
if expected_version(current_python, py_version_req):
|
||||||
installed_extras = []
|
installed_extras = []
|
||||||
for extra, reqs in red_pkg._dep_map.items():
|
for extra, reqs in red_pkg._dep_map.items():
|
||||||
if extra is None:
|
if extra is None or extra in {"dev", "all"}:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
pkg_resources.require(req.name for req in reqs)
|
pkg_resources.require(req.name for req in reqs)
|
||||||
|
|||||||
@ -111,6 +111,13 @@ test =
|
|||||||
six==1.15.0
|
six==1.15.0
|
||||||
toml==0.10.1
|
toml==0.10.1
|
||||||
wrapt==1.12.1
|
wrapt==1.12.1
|
||||||
|
all =
|
||||||
|
%(postgres)s
|
||||||
|
dev =
|
||||||
|
%(all)s
|
||||||
|
%(docs)s
|
||||||
|
%(style)s
|
||||||
|
%(test)s
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
packaging
|
packaging
|
||||||
tox
|
tox
|
||||||
-e .[docs,postgres,style,test]
|
-e .[dev]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user