Importlib is the modern replacement for pkg_resources and is bundled in
python itself. Meanwhile pkg_resources is part of setuptools which is no
longer included in python as of python3.12. Do this transition to be
ready for python3.12 but also to modernize our package introspection.
Change-Id: I9a404e34ae2a833a925dcc156073e0f3f0680a11
The semver parsing in PBR doesn't handle the full suite of pep440
versions (for example: 1.2.3+foo1 is the pep440 recommended way
of handling local versions).
Since we aren't doing anything with the parsed versions anyway,
just return the string we get from importlib.
Change-Id: I0a838c639333c40db5b12cd852b921f1b1c87fed
This stores the zuul version of each component in the component
registry and updates the API endpoint.
Change-Id: I1855b2a6db2bd330343cad69d9d6cf21ea35a1f5
If the installed version of Zuul is not a release, report the
git sha along with the version on the status page.
This is calculated at startup and so should not change during
the life of the process.
Change-Id: Ia48a3765f0dd7ef369b2b30ac1d79cc1f52045b6
Change-Id: I734f0f8237fb603ee41a39f06e63c007e79825a9
Reviewed-on: https://review.openstack.org/33350
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
After successfully adding openstack versioning to jenkins-job-builder
this add the same support for zuul.
Change-Id: Ia5baab2b0d9392c1b3c70bf890eaf7c6a2ea5c29
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/16219
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins