提交 dc4a6ccf 编写于 作者: Z zheng-huanhuan

update package.sh configuration.

上级 5467dbdd
...@@ -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------"
...@@ -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.
先完成此消息的编辑!
想要评论请 注册