From 3e54946eebcb413b8b96a64e4bf82d0fdc90030a Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 26 Jun 2023 10:46:43 +0800 Subject: [PATCH] update requirement and version DR 0.8.5.0 --- Difficult_Rocket/__init__.py | 2 +- README.md | 23 ++++++++++++----------- docs/README-en.md | 30 ++++++++++++++++-------------- docs/src/change_log/dr_game.md | 2 +- docs/src/change_log/dr_sdk.md | 33 ++++++++++++++++++++++++++++++++- pyproject.toml | 2 +- requirement-build.txt | 2 +- requirement-dev.txt | 2 +- 8 files changed, 65 insertions(+), 31 deletions(-) diff --git a/Difficult_Rocket/__init__.py b/Difficult_Rocket/__init__.py index a9dfe4b..f2dc818 100644 --- a/Difficult_Rocket/__init__.py +++ b/Difficult_Rocket/__init__.py @@ -10,7 +10,7 @@ from pathlib import Path from Difficult_Rocket.api.types import Options, Version -game_version = Version("0.8.4.1") # 游戏版本 +game_version = Version("0.8.5.0") # 游戏版本 build_version = Version("2.1.0.0") # 编译文件版本(与游戏本体无关) Api_version = Version("0.1.1.0") # API 版本 __version__ = game_version diff --git a/README.md b/README.md index de96ff7..005c40b 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ ## 需要的 Python 模块 -- `pyglet` (已经内置 V2.0.5 路径:`./libs/pyglet`) +- `pyglet` (已经内置 V2.0.8 路径:`./libs/pyglet`) - `xmltodict` (已经内置 V0.12.0 路径:`./libs/xmltodict`) - `pyperclip` (已经内置 V1.8.2 路径: `./libs/pyperclip`) @@ -77,28 +77,29 @@ # DR contributing # for images -pillow >= 9.5.0 +# not for pypy >= 3.10 +pillow >= 9.5.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" # for sys info psutil >= 5.9.5 # for files rtoml >= 0.9.0 -tomlkit >= 0.11.7 +tomlkit >= 0.11.8 defusedxml >= 0.7.1 # for debug objprint >= 0.2.2 -viztracer >= 0.15.6 -vizplugins >= 0.1.3 +viztracer >= 0.15.6; platform_python_implementation != "PyPy" +vizplugins >= 0.1.3; platform_python_implementation != "PyPy" # for compile -nuitka >= 1.5.6 +nuitka >= 1.6.5 ordered-set >= 4.1.0 -imageio >= 2.27.0 +imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" wheel >= 0.40.0 -setuptools >= 67.6.1 -setuptools-rust >= 1.5.2 +setuptools >= 67.8.0 +setuptools-rust >= 1.6.0 ``` ## 感谢 @@ -108,8 +109,8 @@ setuptools-rust >= 1.5.2 - `tomlkit` / `rtoml` : toml 解析器 - `xmltodict`: xml 与 dict 转换器 - `pyperclip`: 剪贴板! - - `rapier2d`: 物理模拟引擎 - - `pyo3`: Rust Python 扩展 + - [rapier2d](https://rapier.rs/) : 物理模拟引擎 + - [pyo3](https://pyo3.rs/main): Rust Python 扩展 - 主要贡献者 - [@Rayawa](https://github.com/Rayawa) : 文档矫正 & 翻译部分 lang diff --git a/docs/README-en.md b/docs/README-en.md index fd6d92b..72b3b70 100644 --- a/docs/README-en.md +++ b/docs/README-en.md @@ -19,9 +19,9 @@ [About Versions](src/version.md) -[![Generic badge](https://img.shields.io/badge/Release-0.8.4.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases) -[![Generic badge](https://img.shields.io/badge/Pre_Release-0.8.4.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases) -[![Generic badge](https://img.shields.io/badge/Devloping-0.8.5-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases) +[![Generic badge](https://img.shields.io/badge/Release-0.8.5.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases) +[![Generic badge](https://img.shields.io/badge/Pre_Release-0.8.5.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases) +[![Generic badge](https://img.shields.io/badge/Devloping-0.8.6-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases) [![language badge](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark)](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark) @@ -66,7 +66,7 @@ ## Required python modules -- `pyglet` (pre-installed V2.0.5 path:`./libs/pyglet`) +- `pyglet` (pre-installed V2.0.8 path:`./libs/pyglet`) - `xmltodict` (pre-installed V0.12.0 path:`./libs/xmltodict`) - `pyperclip` (pre-installed V1.8.2 path: `./libs/pyperclip`) @@ -77,28 +77,30 @@ # DR contributing # for images -pillow >= 9.5.0 +# not for pypy >= 3.10 +pillow >= 9.5.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" # for sys info psutil >= 5.9.5 # for files rtoml >= 0.9.0 -tomlkit >= 0.11.7 +tomlkit >= 0.11.8 defusedxml >= 0.7.1 # for debug objprint >= 0.2.2 -viztracer >= 0.15.6 -vizplugins >= 0.1.3 +viztracer >= 0.15.6; platform_python_implementation != "PyPy" +vizplugins >= 0.1.3; platform_python_implementation != "PyPy" # for compile -nuitka >= 1.5.6 +nuitka >= 1.6.5 ordered-set >= 4.1.0 -imageio >= 2.27.0 +imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" wheel >= 0.40.0 -setuptools >= 67.6.1 -setuptools-rust >= 1.5.2 +setuptools >= 67.8.0 +setuptools-rust >= 1.6.0 + ``` ## thanks to @@ -108,8 +110,8 @@ setuptools-rust >= 1.5.2 - `tomlkit` / `rtoml` toml parser - `xmltodict`: translate data between xml and dict - `pyperclip`: paste board! - - `rapier2d`: Phy simulate engine - - `pyo3`: Rust Python Binding + - [rapier2d](https://rapier.rs/) : Phy simulate engine + - [pyo3](https://pyo3.rs/main) : Rust Python Binding - Main contributors - [@Rayawa](https://github.com/Rayawa) : Check mistake in docs & some translates diff --git a/docs/src/change_log/dr_game.md b/docs/src/change_log/dr_game.md index 6c87e02..185e8e2 100644 --- a/docs/src/change_log/dr_game.md +++ b/docs/src/change_log/dr_game.md @@ -2,7 +2,7 @@ # DR game/DR rs 更新日志 - 最新版本号 - - DR game: 0.2.1.0 + - DR game: 0.3.0.0 - DR rs: 0.2.15.0 ## DR rs 0.3.0.0 diff --git a/docs/src/change_log/dr_sdk.md b/docs/src/change_log/dr_sdk.md index bca9a98..be2ad29 100644 --- a/docs/src/change_log/dr_sdk.md +++ b/docs/src/change_log/dr_sdk.md @@ -2,7 +2,38 @@ # DR SDK 更新日志 - 最新版本号 - - DR sdk: 0.8.4.0 + - DR sdk: 0.8.5.0 + +## DR sdk 0.8.5.0 + +### Changes + +- `ModManager` + - `get_mod_module(mod_name: str) -> Optional[ModInfo]` + - 通过 mod 名称获取 mod 的信息 + - Get mod information by mod name + - `load_mod(mod_path: Path) -> Optional[ModInfo]` + - 加载指定路径的 mod + - Load the mod at the specified path + - `find_mods_in_path(extra_mods_path: Optional[List[Path]]) -> List[Path]` + - 在指定的路径中查找 mod 并返回 mod 的路径 + - Find mods in the specified path and return the path of the mod + - `unload_mod(mod_id: str, game: Game) -> Optional[ModInfo]` + - 卸载指定的 mod 并返回 mod 的信息 + - Unload the specified mod and return the mod information + - `reload_mod(mod_id: str, game: Game)` + - 重新加载指定的 mod + - Reload the specified mod + +### Command + +- `mods` + - `list` + - 列出所有已加载的 mod + - List all loaded mods + - `reload ` + - 重新加载指定的 mod + - Reload the specified mod ## DR sdk 0.8.4.1 diff --git a/pyproject.toml b/pyproject.toml index 27a26d1..e45f6b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "pdm.pep517.api" [project] name = "difficult-rocket" -version = "0.8.4.0" +version = "0.8.5.0" description = "A rocket game" authors = [ {name = "shenjackyuanjie", email = "3695888@qq.com"} diff --git a/requirement-build.txt b/requirement-build.txt index 33ea035..6e60e72 100644 --- a/requirement-build.txt +++ b/requirement-build.txt @@ -18,7 +18,7 @@ defusedxml >= 0.7.1 objprint >= 0.2.2 # for compile -nuitka >= 1.6.3 +nuitka >= 1.6.5 ordered-set >= 4.1.0 imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" wheel >= 0.40.0 diff --git a/requirement-dev.txt b/requirement-dev.txt index 150f3e7..67f3ae3 100644 --- a/requirement-dev.txt +++ b/requirement-dev.txt @@ -21,7 +21,7 @@ viztracer >= 0.15.6; platform_python_implementation != "PyPy" vizplugins >= 0.1.3; platform_python_implementation != "PyPy" # for compile -nuitka >= 1.6.3 +nuitka >= 1.6.5 ordered-set >= 4.1.0 imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" wheel >= 0.40.0