Tox 2.3 regression

Issue #294 on hold
Jordan Pittier created an issue

Hi, At least two openstack project (Tempest and Nova) are hit by a regression introduced with Tox 2.3 released a couple of hours ago on pypi.

Here is a relevant stack trace:

(toxtox)jordan@jordan-XPS13:/opt/stack/tempest (master %=)$ tox --version
2.3.0 imported from /opt/stack/tempest/toxtox/local/lib/python2.7/site-packages/tox/__init__.pyc
(toxtox)jordan@jordan-XPS13:/opt/stack/tempest (master %=)$ tox -epep8
Traceback (most recent call last):
  File "/opt/stack/tempest/toxtox/bin/tox", line 11, in <module>
  File "/opt/stack/tempest/toxtox/local/lib/python2.7/site-packages/tox/", line 38, in main
    config = prepare(args)
  File "/opt/stack/tempest/toxtox/local/lib/python2.7/site-packages/tox/", line 26, in prepare
    config = parseconfig(args)
  File "/opt/stack/tempest/toxtox/local/lib/python2.7/site-packages/tox/", line 229, in parseconfig
    parseini(config, inipath)
  File "/opt/stack/tempest/toxtox/local/lib/python2.7/site-packages/tox/", line 729, in __init__
    self.make_envconfig(name, section, reader._subs, config)
  File "/opt/stack/tempest/toxtox/local/lib/python2.7/site-packages/tox/", line 760, in make_envconfig
    res = meth(, env_attr.default)
  File "/opt/stack/tempest/toxtox/local/lib/python2.7/site-packages/tox/", line 893, in getdict_setenv
    definitions = self._getdict(value, default=default, sep=sep)
  File "/opt/stack/tempest/toxtox/local/lib/python2.7/site-packages/tox/", line 904, in _getdict
    name, rest = line.split('=', 1)
ValueError: need more than 1 value to unpack

I think Tox failed on these lines:

sitepackages = True
# 'all' includes slow tests
setenv = {[tempestenv]setenv}
deps = {[tempestenv]deps}

Full tox.ini here:

Comments (8)

  1. Florian Bruhin

    I've talked with @hpk42 about this already, and this is due to the recent changes breaking getting setenv from other environments, like you do with {[tempestenv]setenv}.

  2. Holger Krekel repo owner

    "nobody is using that feature" is for some odd reason what i thought. sorry about that. will see to fix things and release a tox-2.3.1 early next week. please stick with tox-2.2 series for the time being.

  3. Log in to comment