From 937f241af699560bdd250eda949754fd98774bd2 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Tue, 8 Apr 2025 12:12:25 +0200 Subject: [PATCH] make it optionnal to ignore matplotlib --- theseus_autopatcher/README.md | 4 +++- theseus_autopatcher/poetry.lock | 3 ++- theseus_autopatcher/pyproject.toml | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/theseus_autopatcher/README.md b/theseus_autopatcher/README.md index 7dd7298..62da3d7 100644 --- a/theseus_autopatcher/README.md +++ b/theseus_autopatcher/README.md @@ -43,4 +43,6 @@ Once all the build steps are done, you can install the package with `pip install If you have access to the grodd repo, you can use the grodd automatic app runner, by the project with the `grodd` extra: -`pip install dist/theseus_autopatcher-0.1.0-py3-none-any.whl[grodd]` or `pip install .[grodd]` +`pip install dist/theseus_autopatcher-0.1.0-py3-none-any.whl[grodd,no-plt]` or `pip install .[grodd,no-plt]` + +(The `no-plt` extra replace the matplotlib that can problematic on some system with a dummy package. The package is needed because androguard uses it on a feature that really should be optional) diff --git a/theseus_autopatcher/poetry.lock b/theseus_autopatcher/poetry.lock index fbbc7f2..437d3c7 100644 --- a/theseus_autopatcher/poetry.lock +++ b/theseus_autopatcher/poetry.lock @@ -1433,8 +1433,9 @@ dev = ["black (>=19.3b0)", "pytest (>=4.6.2)"] [extras] grodd = ["grodd-runner"] +no-plt = ["matplotlib"] [metadata] lock-version = "2.1" python-versions = ">=3.13,<4.0.0" -content-hash = "7040c0766fa42a2c4513c82b38d5a653a18bde46bc51d3c517edfd6be74942c5" +content-hash = "859ddea48bf88fdb2b3a1eeffda92e1bd2a45353935eff438fcc4ed6456d8358" diff --git a/theseus_autopatcher/pyproject.toml b/theseus_autopatcher/pyproject.toml index 598b5a9..7c0e3a6 100644 --- a/theseus_autopatcher/pyproject.toml +++ b/theseus_autopatcher/pyproject.toml @@ -11,11 +11,12 @@ requires-python = ">=3.13,<4.0.0" [tool.poetry.dependencies] theseus-frida = { path = "../frida" } -matplotlib = { path = "../matplotlib" } +matplotlib = { path = "../matplotlib", optional = true } grodd-runner = {git = "ssh://git@gitlab.inria.fr/CIDRE/malware/grodd-runner.git", optional = true} [tool.poetry.extras] grodd = ["grodd-runner"] +no-plt = ["matplotlib"] [tool.poetry] packages = [{include = "theseus_autopatcher", from = "src"}]