From 540d4ca602c535e955ca446e178fec5da077ae74 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Mon, 12 May 2025 15:59:51 +0300 Subject: [PATCH] [+] fix pyproject_load 1. store `tool` key; --- python/meson.build | 2 +- .../pr34/commands_typed/cli_bootstrap.py | 17 ++++++++++++++++- ...xreader_pr34-0.1.5.16+27.13-py3-none-any.whl | 3 +++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 releases/whl/online_fxreader_pr34-0.1.5.16+27.13-py3-none-any.whl diff --git a/python/meson.build b/python/meson.build index 2933a60..fb0568a 100644 --- a/python/meson.build +++ b/python/meson.build @@ -5,7 +5,7 @@ project( ).stdout().strip('\n'), # 'online.fxreader.uv', # ['c', 'cpp'], - version: '0.1.5.16+27.12', + version: '0.1.5.16+27.13', # default_options: [ # 'cpp_std=c++23', # # 'prefer_static=true', diff --git a/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py b/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py index 44d089c..f0859e5 100644 --- a/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py +++ b/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py @@ -11,7 +11,7 @@ import os import logging -from typing import (Optional, Any,) +from typing import (Optional, Any, cast,) from typing_extensions import ( Self, BinaryIO, ) @@ -92,6 +92,21 @@ def pyproject_load( tool_name = 'online.fxreader.pr34'.replace('.', '-') + if ( + 'tool' in content and + isinstance( + content['tool'], dict + ) and + all([ + isinstance(o, str) + for o in content['tool'] + ]) + ): + res.tool = cast( + dict[str, Any], + content['tool'] + ) + if ( 'tool' in content and isinstance( diff --git a/releases/whl/online_fxreader_pr34-0.1.5.16+27.13-py3-none-any.whl b/releases/whl/online_fxreader_pr34-0.1.5.16+27.13-py3-none-any.whl new file mode 100644 index 0000000..90d248a --- /dev/null +++ b/releases/whl/online_fxreader_pr34-0.1.5.16+27.13-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d84b500c9ca908db0043a9c346b5165380a370afc287f8a989c1693beb214945 +size 72193