From 81c944b60b81c9c2d25a38be050355d891101588 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Wed, 18 May 2022 11:59:49 +0100 Subject: [PATCH] Improve warning message for dist_info._version --- setuptools/command/dist_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setuptools/command/dist_info.py b/setuptools/command/dist_info.py index 8b8509f3df..ca540ad119 100644 --- a/setuptools/command/dist_info.py +++ b/setuptools/command/dist_info.py @@ -54,7 +54,8 @@ def _version(version: str) -> str: try: return str(packaging.version.Version(v)).replace("-", "_") except packaging.version.InvalidVersion: - msg = f"""!!\n\n + msg = f"""Invalid version: {version!r}. + !!\n\n ################### # Invalid version # ###################