Skip to content

Instantly share code, notes, and snippets.

@dpetzel
Created June 22, 2012 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpetzel/2974078 to your computer and use it in GitHub Desktop.
Save dpetzel/2974078 to your computer and use it in GitHub Desktop.
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