From 00a3e869e9dfa259d26a41afbbfd766b4312843c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Randy=20D=C3=B6ring?=
<30527984+radoering@users.noreply.github.com>
Date: Fri, 29 Dec 2023 09:41:05 +0100
Subject: [PATCH] env: rename "system" to "base" in output of `env info`
---
docs/managing-environments.md | 4 ++--
src/poetry/console/commands/env/info.py | 10 +++++-----
tests/console/commands/env/test_info.py | 2 +-
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/docs/managing-environments.md b/docs/managing-environments.md
index 7a7a16f0779..a663c806397 100644
--- a/docs/managing-environments.md
+++ b/docs/managing-environments.md
@@ -88,13 +88,13 @@ poetry env info
will output something similar to this:
```text
-Virtual environment
+Virtualenv
Python: 3.7.1
Implementation: CPython
Path: /path/to/poetry/cache/virtualenvs/test-O3eWbxRl-py3.7
Valid: True
-System
+Base
Platform: darwin
OS: posix
Python: /path/to/main/python
diff --git a/src/poetry/console/commands/env/info.py b/src/poetry/console/commands/env/info.py
index e67f8a5c7f7..34c53ad270e 100644
--- a/src/poetry/console/commands/env/info.py
+++ b/src/poetry/console/commands/env/info.py
@@ -71,15 +71,15 @@ def _display_complete_info(self, env: Env) -> None:
self.line("")
- system_env = env.parent_env
- python = ".".join(str(v) for v in system_env.version_info[:3])
- self.line("System")
+ base_env = env.parent_env
+ python = ".".join(str(v) for v in base_env.version_info[:3])
+ self.line("Base")
self.line(
"\n".join([
f"Platform: {env.platform}>",
f"OS: {env.os}>",
f"Python: {python}>",
- f"Path: {system_env.path}>",
- f"Executable: {system_env.python}>",
+ f"Path: {base_env.path}>",
+ f"Executable: {base_env.python}>",
])
)
diff --git a/tests/console/commands/env/test_info.py b/tests/console/commands/env/test_info.py
index c971999d23d..bc9faf24973 100644
--- a/tests/console/commands/env/test_info.py
+++ b/tests/console/commands/env/test_info.py
@@ -43,7 +43,7 @@ def test_env_info_displays_complete_info(tester: CommandTester) -> None:
Executable: {sys.executable}
Valid: True
-System
+Base
Platform: darwin
OS: posix
Python: {'.'.join(str(v) for v in sys.version_info[:3])}