From 0632349df0e4576333820775ea1a5e4e928e7cf3 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sun, 1 Aug 2021 16:37:53 +0200 Subject: [PATCH] Fixed python_version for Python >= 3.10 --- poetry/utils/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry/utils/env.py b/poetry/utils/env.py index 35493ec6f58..8d4c418fd82 100644 --- a/poetry/utils/env.py +++ b/poetry/utils/env.py @@ -109,7 +109,7 @@ def _version_nodot(version): "platform_version": platform.version(), "python_full_version": platform.python_version(), "platform_python_implementation": platform.python_implementation(), - "python_version": platform.python_version()[:3], + "python_version": ".".join(platform.python_version_tuple()[:2]), "sys_platform": sys.platform, "version_info": tuple(sys.version_info), # Extra information