diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..7152b80 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include README.md LICENSE \ No newline at end of file diff --git a/setup.py b/setup.py index aac65c2..a48f3ca 100755 --- a/setup.py +++ b/setup.py @@ -19,21 +19,20 @@ import os from setuptools import setup -WORK_PATH = os.path.dirname('__file__') +WORK_PATH = os.path.abspath(os.path.dirname('__file__')) README_PATH = os.path.join(WORK_PATH, 'README.md') -LICENSE_PATH = os.path.join(WORK_PATH, 'LICENSE') -LONG_DESCRIPTION = open(README_PATH, 'rt', encoding='utf-8').read() -LICENSE = open(LICENSE_PATH, 'rt', encoding='utf-8').read() +LONG_DESCRIPTION = open(README_PATH, 'r', encoding='utf-8').read() setup( name='ohos-build', version='0.2.0', + author='Huawei', + author_email='contact@openharmony.io', description='OHOS build command line tool', long_description=LONG_DESCRIPTION, - url='', - author='', - author_email='', - license=LICENSE, + long_description_content_type="text/markdown", + url='https://gitee.com/openharmony/build_lite', + license='Apache 2.0', python_requires='>=3.7', packages=['hb', 'hb.build', 'hb.set', 'hb.cts', 'hb.common', 'hb.env', 'hb.clean', 'hb.deps'], @@ -45,4 +44,4 @@ setup( 'hb=hb.__main__:main', ] }, -) +) \ No newline at end of file