python类cmdline()的实例源码

setup.py 文件源码 项目:mediafile 作者: beetbox 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:py-secretcrypt 作者: Zemanta 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:jwplatform-py 作者: jwplayer 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:sshaolin 作者: bucknerns 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
setup.py 文件源码 项目:python-fastpip 作者: intelie 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:bootstrap-py 作者: mkouhei 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:airflow-hovercraft 作者: gtoonstra 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:scriptworker 作者: mozilla-releng 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:django-audit-tools 作者: PeRDy 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def run_tests(self):
        import tox
        import shlex
        errno = tox.cmdline(args=shlex.split(self.tox_args))
        sys.exit(errno)
setup.py 文件源码 项目:smartcontainers 作者: crcresearch 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:dd-trace-py 作者: DataDog 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:python-diskcache 作者: grantjenks 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def run_tests(self):
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
setup.py 文件源码 项目:incubator-airflow-old 作者: apache 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:swarmci 作者: ghostsquad 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:tower-companion 作者: gerva 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:bumplus 作者: dochang 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:benzo 作者: coddingtonbear 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
setup.py 文件源码 项目:bingmaps 作者: bharadwajyarlagadda 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:pytest-github 作者: jlaska 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:snake 作者: jcomo 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:django-concurrent-test-helper 作者: depop 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
def run_tests(self):
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)
packit_test.py 文件源码 项目:packit 作者: ncbi 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:wikipedia_parser 作者: ojones 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)
setup.py 文件源码 项目:PYEVALB 作者: flyaway1217 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)
setup.py 文件源码 项目:errorgeopy 作者: alpha-beta-soup 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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
setup.py 文件源码 项目:charms.openstack 作者: openstack 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:django-radar 作者: chairco 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def run_tests(self):
        import tox
        tox.cmdline(self.test_args)
setup.py 文件源码 项目:condoor 作者: kstaniek 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:datestuff 作者: justanr 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:codeship-yaml 作者: painless-software 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
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)


问题


面经


文章

微信
公众号

扫码关注公众号