已合并
[bugfix] 修复编译打包脚本 #72
liusa002创建于 24 天前
[bugfix] 修复编译打包脚本 #72
已合并
共 1 个文件变更+19-15
| @@ -1,20 +1,24 @@ | |||
| 1 | import os | 1 | import os |
| 2 | -from setuptools import setup | 2 | +from setuptools import setup, find_packages |
| 3 | + | ||
| 3 | os.makedirs("output", exist_ok=True) | 4 | os.makedirs("output", exist_ok=True) |
| 5 | +with open('README.md', encoding='utf-8') as f: | ||
| 6 | + long_description = f.read() | ||
| 7 | + | ||
| 4 | setup( | 8 | setup( |
| 5 | - name = 'mindstudio-kl', | 9 | + name='mindstudio-kl', |
| 6 | - version = os.environ.get('WHL_VERSION', '26.0.0'), | 10 | + version=os.environ.get('WHL_VERSION', '26.0.0'), |
| 7 | - author =' mskl', | 11 | + author=' mskl', |
| 8 | - author_email = 'mskl', | 12 | + author_email='mskl', |
| 9 | - description = 'mskl', | 13 | + description='mskl', |
| 10 | - long_description = open('README.md', encoding='utf-8').read(), | 14 | + long_description=long_description, |
| 11 | - long_description_content_type = 'text/markdown', | 15 | + long_description_content_type='text/markdown', |
| 12 | - url = 'https://gitcode.com/Ascend/mskl', | 16 | + url='https://gitcode.com/Ascend/mskl', |
| 13 | - packages = ['mskl'], | 17 | + packages=find_packages(), |
| 14 | - include_package_data = True, | 18 | + include_package_data=True, |
| 15 | - classifiers = [ | 19 | + license='Mulan PSL v2', |
| 20 | + classifiers=[ | ||
| 16 | 'Programming Language :: Python :: 3', | 21 | 'Programming Language :: Python :: 3', |
| 17 | - 'License :: OSI Approved :: MIT License', | ||
| 18 | 'Operating System :: OS Independent', | 22 | 'Operating System :: OS Independent', |
| 19 | ], | 23 | ], |
| 20 | options={ | 24 | options={ |
| @@ -22,5 +26,5 @@ setup( | |||
| 22 | 'dist_dir': 'output', | 26 | 'dist_dir': 'output', |
| 23 | } | 27 | } |
| 24 | }, | 28 | }, |
| 25 | - python_requires = '>=3.6' | 29 | + python_requires='>=3.6', |
| 26 | -) | 30 | +) |