From 390bdae76260cf3d05c3c994cb30f60e148e3653 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 14 Dec 2023 11:26:44 +0800 Subject: [PATCH] =?UTF-8?q?bump=20to=200.3.9,=20=E8=BF=99=E4=B8=8B?= =?UTF-8?q?=E7=9C=8B=E6=87=82=E6=8A=A5=E9=94=99=E4=BA=86=E5=90=A7=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- docs/change_logs/0-3.md | 5 +++++ src/lib_not_dr/__init__.py | 2 +- src/lib_not_dr/nuitka/reader/__init__.py | 8 +++++--- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9db07ae..d0dbf65 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A python lib came from [Difficult Rocket](https://github.com/shenjackyuanjie/Dif ## Information/信息 -- Version / 版本: 0.3.8 +- Version / 版本: 0.3.9 - Author / 作者: shenjackyuanjie <3695888@qq.com> [shenjackyuanjie](https://github.com/shenjackyuanjie) @@ -23,6 +23,7 @@ A python lib came from [Difficult Rocket](https://github.com/shenjackyuanjie/Dif pip install lib-not-dr pip install lib-not-dr[nuitka] # install with nuitka support +# 安装支持 nuitka 的版本 ``` ## 使用/Usage @@ -76,6 +77,8 @@ script = "xxx.py" > > Use with `lndl_nuitka` command line tool +> 建议使用 `pip install lib-not-dr[nuitka]` 安装 lib-not-dr + ```bash lndl_nuitka . lndl_nuitka . -- --onefile diff --git a/docs/change_logs/0-3.md b/docs/change_logs/0-3.md index ba7db28..cad6f9e 100644 --- a/docs/change_logs/0-3.md +++ b/docs/change_logs/0-3.md @@ -1,5 +1,10 @@ # lndl 0.3 +## 0.3.9 + +- 改进了 `lndl-nuitka` 在没有找到 toml 库的时候的报错 + - 这下看的懂了吧 ? + ## 0.3.8 - 为 `logger` 添加了 `default_tag` 属性 diff --git a/src/lib_not_dr/__init__.py b/src/lib_not_dr/__init__.py index 307163d..10cac12 100644 --- a/src/lib_not_dr/__init__.py +++ b/src/lib_not_dr/__init__.py @@ -9,7 +9,7 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: from lib_not_dr import loggers, nuitka, types, command -_version_ = "0.3.8" +_version_ = "0.3.9" # fmt: off __all__ = [ diff --git a/src/lib_not_dr/nuitka/reader/__init__.py b/src/lib_not_dr/nuitka/reader/__init__.py index c92fd7b..c42db2c 100644 --- a/src/lib_not_dr/nuitka/reader/__init__.py +++ b/src/lib_not_dr/nuitka/reader/__init__.py @@ -81,9 +81,11 @@ def get_toml_reader(): return loaded except ImportError: continue - error_msg = """No toml reader found, please install any below by pip: - %s - or use Python 3.11+""" % " ".join(TOML_READERS) + error_msg = """\033[31mNo toml reader found, please install any below by pip: + {toml} or use Python 3.11+ or install lib-not-dr with lib_not_dr[nuitka] option + 没有找到 toml 解析器, 请考虑安装下列之一的 toml 库 + {toml} 或者使用 Python 3.11+ 或者使用 lib_not_dr[nuitka] 安装 lib-not-dr\033[0m + """.format(toml="\n ".join(TOML_READERS)) raise ImportError(error_msg) from None