summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPradyun Gedam <pradyunsg@gmail.com>2020-02-11 20:17:58 +0530
committerGitHub <noreply@github.com>2020-02-11 14:47:58 +0000
commitf7fcb42a692c9e59b00fa5a23fbf4a376ed194e4 (patch)
treebdead2df4f1726ca6ab48074a47cb7d65b18cfb1
parent0e00194464a4eaa12ee6fd48c7a49338381fc88e (diff)
downloadvirtualenv-f7fcb42a692c9e59b00fa5a23fbf4a376ed194e4.tar.gz
print a message after creating an environment (#1569)
* Print a message after creating an environment * fix code, add changelog Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
-rw-r--r--docs/changelog/1557.feature.rst2
-rw-r--r--src/virtualenv/run/__init__.py8
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/changelog/1557.feature.rst b/docs/changelog/1557.feature.rst
new file mode 100644
index 0000000..1e39ff1
--- /dev/null
+++ b/docs/changelog/1557.feature.rst
@@ -0,0 +1,2 @@
+Print out a one line message about the created virtual environment when no :option:`verbose` is set, this can now be
+sileneced to get back the original behaviour via the :option:`quiet` flag - by :user:`pradyunsg`.
diff --git a/src/virtualenv/run/__init__.py b/src/virtualenv/run/__init__.py
index ed7f6ef..309e33b 100644
--- a/src/virtualenv/run/__init__.py
+++ b/src/virtualenv/run/__init__.py
@@ -2,6 +2,8 @@ from __future__ import absolute_import, unicode_literals
import logging
+import six
+
from ..config.cli.parser import VirtualEnvConfigParser
from ..report import LEVELS, setup_report
from ..session import Session
@@ -20,6 +22,12 @@ def run_via_cli(args, options=None):
"""
session = session_via_cli(args, options)
session.run()
+
+ logging.warning(
+ "created virtual environment %s with seeder %s",
+ six.ensure_text(str(session.creator)),
+ six.ensure_text(str(session.seeder)),
+ )
return session