

import pbr.version

version_info = pbr.version.VersionInfo('glance')



GLANCE_VENDOR = "OpenStack Foundation"
GLANCE_PRODUCT = "OpenStack Glance"
GLANCE_PACKAGE = None  # OS distro package version suffix

loaded = False


class VersionInfo(object):
    release = "REDHATGLANCERELEASE"
    version = "REDHATGLANCEVERSION"

    def version_string(self):
        return self.version

    def cached_version_string(self):
        return self.version

    def release_string(self):
        return self.release

    def canonical_version_string(self):
        return self.version

    def version_string_with_vcs(self):
        return self.release


version_info = VersionInfo()

Remove runtime dep on python pbr
Remove runtime dep on python pbr

  
  
- import pbr.version
+ GLANCE_VENDOR = "OpenStack Foundation"
+ GLANCE_PRODUCT = "OpenStack Glance"
+ GLANCE_PACKAGE = None  # OS distro package version suffix
  
- version_info = pbr.version.VersionInfo('glance')
+ loaded = False
  
+ 
+ class VersionInfo(object):
+     release = "REDHATGLANCERELEASE"
+     version = "REDHATGLANCEVERSION"
+ 
+     def version_string(self):
+         return self.version
+ 
+     def cached_version_string(self):
+         return self.version
+ 
+     def release_string(self):
+         return self.release
+ 
+     def canonical_version_string(self):
+         return self.version
+ 
+     def version_string_with_vcs(self):
+         return self.release
+ 
+ 
+ version_info = VersionInfo()
+ 
Remove runtime dep on python pbr
## Code Before:


import pbr.version

version_info = pbr.version.VersionInfo('glance')

## Instruction:
Remove runtime dep on python pbr
## Code After:


GLANCE_VENDOR = "OpenStack Foundation"
GLANCE_PRODUCT = "OpenStack Glance"
GLANCE_PACKAGE = None  # OS distro package version suffix

loaded = False


class VersionInfo(object):
    release = "REDHATGLANCERELEASE"
    version = "REDHATGLANCEVERSION"

    def version_string(self):
        return self.version

    def cached_version_string(self):
        return self.version

    def release_string(self):
        return self.release

    def canonical_version_string(self):
        return self.version

    def version_string_with_vcs(self):
        return self.release


version_info = VersionInfo()
