mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
More granularity in the publish stages
This commit is contained in:
parent
f2ce27fae9
commit
5fd4bf6e03
@ -21,7 +21,7 @@ __all__ = [
|
||||
'linux32', 'linux64', 'linux', 'linux_freeze',
|
||||
'osx32_freeze', 'osx', 'rsync', 'push',
|
||||
'win32_freeze', 'win32', 'win',
|
||||
'stage1', 'stage2', 'stage3', 'stage4', 'publish'
|
||||
'stage1', 'stage2', 'stage3', 'stage4', 'stage5', 'publish'
|
||||
]
|
||||
|
||||
|
||||
@ -54,13 +54,14 @@ resources = Resources()
|
||||
kakasi = Kakasi()
|
||||
|
||||
from setup.publish import Manual, TagRelease, Stage1, Stage2, \
|
||||
Stage3, Stage4, Publish
|
||||
Stage3, Stage4, Stage5, Publish
|
||||
manual = Manual()
|
||||
tag_release = TagRelease()
|
||||
stage1 = Stage1()
|
||||
stage2 = Stage2()
|
||||
stage3 = Stage3()
|
||||
stage4 = Stage4()
|
||||
stage5 = Stage5()
|
||||
publish = Publish()
|
||||
|
||||
from setup.upload import UploadUserManual, UploadInstallers, UploadDemo, \
|
||||
|
@ -37,19 +37,20 @@ class Stage2(Command):
|
||||
if os.path.exists(build):
|
||||
shutil.rmtree(build)
|
||||
|
||||
|
||||
|
||||
class Stage3(Command):
|
||||
|
||||
description = 'Stage 3 of the publish process'
|
||||
sub_commands = ['upload_user_manual', 'upload_demo', 'sdist',
|
||||
'upload_to_sourceforge', 'upload_to_google_code',
|
||||
'tag_release', 'upload_to_server',
|
||||
]
|
||||
sub_commands = ['upload_user_manual', 'upload_demo', 'sdist']
|
||||
|
||||
class Stage4(Command):
|
||||
|
||||
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):
|
||||
subprocess.check_call('rm -rf build/* dist/*', shell=True)
|
||||
@ -57,7 +58,7 @@ class Stage4(Command):
|
||||
class Publish(Command):
|
||||
|
||||
description = 'Publish a new calibre release'
|
||||
sub_commands = ['stage1', 'stage2', 'stage3', 'stage4']
|
||||
sub_commands = ['stage1', 'stage2', 'stage3', 'stage4', 'stage5', ]
|
||||
|
||||
class Manual(Command):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user