From 730aa75a85dd548ba4095ee9086148a21ee9f511 Mon Sep 17 00:00:00 2001 From: Pascal F Date: Wed, 11 Jan 2023 16:46:08 +0100 Subject: [PATCH] Add poetry version used to generate lock file --- src/poetry/packages/locker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/poetry/packages/locker.py b/src/poetry/packages/locker.py index 7fd19669457..d01eb05c4ab 100644 --- a/src/poetry/packages/locker.py +++ b/src/poetry/packages/locker.py @@ -25,6 +25,7 @@ from tomlkit import inline_table from tomlkit import table +from poetry.__version__ import __version__ from poetry.utils._compat import tomllib @@ -40,8 +41,8 @@ logger = logging.getLogger(__name__) _GENERATED_IDENTIFIER = "@" + "generated" GENERATED_COMMENT = ( - f"This file is automatically {_GENERATED_IDENTIFIER} by Poetry and should not be" - " changed by hand." + f"This file is automatically {_GENERATED_IDENTIFIER} by Poetry (version" + f" {__version__}) and should not be changed by hand." )