Merge "Remove unused usage of pkg_resources"

This commit is contained in:
Zuul 2024-10-31 04:39:26 +00:00 committed by Gerrit Code Review
commit ca0b7bbe6e

View File

@ -14,19 +14,14 @@
# License for the specific language governing permissions and limitations
# under the License.
import pkg_resources
from pbr import version as pbr_version
TASK_VENDOR = "OpenStack Foundation"
TASK_PRODUCT = "OpenStack TaskFlow"
TASK_PACKAGE = None # OS distro package version suffix
try:
from pbr import version as pbr_version
_version_info = pbr_version.VersionInfo('taskflow')
version_string = _version_info.version_string
except ImportError:
_version_info = pkg_resources.get_distribution('taskflow')
version_string = lambda: _version_info.version
_version_info = pbr_version.VersionInfo('taskflow')
version_string = _version_info.version_string
def version_string_with_package():