mirror of https://github.com/open-mmlab/mim.git
44 lines
971 B
Python
44 lines
971 B
Python
from setuptools import find_packages, setup # type: ignore
|
|
|
|
|
|
def readme():
|
|
with open('README.md', encoding='utf-8') as f:
|
|
content = f.read()
|
|
return content
|
|
|
|
|
|
version_file = 'mim/version.py'
|
|
|
|
|
|
def get_version():
|
|
with open(version_file) as f:
|
|
exec(compile(f.read(), version_file, 'exec'))
|
|
return locals()['__version__']
|
|
|
|
|
|
setup(
|
|
name='openmim',
|
|
version=get_version(),
|
|
description='MIM Installs OpenMMLab packages',
|
|
long_description=readme(),
|
|
long_description_content_type='text/markdown',
|
|
url='https://github.com/open-mmlab/mim',
|
|
author='MIM Authors',
|
|
author_email='openmmlab@gmail.com',
|
|
packages=find_packages(),
|
|
include_package_data=True,
|
|
python_requires='>=3.6',
|
|
install_requires=[
|
|
'Click',
|
|
'colorama',
|
|
'requests',
|
|
'model-index',
|
|
'pandas',
|
|
'tabulate',
|
|
],
|
|
entry_points='''
|
|
[console_scripts]
|
|
mim=mim.cli:cli
|
|
''',
|
|
)
|