diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-05-18 11:59:49 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-05-18 12:11:06 +0100 |
| commit | 81c944b60b81c9c2d25a38be050355d891101588 (patch) | |
| tree | 976f4eaa5f2afe34e05c78b7bcd6b3f357207de4 /setuptools/command | |
| parent | 97b4f2d959a12387d9a9b57e7c7e3ce2894a5844 (diff) | |
| download | python-setuptools-git-81c944b60b81c9c2d25a38be050355d891101588.tar.gz | |
Improve warning message for dist_info._version
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/dist_info.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/dist_info.py b/setuptools/command/dist_info.py index 8b8509f3..ca540ad1 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 # ################### |
