Command to export packages

This commit is contained in:
Kovid Goyal 2019-09-05 08:15:19 +05:30
parent f52d529090
commit a344028733
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 16 additions and 1 deletions

View File

@ -21,14 +21,16 @@ __all__ = [
'upload_user_manual', 'upload_demo', 'reupload',
'stage1', 'stage2', 'stage3', 'stage4', 'stage5', 'publish', 'publish_betas',
'linux', 'linux32', 'linux64', 'win', 'win32', 'win64', 'osx', 'build_dep',
'export_packages',
]
from setup.installers import Linux, Win, OSX, Linux32, Linux64, Win32, Win64, ExtDev, BuildDep
from setup.installers import Linux, Win, OSX, Linux32, Linux64, Win32, Win64, ExtDev, BuildDep, ExportPackages
linux, linux32, linux64 = Linux(), Linux32(), Linux64()
win, win32, win64 = Win(), Win32(), Win64()
osx = OSX()
extdev = ExtDev()
build_dep = BuildDep()
export_packages = ExportPackages()
from setup.translations import POT, GetTranslations, Translations, ISO639, ISO3166
pot = POT()

View File

@ -172,6 +172,19 @@ class BuildDep(Command):
build_dep(args)
class ExportPackages(Command):
description = 'Export built deps to a server for CI testing'
def run(self, opts):
base, bypy = get_paths()
exe = get_exe()
cmd = [exe, bypy, 'export'] + list(opts.cli_args) + ['download.calibre-ebook.com:/srv/download/ci/calibre']
ret = subprocess.Popen(cmd).wait()
if ret != 0:
raise SystemExit(ret)
class ExtDev(Command):
description = 'Develop a single native extension conveniently'