[+] fix pyproject_load

1. store `tool` key;
This commit is contained in:
Siarhei Siniak 2025-05-12 15:59:51 +03:00
parent 51f08a0ea6
commit 540d4ca602
3 changed files with 20 additions and 2 deletions

@ -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',

@ -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(

Binary file not shown.