Skip to content

Instantly share code, notes, and snippets.

@dpetzel dpetzel/gist:2974078
Created Jun 22, 2012

Embed
What would you like to do?
def _increment_zenpack_and_export(self):
"""
Increment the version and export the zenpack egg
"""
for pack in dmd.ZenPackManager.packs():
if pack.id == self.zenpack:
log.debug("Previous ZenPack Version was {0}".format(pack.version))
pack.version = float(pack.version) + ZENPACK_INCREMENT_STEP
self._commit_change()
log.debug("New ZenPack Version is {0}".format(pack.version))
#Persist our changes before exporting
pack.writeSetupValues()
#export the pack to the egg file on disk
pack.manage_exportPack()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.