MCPcopy Create free account
hub / github.com/apache/solr / _version_sort_key

Method _version_sort_key

dev-tools/scripts/changes2logchange.py:800–806  ·  view source on GitHub ↗

Convert version string to sortable tuple for proper ordering.

(self, version: str)

Source from the content-addressed store, hash-verified

798 return '.'.join(parts)
799
800 def _version_sort_key(self, version: str) -> tuple:
801 """Convert version string to sortable tuple for proper ordering."""
802 try:
803 from packaging import version as pkg_version
804 return (pkg_version.parse(version),)
805 except Exception:
806 return (version,)
807
808 def _print_comparison_report(self, all_normalized_versions: list, changes_normalized: dict,
809 solr_normalized: dict, existing_normalized: dict):

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected