Пример #1
0
 def _create_binary(self):
     """
     Build with cx_Freeze
     """
     with lcd(self.temp_sources_dir):
         local(u'{python} setup.py build --build-exe "{builddir}"'.format(
             python=getPython(), builddir=self._executable_dir))
Пример #2
0
def run(args=u''):
    '''
    Run OutWiker from sources
    '''
    with lcd("src"):
        execute(u'{} runoutwiker.py {}'.format(getPython(),
                                               args.decode('utf8')))
Пример #3
0
def test(*args):
    '''
    Run the unit tests
    '''
    with lcd('src'):
        local('{python} runtests.py {args}'.format(
            python=getPython(), args=' '.join(args)))

    if len(args) == 0:
        test_build()
Пример #4
0
def _runTests(c, testdir, prefix, section='', *args):
    files = [
        fname[len(testdir) + 1:]
        for fname in glob.glob('{path}/{prefix}*.py'.format(path=testdir,
                                                            prefix=prefix))
    ]
    files.sort()

    with c.cd(testdir):
        if section:
            c.run('{python} {prefix}{section}.py {params}'.format(
                python=getPython(),
                prefix=prefix,
                section=section,
                params=' '.join(args)))
        else:
            # with settings(warn_only=True):
            for fname in files:
                c.run('{python} {fname} {params}'.format(
                    python=getPython(), fname=fname, params=' '.join(args)))
Пример #5
0
def test(c, params=None):
    '''
    Run the unit tests
    '''
    if params is None:
        params = []

    command = getPython() if params else 'coverage run {}'.format(
        COVERAGE_PARAMS)

    c.run('{command} runtests.py {args}'.format(command=command,
                                                args=' '.join(params)))
Пример #6
0
def test(*args):
    '''
    Run the unit tests
    '''
    command = getPython() if args else 'coverage run {}'.format(COVERAGE_PARAMS)

    with lcd('src'):
        local('{command} runtests.py {args}'.format(
            command=command, args=' '.join(args)))

    if len(args) == 0:
        test_build()
Пример #7
0
def test(*args):
    '''
    Run the unit tests
    '''
    command = getPython() if args else 'coverage run {}'.format(
        COVERAGE_PARAMS)

    local('{command} runtests.py {args}'.format(command=command,
                                                args=' '.join(args)))

    if len(args) == 0:
        test_build()
Пример #8
0
def _runTests(testdir, prefix, section=u'', *args):
    files = [fname[len(testdir) + 1:]
             for fname
             in glob.glob(u'{path}/{prefix}*.py'.format(path=testdir,
                                                        prefix=prefix))]
    files.sort()

    with lcd(testdir):
        if section:
            execute("{python} {prefix}{section}.py {params}".format(
                python=getPython(),
                prefix=prefix,
                section=section,
                params=u' '.join(args))
            )
        else:
            with settings(warn_only=True):
                for fname in files:
                    execute("{python} {fname} {params}".format(
                        python=getPython(),
                        fname=fname,
                        params=u' '.join(args))
                    )
Пример #9
0
def run(c, args=''):
    '''
    Run OutWiker from sources
    '''
    with c.cd("src"):
        c.run('{} runoutwiker.py {}'.format(getPython(), args))
Пример #10
0
def run(args=u''):
    '''
    Run OutWiker from sources
    '''
    with lcd("src"):
        execute(u'{} runoutwiker.py {}'.format(getPython(), args))
Пример #11
0
def run(args=u''):
    """
    Run OutWiker from sources
    """
    with lcd("src"):
        execute(u'{} runoutwiker.py {}'.format(getPython(), args.decode('utf8')))