def normalize(cls, v): # TODO: Trailing '.0's should be ignored - i.e., "1.2.0" == "1.2" - however, # `packaging.version` does not seem to expose any functions to deal with that. return str(PackagingVersion(v))