diff --git a/package.sh b/package.sh index d840869b7ca6e6698172ea8cb6563d184d617dba..d6d4b02d18900917eca149120ad843ecaceb3cac 100644 --- a/package.sh +++ b/package.sh @@ -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------" diff --git a/setup.py b/setup.py index c425c2c143ff53e8d790da419b09645d48c5681e..47126b757c5f926e63b1eff9ec256e80da610b20 100644 --- a/setup.py +++ b/setup.py @@ -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())