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/ +/865166 /opendev. org/openstack/ openstack- ansible/ commit/ f933194813de9d1 8b89040fa8c5b80 bcd0dd967c
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit f933194813de9d1 8b89040fa8c5b80 bcd0dd967c
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