mim/setup.py
yancong xiao 77f5866a67
[Chore] Fix the issue that the click version is locked at 7.x (#127)
* fix the issue that the click version is locked at 7.x

* add .vscode into .gitignore

* fix the issue that the click version is locked at 7.x

* add .vscode into .gitignore

* refine(click/compat.py): remove helper function

* chore(ci): add click<8.0.0 tests in ci

* refine(commands): refine imports

* commit suggestion(mim/click/option.py): refine doc comments.

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/click/compat.py): add typing hint

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/click/compat.py): add line comment

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/click/compat.py): add typing hit in doc comment

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* update(click/compat.py): add typing hint

* tests(tests/test_search): add a simple functional test for OptionEatAll

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-06-16 15:55:21 +08:00

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
''',
)