Merge "Remove unused usage of pkg_resources"
This commit is contained in:
commit
ca0b7bbe6e
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user