Fix site version parsing in rb-site upgrade with modern packaging libs.
Review Request #13086 — Created May 31, 2023 and submitted
rb-site upgrade, the old site version is checked to see
if certain steps need to be performed. We check the display version of
the site, since that's all that we can pull from siteconfig, and
historically this has worked, with
turning this into a
Unfortunately, this support has been dropped, causing this code path to
fail if running any beta, alpha, RC, or development releases.
To work around this, we now pull out the actual version component (the
part before a space) and compare using that.
pkg_resourcesis deprecated, this also moves our version parsing
packaging.version.parseinstead. This is the first step toward
moving away from
Tested a site upgrade, verifying that this code path was being executed.
Verified that the version check worked fine on an alpha dev build.