mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Command to export packages
This commit is contained in:
parent
f52d529090
commit
a344028733
@ -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()
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user