Skip to content

Commit 84eed29

Browse files
authored
Merge pull request #4387 from python-poetry/1.1-fix-marker-environment-for-python-3-10
[1.1] Fixed python_version for Python >= 3.10
2 parents 716ee92 + d5e3e31 commit 84eed29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

poetry/utils/env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _version_nodot(version):
102102
"platform_version": platform.version(),
103103
"python_full_version": platform.python_version(),
104104
"platform_python_implementation": platform.python_implementation(),
105-
"python_version": platform.python_version()[:3],
105+
"python_version": ".".join(platform.python_version_tuple()[:2]),
106106
"sys_platform": sys.platform,
107107
"version_info": tuple(sys.version_info),
108108
# Extra information

0 commit comments

Comments
 (0)