From 63c98c2ff2bf6506499ed73e8c0806df79351951 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Fri, 20 Aug 2021 20:22:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Document=20when=20`{tty}`=20was?= =?UTF-8?q?=20added=20(#2166)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/changelog.rst | 2 +- docs/config.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index d7b9c81bc..e130fc803 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1073,7 +1073,7 @@ Features - While running tox invokes various commands (such as building the package, pip installing dependencies and so on), these were printed in case they failed as Python arrays. Changed the representation to a shell command, allowing the users to quickly replicate/debug the failure on their own - by :user:`gaborbernat` (`#851 `_) - skip missing interpreters value from the config file can now be overridden via the ``--skip-missing-interpreters`` cli flag - by :user:`gaborbernat` (`#903 `_) - keep additional environments config order when listing them - by :user:`gaborbernat` (`#921 `_) -- allow injecting config value inside the ini file dependent of the fact that we're connected to an interactive shell or not - by :user:`gaborbernat` (`#947 `_) +- allow injecting config value inside the ini file dependent of the fact that we're connected to an interactive shell or not via exposing a ``{tty}`` substitution - by :user:`gaborbernat` (`#947 `_) - do not build sdist if skip install is specified for the envs to be run - by :user:`gaborbernat` (`#974 `_) - when verbosity level increases above two start passing through verbosity flags to pip - by :user:`gaborbernat` (`#982 `_) - when discovering the interpreter to use check if the tox host Python matches and use that if so - by :user:`gaborbernat` (`#994 `_) diff --git a/docs/config.rst b/docs/config.rst index 34aad3556..e99c702e6 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -789,6 +789,8 @@ the above example is roughly equivalent to Interactive shell substitution ++++++++++++++++++++++++++++++ +.. versionadded:: 3.4.0 + It's possible to inject a config value only when tox is running in interactive shell (standard input):: {tty:ON_VALUE:OFF_VALUE}