提交 ffbdca48 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!37 Update setup.py and add more package info

Merge pull request !37 from leonwanghui/update
...@@ -118,6 +118,7 @@ def run_script(script): ...@@ -118,6 +118,7 @@ def run_script(script):
class EggInfo(egg_info): class EggInfo(egg_info):
"""Egg info.""" """Egg info."""
def run(self): def run(self):
self.build_dependencies() self.build_dependencies()
...@@ -142,6 +143,7 @@ class EggInfo(egg_info): ...@@ -142,6 +143,7 @@ class EggInfo(egg_info):
class BuildPy(build_py): class BuildPy(build_py):
"""Build py files.""" """Build py files."""
def run(self): def run(self):
mindinsight_lib_dir = os.path.join(os.path.dirname(__file__), 'build', 'lib', 'mindinsight') mindinsight_lib_dir = os.path.join(os.path.dirname(__file__), 'build', 'lib', 'mindinsight')
shutil.rmtree(mindinsight_lib_dir, ignore_errors=True) shutil.rmtree(mindinsight_lib_dir, ignore_errors=True)
...@@ -153,6 +155,7 @@ class BuildPy(build_py): ...@@ -153,6 +155,7 @@ class BuildPy(build_py):
class Install(install): class Install(install):
"""Install.""" """Install."""
def run(self): def run(self):
super().run() super().run()
...@@ -168,23 +171,49 @@ if __name__ == '__main__': ...@@ -168,23 +171,49 @@ if __name__ == '__main__':
sys.stderr.write('Python version should be at least 3.7\r\n') sys.stderr.write('Python version should be at least 3.7\r\n')
sys.exit(1) sys.exit(1)
setup(name='mindinsight', setup(
version=get_version(), name='mindinsight',
author='MindInsight Team', version=get_version(),
description=get_description(), author='The MindSpore Authors',
license='Apache 2.0', author_email='contact@mindspore.cn',
keywords='mindinsight', url='https://www.mindspore.cn',
install_requires=get_install_requires(), download_url='https://gitee.com/mindspore/mindinsight/tags',
packages=['mindinsight'], project_urls={
platforms=[get_os()], 'Sources': 'https://gitee.com/mindspore/mindinsight',
include_package_data=True, 'Issue Tracker': 'https://gitee.com/mindspore/mindinsight/issues',
cmdclass={ },
'egg_info': EggInfo, description=get_description(),
'build_py': BuildPy, packages=['mindinsight'],
'install': Install, platforms=[get_os()],
}, include_package_data=True,
entry_points={ cmdclass={
'console_scripts': [ 'egg_info': EggInfo,
'mindinsight=mindinsight.utils.command:main', 'build_py': BuildPy,
], 'install': Install,
}) },
entry_points={
'console_scripts': [
'mindinsight=mindinsight.utils.command:main',
],
},
python_requires='>=3.7',
install_requires=get_install_requires(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],
license='Apache 2.0',
keywords='mindinsight',
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册