Skip to content

Commit

Permalink
Improve warning message for dist_info._version
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 18, 2022
1 parent 97b4f2d commit 81c944b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setuptools/command/dist_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
###################
Expand Down

0 comments on commit 81c944b

Please sign in to comment.