forked from open-mmlab/mim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (35 loc) · 983 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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, 'r') 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='[email protected]',
packages=find_packages(),
include_package_data=True,
python_requires='>=3.6',
install_requires=[
'Click==7.1.2',
'colorama',
'requests',
'model-index',
'pandas',
'tabulate',
],
entry_points='''
[console_scripts]
mim=mim.cli:cli
''',
)