Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindarmour
提交
7b8fce1f
M
mindarmour
项目概览
MindSpore
/
mindarmour
通知
4
Star
2
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindarmour
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7b8fce1f
编写于
4月 24, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
4月 24, 2020
浏览文件
操作
浏览文件
下载
差异文件
!15 update package.sh configuration
Merge pull request !15 from zheng-huanhuan/master
上级
5467dbdd
dc4a6ccf
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
2 deletion
+26
-2
package.sh
package.sh
+12
-0
setup.py
setup.py
+14
-2
未找到文件。
package.sh
浏览文件 @
7b8fce1f
...
@@ -29,10 +29,22 @@ mk_new_dir() {
...
@@ -29,10 +29,22 @@ mk_new_dir() {
mkdir
-pv
"
${
create_dir
}
"
mkdir
-pv
"
${
create_dir
}
"
}
}
write_checksum
()
{
cd
"
$OUTPUT_PATH
"
||
exit
PACKAGE_LIST
=
$(
ls
mindarmour-
*
.whl
)
||
exit
for
PACKAGE_NAME
in
$PACKAGE_LIST
;
do
echo
$PACKAGE_NAME
sha256sum
-b
"
$PACKAGE_NAME
"
>
"
$PACKAGE_NAME
.sha256"
done
}
mk_new_dir
"
${
OUTPUT_PATH
}
"
mk_new_dir
"
${
OUTPUT_PATH
}
"
${
PYTHON
}
${
BASEPATH
}
/setup.py bdist_wheel
${
PYTHON
}
${
BASEPATH
}
/setup.py bdist_wheel
mv
${
BASEPATH
}
/dist/
*
whl
${
OUTPUT_PATH
}
mv
${
BASEPATH
}
/dist/
*
whl
${
OUTPUT_PATH
}
write_checksum
echo
"------Successfully created mindarmour package------"
echo
"------Successfully created mindarmour package------"
setup.py
浏览文件 @
7b8fce1f
...
@@ -18,7 +18,7 @@ from setuptools import setup
...
@@ -18,7 +18,7 @@ from setuptools import setup
from
setuptools.command.egg_info
import
egg_info
from
setuptools.command.egg_info
import
egg_info
from
setuptools.command.build_py
import
build_py
from
setuptools.command.build_py
import
build_py
version
=
'0.
1
.0'
version
=
'0.
2
.0'
cur_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
cur_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
pkg_dir
=
os
.
path
.
join
(
cur_dir
,
'build'
)
pkg_dir
=
os
.
path
.
join
(
cur_dir
,
'build'
)
...
@@ -82,8 +82,17 @@ class BuildPy(build_py):
...
@@ -82,8 +82,17 @@ class BuildPy(build_py):
setup
(
setup
(
name
=
'mindarmour'
,
name
=
'mindarmour'
,
version
=
'0.1.0'
,
version
=
version
,
author
=
'The MindSpore Authors'
,
author_email
=
'contact@mindspore.cn'
,
url
=
'https://www.mindspore.cn/'
,
download_url
=
'https://gitee.com/mindspore/mindarmour/tags'
,
project_urls
=
{
'Sources'
:
'https://gitee.com/mindspore/mindarmour'
,
'Issue Tracker'
:
'https://gitee.com/mindspore/mindarmour/issues'
,
},
description
=
"A smart AI security and trustworthy tool box."
,
description
=
"A smart AI security and trustworthy tool box."
,
license
=
'Apache 2.0'
,
packages
=
find_packages
(),
packages
=
find_packages
(),
include_package_data
=
True
,
include_package_data
=
True
,
zip_safe
=
False
,
zip_safe
=
False
,
...
@@ -98,5 +107,8 @@ setup(
...
@@ -98,5 +107,8 @@ setup(
'matplotlib >= 3.1.3'
,
'matplotlib >= 3.1.3'
,
'Pillow >= 2.0.0'
'Pillow >= 2.0.0'
],
],
classifiers
=
[
'License :: OSI Approved :: Apache Software License'
]
)
)
print
(
find_packages
())
print
(
find_packages
())
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录