summaryrefslogtreecommitdiff
path: root/tox/_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'tox/_config.py')
-rw-r--r--tox/_config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tox/_config.py b/tox/_config.py
index 171e20b..d24d044 100644
--- a/tox/_config.py
+++ b/tox/_config.py
@@ -96,6 +96,8 @@ def prepare_parse(pkgname):
parser.add_argument("-r", "--recreate", action="store_true",
dest="recreate",
help="force recreation of virtual environments")
+ parser.add_argument("--extradeps", action="store", default="",
+ help="comma-separated list of global extra dependencies")
parser.add_argument("args", nargs="*",
help="additional arguments available to command positional substition")
return parser
@@ -287,7 +289,9 @@ class parseini:
vc.commands = reader.getargvlist(section, "commands")
vc.deps = []
- for depline in reader.getlist(section, "deps"):
+ deplines = reader.getlist(section, "deps")
+ deplines.extend(filter(None, config.option.extradeps.split(",")))
+ for depline in deplines:
m = re.match(r":(\w+):\s*(\S+)", depline)
if m:
iname, name = m.groups()