Merge "Make Tobiko to be working fine with packaging>=2.2.0"

This commit is contained in:
Zuul 2022-12-21 14:11:35 +00:00 committed by Gerrit Code Review
commit cd0710e2c8
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ class VersionMismatch(_exception.TobikoException):
cause = ''
VERSION_CLASSES = _version.LegacyVersion, _version.Version
try:
VERSION_CLASSES = _version.LegacyVersion, _version.Version
except AttributeError:
VERSION_CLASSES = _version.Version
Version = typing.Union[_version.Version]
VersionType = typing.Union[Version, str]