diff --git a/docs/changelog/1777.bugfix.rst b/docs/changelog/1777.bugfix.rst new file mode 100644 index 000000000..d938fbae6 --- /dev/null +++ b/docs/changelog/1777.bugfix.rst @@ -0,0 +1 @@ +Fix regression that broke using install_command in config replacements - by :user:`jayvdb` diff --git a/src/tox/config/__init__.py b/src/tox/config/__init__.py index 30296ee7c..b438c5a28 100644 --- a/src/tox/config/__init__.py +++ b/src/tox/config/__init__.py @@ -1848,6 +1848,12 @@ def _replace_match(self, match): return os.pathsep default_value = g["default_value"] + # special case: opts and packages. Leave {opts} and + # {packages} intact, they are replaced manually in + # _venv.VirtualEnv.run_install_command. + if sub_value in ("opts", "packages"): + return "{{{}}}".format(sub_value) + if sub_value == "posargs": return self.reader.getposargs(default_value)