[+] fix pyproject_load
1. store `tool` key;
This commit is contained in:
parent
51f08a0ea6
commit
540d4ca602
@ -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(
|
||||
|
BIN
releases/whl/online_fxreader_pr34-0.1.5.16+27.13-py3-none-any.whl
(Stored with Git LFS)
Normal file
BIN
releases/whl/online_fxreader_pr34-0.1.5.16+27.13-py3-none-any.whl
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user