Commit Graph

6 Commits

Author SHA1 Message Date
Clark Boylan b52af834cc Convert pkg_resources usage to importlib
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
2024-03-20 09:17:19 -07:00
James E. Blair 8f774043e6 Use importlib for versioning
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
2023-01-23 10:51:08 -08:00
Felix Edel 220534c0f7 Store version information in component registry
This stores the zuul version of each component in the component
registry and updates the API endpoint.

Change-Id:  I1855b2a6db2bd330343cad69d9d6cf21ea35a1f5
2021-10-20 17:17:02 +02:00
James E. Blair a30eee31b5 Report git sha in status page version
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
2018-04-27 10:21:43 -07:00
Monty Taylor 5cc8a47d40 Migrate to pbr.
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
2013-06-25 19:04:30 +00:00
Paul Belanger 43cdeab65f Import oslo-incubator for versioning
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
2012-11-17 01:32:14 +00:00