jenkins-job-builder/tests/moduleregistry
Eric Ball 97ad297610 Fix: Avoid LegacyVersion casting due to hyphens
Plugins are no longer following semantic versioning, and frequently
include additional versioning information.

pkg_resources.parse_version generally handles this well, but some
versions with a hyphen will return a LegacyVersion object rather than
a Version object, causing it to always compare as lower than any
Version object.

Simply replacing any '-' with '+' fixes this issue, and does not
materially change the versioning.

Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: I5ad949d688ce7ebd0d183d69f4ce87b35343357f
2022-04-12 11:21:49 -07:00
..
__init__.py Add plugins_info to module registry object. 2015-02-04 05:02:14 -08:00
test_moduleregistry.py Fix: Avoid LegacyVersion casting due to hyphens 2022-04-12 11:21:49 -07:00