Files
python-jenkins/jenkins/version.py
Jax Young 8e08c8602d Correct package name used in version info
pbr uses importlib_metadata which uses distribution package name
(python-jenkins) to get version.
The old wrong code will get version of https://pypi.org/project/jenkins,
or generate a wrong version in packaing if not in the python-jenkins Git
repo.

Change-Id: I37e1c0e5e3b6aea249333e24001c58f47e81a83e
2025-04-15 00:10:37 +00:00

21 lines
793 B
Python

# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC
# Copyright 2012 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pbr.version
version_info = pbr.version.VersionInfo('python-jenkins')