Skip to content

Commit c9b5996

Browse files
authored
Yehc/bump version to v0.10.5 (#1572)
* fix check builtin module * bump version to v0.10.5 * bump version to v0.10.5
1 parent 5e736b1 commit c9b5996

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ English | [简体中文](README_zh-CN.md)
5959

6060
## What's New
6161

62-
v0.10.4 was released on 2024-4-23.
62+
v0.10.5 was released on 2024-9-11.
6363

6464
Highlights:
6565

README_zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
## 最近进展
6161

62-
最新版本 v0.10.4 在 2024.4.23 发布。
62+
最新版本 v0.10.5 在 2024.9.11 发布。
6363

6464
版本亮点:
6565

docs/en/notes/changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog of v0.x
22

3+
## v0.10.5 (11/9/2024)
4+
5+
- Fix `_is_builtin_module`. by [@HAOCHENYE](https://github.com/HAOCHENYE) in https://github.com/open-mmlab/mmengine/pull/1571
6+
37
## v0.10.4 (23/4/2024)
48

59
### New Features & Enhancements

mmengine/config/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from mmengine.utils import check_file_exist
1313

1414
PYTHON_ROOT_DIR = osp.dirname(osp.dirname(sys.executable))
15+
SYSTEM_PYTHON_PREFIX = '/usr/lib/python'
1516

1617
MODULE2PACKAGE = {
1718
'mmcls': 'mmcls',
@@ -177,7 +178,7 @@ def _is_builtin_module(module_name: str) -> bool:
177178
origin_path = osp.abspath(origin_path)
178179
if ('site-package' in origin_path or 'dist-package' in origin_path
179180
or not origin_path.startswith(
180-
(PYTHON_ROOT_DIR, '/usr/lib/python'))):
181+
(PYTHON_ROOT_DIR, SYSTEM_PYTHON_PREFIX))):
181182
return False
182183
else:
183184
return True

mmengine/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) OpenMMLab. All rights reserved.
22

3-
__version__ = '0.10.4'
3+
__version__ = '0.10.5'
44

55

66
def parse_version_info(version_str):

0 commit comments

Comments
 (0)