未验证 提交 f668a48b 编写于 作者: R Rudá Moura

Isolate avocado.cli.app and avocado.cli.parser for being used.

Move avocado.cli.app and avocado.cli.parser to avocado.core,
in conformance to our purpose of keep things not related to
test developers, inside avocado.core.

Now the package avocado.cli is gone.
Signed-off-by: NRudá Moura <rmoura@redhat.com>
上级 299f831f
......@@ -4,7 +4,7 @@ Main entry point when called by 'python -m'.
import sys
from avocado.cli.app import AvocadoApp
from avocado.core.app import AvocadoApp
if __name__ == '__main__':
main = AvocadoApp()
......
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See LICENSE for more details.
#
# Copyright: Red Hat Inc. 2013-2014
# Author: Lucas Meneghel Rodrigues <lmr@redhat.com>
......@@ -18,7 +18,7 @@ The core Avocado application.
import os
from avocado.cli.parser import Parser
from avocado.core.parser import Parser
from avocado.plugins.manager import get_plugin_manager
......
......@@ -64,7 +64,7 @@ class Plugin(object):
def configure(self, parser):
"""Configuration and argument parsing.
:param parser: an instance of :class:`avocado.cli.parser.Parser`
:param parser: an instance of :class:`avocado.core.parser.Parser`
To create a runner plugin, just call this method with `super()`.
To create a result plugin, just set `configure` to `True`.
......
......@@ -24,7 +24,7 @@ if os.path.isdir(os.path.join(basedir, 'avocado')):
os.environ['PATH'] += ":" + os.path.join(basedir, 'libexec')
sys.path.append(basedir)
from avocado.cli.app import AvocadoApp
from avocado.core.app import AvocadoApp
if __name__ == '__main__':
app = AvocadoApp()
......
......@@ -107,7 +107,6 @@ if __name__ == '__main__':
author_email='avocado-devel@redhat.com',
url='http://avocado-framework.github.io/',
packages=['avocado',
'avocado.cli',
'avocado.core',
'avocado.external',
'avocado.linux',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册