From ae4fcb16f2690d2a5142c64481b9e96d61b30925 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Tue, 8 Apr 2025 16:42:47 +0300 Subject: [PATCH] [+] fix ninja tests --- .../fxreader/pr34/commands_typed/cli.py | 19 ++++++++++--------- python/pyproject.toml | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/python/online/fxreader/pr34/commands_typed/cli.py b/python/online/fxreader/pr34/commands_typed/cli.py index ab899a2..fbc69ad 100644 --- a/python/online/fxreader/pr34/commands_typed/cli.py +++ b/python/online/fxreader/pr34/commands_typed/cli.py @@ -266,15 +266,16 @@ class CLI(abc.ABC): env=dict(list(os.environ.items())) | env, ) - if tests: - subprocess.check_call( - [ - 'ninja', - '-C', - str(project.build_dir / 'pyproject'), - 'test', - ] - ) + if not project.meson_path is None: + if tests: + subprocess.check_call( + [ + 'ninja', + '-C', + str(project.build_dir / 'pyproject'), + 'test', + ] + ) def meson_install( self, diff --git a/python/pyproject.toml b/python/pyproject.toml index 35976b5..f7e4805 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = 'online.fxreader.pr34' -version = '0.1.5.9' +version = '0.1.5.10' dependencies = [ #"-r requirements.txt",