Commit fae9ca36 authored by Jason R. Coombs's avatar Jason R. Coombs

Update warning to clarify when and how the instance should be use directly or what to do otherwise.

parent f5098c20
...@@ -182,8 +182,10 @@ class _SetuptoolsVersionMixin(object): ...@@ -182,8 +182,10 @@ class _SetuptoolsVersionMixin(object):
"You have iterated over the result of " "You have iterated over the result of "
"pkg_resources.parse_version. This is a legacy behavior which is " "pkg_resources.parse_version. This is a legacy behavior which is "
"inconsistent with the new version class introduced in setuptools " "inconsistent with the new version class introduced in setuptools "
"8.0. That class should be used directly instead of attempting to " "8.0. In most cases, conversion to a tuple is unnecessary. For "
"iterate over the result.", "comparison of versions, sort the Version instances directly. If "
"you have another use case requiring the tuple, please file a "
"bug with the setuptools project describing that need.",
RuntimeWarning, RuntimeWarning,
stacklevel=1, stacklevel=1,
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment