Skip to content

Commit

Permalink
Moving pygobject to separate poetry linux extra
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian <sebastian.franz@tum.de>
  • Loading branch information
SebieF committed Sep 10, 2024
1 parent 491d0b4 commit b09624e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
Expand Down

0 comments on commit b09624e

Please # to comment.