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))
def run(args=u''): ''' Run OutWiker from sources ''' with lcd("src"): execute(u'{} runoutwiker.py {}'.format(getPython(), args.decode('utf8')))
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()
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)))
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)))
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()
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()
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)) )
def run(c, args=''): ''' Run OutWiker from sources ''' with c.cd("src"): c.run('{} runoutwiker.py {}'.format(getPython(), args))
def run(args=u''): ''' Run OutWiker from sources ''' with lcd("src"): execute(u'{} runoutwiker.py {}'.format(getPython(), args))
def run(args=u''): """ Run OutWiker from sources """ with lcd("src"): execute(u'{} runoutwiker.py {}'.format(getPython(), args.decode('utf8')))