From 0a0e8c70794d977634e26269fde421021aea6ca4 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Fri, 23 May 2025 14:01:06 +0300 Subject: [PATCH] [+] add .whl --- python/meson.build | 2 +- .../online/fxreader/pr34/commands_typed/cli.py | 17 ++++------------- .../pr34/commands_typed/cli_bootstrap.py | 1 - 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/python/meson.build b/python/meson.build index 15bf5a2..561b464 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.17+27.3', + version: '0.1.5.17+27.4', # default_options: [ # 'cpp_std=c++23', # # 'prefer_static=true', diff --git a/python/online/fxreader/pr34/commands_typed/cli.py b/python/online/fxreader/pr34/commands_typed/cli.py index 5c09dae..933dafc 100644 --- a/python/online/fxreader/pr34/commands_typed/cli.py +++ b/python/online/fxreader/pr34/commands_typed/cli.py @@ -552,14 +552,11 @@ class CLI(abc.ABC): path: Optional[pathlib.Path] = None @property - def meson_toolchains(self) -> dict[ - str, - meson_toolchains_t.res_t.toolchain_t - ]: + def meson_toolchains(self) -> dict[str, meson_toolchains_t.res_t.toolchain_t]: t1 = pathlib.Path(importlib.import_module('online.fxreader.pr34').__path__[0]) toolchains = glob.glob(str(t1 / 'meson' / 'toolchains' / '*')) - res : dict[str, CLI.meson_toolchains_t.res_t.toolchain_t] = dict() + res: dict[str, CLI.meson_toolchains_t.res_t.toolchain_t] = dict() for o in toolchains: entry = self.meson_toolchains_t.res_t.toolchain_t( @@ -574,7 +571,6 @@ class CLI(abc.ABC): return res - def _cross_file( self, extra_args: list[str], @@ -597,13 +593,8 @@ class CLI(abc.ABC): options, args = pr34_argparse.parse_args(parser, extra_args) if not options.cross_file is None: - if not options.cross_file.exists() and ( - not options.cross_file.is_absolute() and \ - options.cross_file.stem in self.meson_toolchains - ): - options.cross_file = self.meson_toolchains[ - options.cross_file.stem - ].path + if not options.cross_file.exists() and (not options.cross_file.is_absolute() and options.cross_file.stem in self.meson_toolchains): + options.cross_file = self.meson_toolchains[options.cross_file.stem].path extra_args = ['--cross-file', str(options.cross_file)] + args diff --git a/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py b/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py index b539fc7..222b78f 100644 --- a/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py +++ b/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py @@ -432,7 +432,6 @@ def env_bootstrap( ] ) - if not requirements_path.exists(): with tempfile.NamedTemporaryFile( mode='w',