From dc4a6ccf524ee26a2c12aedf1ded18cc9d2c4694 Mon Sep 17 00:00:00 2001 From: zheng-huanhuan Date: Fri, 24 Apr 2020 15:46:07 +0800 Subject: [PATCH] update package.sh configuration. --- package.sh | 12 ++++++++++++ setup.py | 16 ++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/package.sh b/package.sh index d840869..d6d4b02 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 c425c2c..47126b7 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()) -- GitLab