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:
Draper 2020-10-10 00:32:29 +01:00 committed by GitHub
parent b45e62f354
commit d6c2e8c8c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -119,7 +119,7 @@ def init_events(bot, cli_flags):
if expected_version(current_python, py_version_req):
installed_extras = []
for extra, reqs in red_pkg._dep_map.items():
if extra is None:
if extra is None or extra in {"dev", "all"}:
continue
try:
pkg_resources.require(req.name for req in reqs)

View File

@ -111,6 +111,13 @@ test =
six==1.15.0
toml==0.10.1
wrapt==1.12.1
all =
%(postgres)s
dev =
%(all)s
%(docs)s
%(style)s
%(test)s
[options.entry_points]
console_scripts =

View File

@ -1,3 +1,3 @@
packaging
tox
-e .[docs,postgres,style,test]
-e .[dev]