Python tox 模块,cmdline() 实例源码

我们从Python开源项目中,提取了以下49个代码示例,用于说明如何使用tox.cmdline()

项目:mediafile    作者:beetbox    | 项目源码 | 文件源码
def run(self):
        # Install test dependencies if needed.
        if self.distribution.tests_require:
            self.distribution.fetch_build_eggs(self.distribution.tests_require)

        # Add eggs to PYTHONPATH. We need to do this to ensure our eggs are
        # seen by Tox.
        self.distribution.export_live_eggs()

        import shlex
        import tox

        parsed_args = shlex.split(self.tox_args)
        result = tox.cmdline(args=parsed_args)

        sys.exit(result)
项目:py-secretcrypt    作者:Zemanta    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:jwplatform-py    作者:jwplayer    | 项目源码 | 文件源码
def run_tests(self):
        # Import here. Outside the .eggs/ will not load
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:sshaolin    作者:bucknerns    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
项目:python-fastpip    作者:intelie    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        if self.environment:
            self.test_args.append('-e{0}'.format(self.environment))
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
项目:bootstrap-py    作者:mkouhei    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        import shlex
        if self.tox_args:
            errno = tox.cmdline(args=shlex.split(self.tox_args))
        else:
            errno = tox.cmdline(self.test_args)
        sys.exit(errno)
项目:airflow-hovercraft    作者:gtoonstra    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(args=self.tox_args.split())
        sys.exit(errno)
项目:scriptworker    作者:mozilla-releng    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:django-audit-tools    作者:PeRDy    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        import shlex
        errno = tox.cmdline(args=shlex.split(self.tox_args))
        sys.exit(errno)
项目:smartcontainers    作者:crcresearch    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:dd-trace-py    作者:DataDog    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:python-diskcache    作者:grantjenks    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
项目:incubator-airflow-old    作者:apache    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(args=self.tox_args.split())
        sys.exit(errno)
项目:swarmci    作者:ghostsquad    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        tox.cmdline(args=args)
项目:tower-companion    作者:gerva    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:bumplus    作者:dochang    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:benzo    作者:coddingtonbear    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
项目:bingmaps    作者:bharadwajyarlagadda    | 项目源码 | 文件源码
def run_tests(self):
        # Import here because outside the eggs aren't loaded.
        import tox
        import shlex

        errno = tox.cmdline(args=shlex.split(self.tox_args))
        sys.exit(errno)
项目:pytest-github    作者:jlaska    | 项目源码 | 文件源码
def run_tests(self):
        """Invoke the test runner (tox)."""
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        errno = tox.cmdline(args=shlex.split(self.tox_args))
        sys.exit(errno)
项目:snake    作者:jcomo    | 项目源码 | 文件源码
def run_tests(self):
        # Import here since eggs aren't loaded outside of this scope
        import tox
        import shlex

        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)

        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:django-concurrent-test-helper    作者:depop    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
项目:packit    作者:ncbi    | 项目源码 | 文件源码
def _run_tox(self):
        self.distribution.fetch_build_eggs(self.requirements_tox)

        import tox

        exit_code = tox.cmdline(args=self.additional_test_args)
        raise SystemExit(exit_code)
项目:wikipedia_parser    作者:ojones    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)
项目:PYEVALB    作者:flyaway1217    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)
项目:errorgeopy    作者:alpha-beta-soup    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)

# https://www.python.org/dev/peps/pep-0314/
# https://pypi.python.org/pypi?:action=list_classifiers
项目:charms.openstack    作者:openstack    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        # remove the 'test' arg from argv as tox passes it to ostestr which
        # breaks it.
        sys.argv.pop()
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:django-radar    作者:chairco    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        tox.cmdline(self.test_args)
项目:condoor    作者:kstaniek    | 项目源码 | 文件源码
def run_tests(self):
        #  import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:datestuff    作者:justanr    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        import shlex
        args = []
        if self.tox_args:
            args = shlex.split(self.tox_args)

        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:codeship-yaml    作者:painless-software    | 项目源码 | 文件源码
def run_tests(self):
        from tox import cmdline
        args = self.tox_args
        if args:
            args = split(self.tox_args)
        errno = cmdline(args=args)
        exit(errno)
项目:big-search    作者:DeskGen    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        errno = tox.cmdline(args=shlex.split(self.tox_args))
        sys.exit(errno)
项目:fabulist    作者:mar10    | 项目源码 | 文件源码
def run_tests(self):
        # Import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)


# Add custom command 'setup.py sphinx'
# See https://dankeder.com/posts/adding-custom-commands-to-setup-py/
# and http://stackoverflow.com/a/22273180/19166
项目:xblock-in-video-quiz    作者:Stanford-Online    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:deb-python-kafka    作者:openstack    | 项目源码 | 文件源码
def run(cls):
        import tox
        sys.exit(tox.cmdline([]))
项目:tox    作者:tox-dev    | 项目源码 | 文件源码
def test_tox_cmdline(monkeypatch):
    monkeypatch.setattr(sys, 'argv', ['caller_script', '--help'])
    with pytest.raises(SystemExit):
        tox.cmdline()
项目:metricsandstuff    作者:bucknerns    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
项目:short_schema    作者:talwrii    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        tox.cmdline()
        tox.cmdline(['-c', 'tox.ini'])
项目:Python    作者:SimplePEG    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args)
        sys.exit(errno)
项目:airflow    作者:apache-airflow    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(args=self.tox_args.split())
        sys.exit(errno)
项目:aeon-ztps    作者:Apstra    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)
项目:schemagic    作者:Mechrophile    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)
项目:rill    作者:PermaData    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:bemo-python    作者:bemo-project    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:dice-notation-python    作者:Bernardo-MG    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox

        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)
项目:charms.hardening    作者:ChrisMacNaughton    | 项目源码 | 文件源码
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        # remove the 'test' arg from argv as tox passes it to ostestr which
        # breaks it.
        sys.argv.pop()
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)
项目:nfvbench    作者:opnfv    | 项目源码 | 文件源码
def run_tests(self):
        import tox
        sys.exit(tox.cmdline())
项目:yelp_kafka    作者:Yelp    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
项目:mssqlcli    作者:rtrox    | 项目源码 | 文件源码
def run_tests(self):
        """Actually Run Tests."""
        # import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)
项目:sack    作者:jofpin    | 项目源码 | 文件源码
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex

        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)