Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
073daaea
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
073daaea
编写于
11月 27, 2014
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #270 from lmr/sdist-fixes
Sdist fixes
上级
ac0a5272
ec806da2
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
33 addition
and
11 deletion
+33
-11
MANIFEST.in
MANIFEST.in
+0
-1
README
README
+1
-0
avocado.spec
avocado.spec
+1
-1
avocado/linux/software_manager.py
avocado/linux/software_manager.py
+3
-3
setup.cfg
setup.cfg
+2
-2
setup.py
setup.py
+26
-4
未找到文件。
MANIFEST.in
浏览文件 @
073daaea
include README.rst
include LICENSE
recursive-include avocado/plugins/resources
README
0 → 120000
浏览文件 @
073daaea
README.rst
\ No newline at end of file
avocado.spec
浏览文件 @
073daaea
...
...
@@ -4,7 +4,7 @@ Version: 0.14.0
Release: 1%{?dist}
License: GPLv2
Group: Development/Tools
URL: http
://avocado-framework.readthedocs.org/
URL: http
s://github.com/avocado-framework/avocado
Source: avocado-%{version}.tar.gz
BuildRequires: python2-devel, python-docutils, python-yaml
BuildArch: noarch
...
...
avocado/linux/software_manager.py
浏览文件 @
073daaea
...
...
@@ -353,7 +353,7 @@ class YumBackend(RpmBackend):
executable
=
process
.
find_command
(
'yum'
)
base_arguments
=
'-y'
self
.
base_command
=
executable
+
' '
+
base_arguments
self
.
repo_file_path
=
'/etc/yum.repos.d/a
utotest
.repo'
self
.
repo_file_path
=
'/etc/yum.repos.d/a
vocado-managed
.repo'
self
.
cfgparser
=
ConfigParser
.
ConfigParser
()
self
.
cfgparser
.
read
(
self
.
repo_file_path
)
y_cmd
=
executable
+
' --version | head -1'
...
...
@@ -425,7 +425,7 @@ class YumBackend(RpmBackend):
if
not
self
.
cfgparser
.
has_section
(
section_name
):
break
self
.
cfgparser
.
add_section
(
section_name
)
self
.
cfgparser
.
set
(
section_name
,
'name'
,
'A
utotest
managed repository'
)
self
.
cfgparser
.
set
(
section_name
,
'name'
,
'A
vocado
managed repository'
)
self
.
cfgparser
.
set
(
section_name
,
'url'
,
url
)
self
.
cfgparser
.
set
(
section_name
,
'enabled'
,
1
)
self
.
cfgparser
.
set
(
section_name
,
'gpgcheck'
,
0
)
...
...
@@ -625,7 +625,7 @@ class AptBackend(DpkgBackend):
super
(
AptBackend
,
self
).
__init__
()
executable
=
process
.
find_command
(
'apt-get'
)
self
.
base_command
=
executable
+
' -y'
self
.
repo_file_path
=
'/etc/apt/sources.list.d/a
utote
st'
self
.
repo_file_path
=
'/etc/apt/sources.list.d/a
vocado.li
st'
cmd_result
=
process
.
run
(
'apt-get -v | head -1'
,
ignore_status
=
True
,
verbose
=
False
,
...
...
setup.cfg
浏览文件 @
073daaea
[metadata]
name = avocado
version = 0.1
0.1
version = 0.1
4.0
summary = Avocado Test Framework
description-file =
README.rst
author = Avocado developers
author-email = a
utotest-kern
el@redhat.com
author-email = a
vocado-dev
el@redhat.com
home-page = https://github.com/avocado-framework/avocado
classifier =
Intended Audience :: Information Technology
...
...
setup.py
浏览文件 @
073daaea
...
...
@@ -16,7 +16,11 @@
import
glob
import
os
# pylint: disable=E0611
from
distutils.core
import
setup
try
:
from
setuptools
import
setup
except
ImportError
:
from
distutils.core
import
setup
import
avocado.version
...
...
@@ -71,11 +75,28 @@ def _get_plugin_resource_files(path):
return
flist
def
get_requirements
():
requirements
=
[]
with
open
(
'requirements.txt'
,
'r'
)
as
req
:
req_contents
=
req
.
read
()
for
line
in
req_contents
.
splitlines
():
if
not
line
.
startswith
(
"#"
):
line
=
line
.
split
(
"#"
)[
0
].
strip
()
requirements
.
append
(
"%s"
%
line
)
return
requirements
def
get_long_description
():
with
open
(
'README.rst'
,
'r'
)
as
req
:
req_contents
=
req
.
read
()
return
req_contents
setup
(
name
=
'avocado'
,
version
=
avocado
.
version
.
VERSION
,
description
=
'Avocado Test Framework'
,
author
=
'Lucas Meneghel Rodrigues'
,
author_email
=
'lmr@redhat.com'
,
long_description
=
get_long_description
(),
author
=
'Avocado Developers'
,
author_email
=
'avocado-devel@redhat.com'
,
url
=
'http://github.com/avocado-framework/avocado'
,
packages
=
[
'avocado'
,
'avocado.cli'
,
...
...
@@ -86,4 +107,5 @@ setup(name='avocado',
'avocado.plugins'
],
package_data
=
{
'avocado.plugins'
:
_get_plugin_resource_files
(
'avocado/plugins/resources'
)},
data_files
=
get_data_files
(),
scripts
=
[
'scripts/avocado'
])
scripts
=
[
'scripts/avocado'
],
install_requires
=
get_requirements
())
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录