With release of new setuptools running setup.py --version started
returining extra line. Eventually, running setup.py as a script is not
considered as good practice and we should not rely on it's output much.
Instead, we can leverage importlib.metadata as it should be more
reliable in long run.
Reviewed: https:/ /review. opendev. org/c/openstack /openstack- ansible/ +/865312 /opendev. org/openstack/ openstack- ansible/ commit/ 7eebc69e8a5a2a6 346f68b11bd9f6b 6109e10fd9
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 7eebc69e8a5a2a6 346f68b11bd9f6b 6109e10fd9
Author: Dmitriy Rabotyagov <email address hidden>
Date: Tue Nov 22 18:10:01 2022 +0100
Update self version fetching mechanism
With release of new setuptools running setup.py --version started
returining extra line. Eventually, running setup.py as a script is not
considered as good practice and we should not rely on it's output much.
Instead, we can leverage importlib.metadata as it should be more
reliable in long run.
Closes-Bug: #1997365 1456e1acc6b4daf 198f39d989a
Change-Id: Ife227db4ad2585