Ejemplo n.º 1
0
def buildLiveblogPackages(liveblogDir, buildDir):
    '''
    '''
    ignorePaths = ('__pycache__', '*.egg-info', 'setup.cfg', 'setup.py', '*.ant', 'MANIFEST.in')

    relocatePaths = ('gui-resources', 'gui-themes')

    packages = ('frontline', 'frontline-inlet',
                'livedesk', 'livedesk-embed', 'livedesk-sync', 'media-archive', 'media-archive-audio',
                'media-archive-image', 'media-archive-video', 'superdesk', 'superdesk-collaborator',
                'superdesk-language', 'superdesk-person', 'superdesk-person-icon', 'superdesk-post',
                'superdesk-security', 'superdesk-source', 'superdesk-user', 'support', 'url-info')

    print('\nPrepare build for Liveblog')

    makedirs(buildDir, exist_ok=True)

    for package in packages:
        packageDir = join(liveblogDir, 'plugins', package)
        copyPackage(packageDir, buildDir, ignorePaths, relocatePaths)

    copy(join(dirname(__file__), 'setup-liveblog', 'setup.py'), buildDir)
    copy(join(dirname(__file__), 'setup-liveblog', 'setup.cfg'), buildDir)
    copy(join(dirname(__file__), 'setup-liveblog', 'README'), buildDir)
    copy(join(dirname(dirname(__file__)), 'distribution', 'application.py'),
         join(dirname(__file__), 'distribution'))

    copyPackage(join(dirname(__file__), 'setup-liveblog', 'livedesk-embed'), buildDir)

    buildEgg(buildDir)
Ejemplo n.º 2
0
def buildLiveblogPackages(liveblogDir, buildDir):
    '''
    '''
    ignorePaths = ('__pycache__', '*.egg-info', 'setup.cfg', 'setup.py',
                   '*.ant', 'MANIFEST.in')

    relocatePaths = ('gui-resources', 'gui-themes')

    packages = ('frontline', 'frontline-inlet', 'livedesk', 'livedesk-embed',
                'livedesk-sync', 'media-archive', 'media-archive-audio',
                'media-archive-image', 'media-archive-video', 'superdesk',
                'superdesk-collaborator', 'superdesk-language',
                'superdesk-person', 'superdesk-person-icon', 'superdesk-post',
                'superdesk-security', 'superdesk-source', 'superdesk-user',
                'support', 'url-info')

    print('\nPrepare build for Liveblog')

    makedirs(buildDir, exist_ok=True)

    for package in packages:
        packageDir = join(liveblogDir, 'plugins', package)
        copyPackage(packageDir, buildDir, ignorePaths, relocatePaths)

    copy(join(dirname(__file__), 'setup-liveblog', 'setup.py'), buildDir)
    copy(join(dirname(__file__), 'setup-liveblog', 'setup.cfg'), buildDir)
    copy(join(dirname(__file__), 'setup-liveblog', 'README'), buildDir)
    copy(join(dirname(dirname(__file__)), 'distribution', 'application.py'),
         join(dirname(__file__), 'distribution'))

    copyPackage(join(dirname(__file__), 'setup-liveblog', 'livedesk-embed'),
                buildDir)

    buildEgg(buildDir)
Ejemplo n.º 3
0
def buildAllyPyPackages(allyPyDir, buildDir):
    '''
    '''
    ignorePaths = ('__pycache__', '*.egg-info', 'setup.cfg', 'setup.py',
                   '*.ant', 'MANIFEST.in', 'aloha', 'aloha-*')

    relocatePaths = ('gui-resources', )

    components = ('ally', 'ally-api', 'ally-core', 'ally-core-http',
                  'ally-core-sqlalchemy', 'ally-http',
                  'ally-http-asyncore-server', 'ally-http-mongrel2-server',
                  'ally-plugin', 'service-cdm', 'service-gateway',
                  'service-gateway-recaptcha')

    plugins = ('administration', 'gateway', 'gateway_captcha', 'gui-action',
               'gui-core', 'internationalization', 'security', 'security-rbac',
               'support-acl', 'support-cdm', 'support-sqlalchemy')

    print('\nPrepare build for Ally-Py')

    makedirs(buildDir, exist_ok=True)

    for package in components:
        packageDir = join(allyPyDir, 'components', package)
        copyPackage(packageDir, buildDir, ignorePaths)

    for package in plugins:
        packageDir = join(allyPyDir, 'plugins', package)
        copyPackage(packageDir, buildDir, ignorePaths, relocatePaths)

    copy(join(dirname(__file__), 'setup-allypy', 'setup.py'), buildDir)
    copy(join(dirname(__file__), 'setup-allypy', 'setup.cfg'), buildDir)
    copy(join(dirname(__file__), 'setup-allypy', 'MANIFEST.in'), buildDir)
    copy(join(dirname(dirname(dirname(__file__))), 'README'), buildDir)

    copyPackage(join(dirname(__file__), 'setup-allypy', 'gui-core'), buildDir)
    copyPackage(
        join(dirname(__file__), 'setup-allypy', 'internationalization'),
        buildDir)

    buildEgg(buildDir)
Ejemplo n.º 4
0
def buildAllyPyPackages(allyPyDir, buildDir):
    '''
    '''
    ignorePaths = ('__pycache__', '*.egg-info', 'setup.cfg', 'setup.py', '*.ant', 'MANIFEST.in',
                   'aloha', 'aloha-*')

    relocatePaths = ('gui-resources',)

    components = ('ally', 'ally-api', 'ally-core', 'ally-core-http', 'ally-core-sqlalchemy',
                  'ally-http', 'ally-http-asyncore-server', 'ally-http-mongrel2-server',
                  'ally-plugin', 'service-cdm', 'service-gateway', 'service-gateway-recaptcha')

    plugins = ('administration', 'gateway', 'gateway_captcha', 'gui-action', 'gui-core',
               'internationalization', 'security', 'security-rbac', 'support-acl',
               'support-cdm', 'support-sqlalchemy')

    print('\nPrepare build for Ally-Py')

    makedirs(buildDir, exist_ok=True)

    for package in components:
        packageDir = join(allyPyDir, 'components', package)
        copyPackage(packageDir, buildDir, ignorePaths)

    for package in plugins:
        packageDir = join(allyPyDir, 'plugins', package)
        copyPackage(packageDir, buildDir, ignorePaths, relocatePaths)

    copy(join(dirname(__file__), 'setup-allypy', 'setup.py'), buildDir)
    copy(join(dirname(__file__), 'setup-allypy', 'setup.cfg'), buildDir)
    copy(join(dirname(__file__), 'setup-allypy', 'MANIFEST.in'), buildDir)
    copy(join(dirname(dirname(dirname(__file__))), 'README'), buildDir)

    copyPackage(join(dirname(__file__), 'setup-allypy', 'gui-core'), buildDir)
    copyPackage(join(dirname(__file__), 'setup-allypy', 'internationalization'), buildDir)

    buildEgg(buildDir)