From b09624e66607f01690358bf5e5284a6f864ac8e7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 10 Sep 2024 09:45:39 +0200 Subject: [PATCH] Moving pygobject to separate poetry linux extra Signed-off-by: Sebastian --- README.md | 3 +-- pyproject.toml | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1eaa91d..fcab110 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,7 @@ Make sure that you have `Python 3.11` and [poetry](https://python-poetry.org/doc # Install additional dependencies sudo apt-get install python3-tk sudo apt-get install libcairo2-dev libxt-dev libgirepository1.0-dev -# Uncomment pygobject = "^3.48.2" in pyproject.toml -poetry update +poetry install --extras linux # [Windows 10/11] poetry install diff --git a/pyproject.toml b/pyproject.toml index 545a1ac..d42cd5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,10 +13,11 @@ python = ">=3.11.9, <3.12" Flask = "^3.0.2" umap-learn="^0.5.5" levenshtein = "^0.25.1" +taxoniq = "^1.0.1" # Frontend pystray="^0.19.5" -# pygobject = "^3.48.2" # Uncomment on Linux +pygobject = {version="^3.48.2", optional=true} # Only for Linux ttkthemes = "^3.2.2" # Git-Dependencies @@ -28,6 +29,8 @@ pytest = "8.3.1" pyinstaller = "^6.9.0" pip-audit = "^2.7.3" +[tool.poetry.extras] +linux = ["pygobject"] [build-system] requires = ["poetry-core"]