def set_post_version(self):
    with self.stage('Setting Post Release Version') as s:
        pkg_info_path = os.path.join(self.project_path, PKG_ROOT, PKG_INFO)
        print('Setting version in {0} to {1}'.format(pkg_info_path, self.vars.post_version))
        with open(pkg_info_path, 'r') as f:
            pkg_info_data = json.load(f)
        pkg_info_data['version'] = self.vars.post_version
        with open(pkg_info_path, 'w') as f:
            json.dump(pkg_info_data, f)
def set_post_version(self):
    with self.stage('Setting Post Release Version') as s:
        pkg_info_path = os.path.join(self.project_path, PKG_ROOT, PKG_INFO)
        print('Setting version in {0} to {1}'.format(pkg_info_path, self.vars.post_version))
        with open(pkg_info_path, 'r') as f:
            pkg_info_data = json.load(f)
        pkg_info_data['version'] = self.vars.post_version
        with open(pkg_info_path, 'w') as f:
            json.dump(pkg_info_data, f)