* Suport openmmlab-2.0 with the following features:
- import Config from mmengine
- remove extra options for train / test / gridsearch
- create destination directory if dose not exists in `mim donwload`
- add mmengine in `mim list`
* fix ci with the following 2 problems:
- mmcv2.x have not pre-built package for torch1.5.
- patch xxx not found after install (cause by importlib.reload).
* Update mim/commands/download.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* dev(download): remove echo line
* support openmmlab 1.0 and 2.0
* use tests/data/lenet5_mnist_2.0.py in test case
* use tests/data/lenet5_mnist_2.0.py in test case
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* refactor(commands/uninstall.py): refactor mim uninstall
* reload pip._vendor.pkg_resources before uninstall
* update(commands/uninstall.py): use subprocess call_command instead of create_command
* remove --root-user-action option
* update(commands/uninstall.py): use subprocess call_command instead of create_command
* update(commands/uninstall.py): support unknown options pass to pip uninstall
* tests(tests/test_uninstall.py): add test case for mim uninstall
* update(commands/uninstall.py): use the pip official recommend way to invoke pip uninstall
* refine(commands/uninstall.py): use isinstance instead of 'type is' make mypy happy
* combine commits: for ci debug
* combine commits: for ci debug
* Apply suggestions from code review
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* 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>
* fix and refactor unit tests
* Fix GPG key error in CI
* use container provided by pytorch
* install git in container
* install git in container
* fix ci
* update pip version
* install system dependencies
* add test data
* add circleci
* add test data
* refine ut
* [Enhancement] Change the directory of configs to be saved
* configs tools model-index.yml will be copied to .mim
* copy files to .mim if setup.py does not handle this
* simply list command
* remove redundant code
* remove redundant code
* modify according to comment
* [Refactor] Refactor list cmd
* simply
* fix errror when getting home-pag from pypi
* fix unittet
* add unittest
* fix ci
* fix ci
* install wheel in CI to fix error
* refactor and add a decorator to make sure package has been installed
* rename function and add commnent for CI