make it optionnal to ignore matplotlib

This commit is contained in:
Jean-Marie Mineau 2025-04-08 12:12:25 +02:00
parent 2e0c9e7833
commit 937f241af6
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
3 changed files with 7 additions and 3 deletions

View file

@ -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: 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)

View file

@ -1433,8 +1433,9 @@ dev = ["black (>=19.3b0)", "pytest (>=4.6.2)"]
[extras] [extras]
grodd = ["grodd-runner"] grodd = ["grodd-runner"]
no-plt = ["matplotlib"]
[metadata] [metadata]
lock-version = "2.1" lock-version = "2.1"
python-versions = ">=3.13,<4.0.0" python-versions = ">=3.13,<4.0.0"
content-hash = "7040c0766fa42a2c4513c82b38d5a653a18bde46bc51d3c517edfd6be74942c5" content-hash = "859ddea48bf88fdb2b3a1eeffda92e1bd2a45353935eff438fcc4ed6456d8358"

View file

@ -11,11 +11,12 @@ requires-python = ">=3.13,<4.0.0"
[tool.poetry.dependencies] [tool.poetry.dependencies]
theseus-frida = { path = "../frida" } 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} grodd-runner = {git = "ssh://git@gitlab.inria.fr/CIDRE/malware/grodd-runner.git", optional = true}
[tool.poetry.extras] [tool.poetry.extras]
grodd = ["grodd-runner"] grodd = ["grodd-runner"]
no-plt = ["matplotlib"]
[tool.poetry] [tool.poetry]
packages = [{include = "theseus_autopatcher", from = "src"}] packages = [{include = "theseus_autopatcher", from = "src"}]