jenkins-job-builder/jenkins_jobs/version.py
Emilien Macchi 8c187f8595 Get verison info for jenkins-job-builder
Old setuptools/distribute VersionInfo() needs the dist name not the
package name to get the correct version info. Switch to using
'jenkins-job-builder' which is the dist name instead of using
'jenkins_jobs' which is the package name so that we get the right data
when processing versions on old setuptools.

Closes-Bug: #1384238
Change-Id: I94a6bc6a5580ea8861eb603e5dfab2825475b45f
2014-10-22 09:46:10 -07:00

21 lines
803 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.
from pbr.version import VersionInfo
version_info = VersionInfo('jenkins-job-builder')