More granularity in the publish stages

This commit is contained in:
Kovid Goyal 2011-11-25 11:44:47 +05:30
parent f2ce27fae9
commit 5fd4bf6e03
2 changed files with 11 additions and 9 deletions

View File

@ -21,7 +21,7 @@ __all__ = [
'linux32', 'linux64', 'linux', 'linux_freeze', 'linux32', 'linux64', 'linux', 'linux_freeze',
'osx32_freeze', 'osx', 'rsync', 'push', 'osx32_freeze', 'osx', 'rsync', 'push',
'win32_freeze', 'win32', 'win', 'win32_freeze', 'win32', 'win',
'stage1', 'stage2', 'stage3', 'stage4', 'publish' 'stage1', 'stage2', 'stage3', 'stage4', 'stage5', 'publish'
] ]
@ -54,13 +54,14 @@ resources = Resources()
kakasi = Kakasi() kakasi = Kakasi()
from setup.publish import Manual, TagRelease, Stage1, Stage2, \ from setup.publish import Manual, TagRelease, Stage1, Stage2, \
Stage3, Stage4, Publish Stage3, Stage4, Stage5, Publish
manual = Manual() manual = Manual()
tag_release = TagRelease() tag_release = TagRelease()
stage1 = Stage1() stage1 = Stage1()
stage2 = Stage2() stage2 = Stage2()
stage3 = Stage3() stage3 = Stage3()
stage4 = Stage4() stage4 = Stage4()
stage5 = Stage5()
publish = Publish() publish = Publish()
from setup.upload import UploadUserManual, UploadInstallers, UploadDemo, \ from setup.upload import UploadUserManual, UploadInstallers, UploadDemo, \

View File

@ -37,19 +37,20 @@ class Stage2(Command):
if os.path.exists(build): if os.path.exists(build):
shutil.rmtree(build) shutil.rmtree(build)
class Stage3(Command): class Stage3(Command):
description = 'Stage 3 of the publish process' description = 'Stage 3 of the publish process'
sub_commands = ['upload_user_manual', 'upload_demo', 'sdist', sub_commands = ['upload_user_manual', 'upload_demo', 'sdist']
'upload_to_sourceforge', 'upload_to_google_code',
'tag_release', 'upload_to_server',
]
class Stage4(Command): class Stage4(Command):
description = 'Stage 4 of the publish process' description = 'Stage 4 of the publish process'
sub_commands = ['upload_to_sourceforge', 'upload_to_google_code']
class Stage5(Command):
description = 'Stage 5 of the publish process'
sub_commands = ['tag_release', 'upload_to_server']
def run(self, opts): def run(self, opts):
subprocess.check_call('rm -rf build/* dist/*', shell=True) subprocess.check_call('rm -rf build/* dist/*', shell=True)
@ -57,7 +58,7 @@ class Stage4(Command):
class Publish(Command): class Publish(Command):
description = 'Publish a new calibre release' description = 'Publish a new calibre release'
sub_commands = ['stage1', 'stage2', 'stage3', 'stage4'] sub_commands = ['stage1', 'stage2', 'stage3', 'stage4', 'stage5', ]
class Manual(Command): class Manual(Command):