提交 7b8fce1f 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!15 update package.sh configuration

Merge pull request !15 from zheng-huanhuan/master
......@@ -29,10 +29,22 @@ mk_new_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}"
${PYTHON} ${BASEPATH}/setup.py bdist_wheel
mv ${BASEPATH}/dist/*whl ${OUTPUT_PATH}
write_checksum
echo "------Successfully created mindarmour package------"
......@@ -18,7 +18,7 @@ from setuptools import setup
from setuptools.command.egg_info import egg_info
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__))
pkg_dir = os.path.join(cur_dir, 'build')
......@@ -82,8 +82,17 @@ class BuildPy(build_py):
setup(
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.",
license='Apache 2.0',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
......@@ -98,5 +107,8 @@ setup(
'matplotlib >= 3.1.3',
'Pillow >= 2.0.0'
],
classifiers=[
'License :: OSI Approved :: Apache Software License'
]
)
print(find_packages())
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册