Created
June 22, 2012 17:24
-
-
Save dpetzel/2974078 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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