Skip to content

Commit

Permalink
Add pygobject and fix Dockefile build
Browse files Browse the repository at this point in the history
  • Loading branch information
lukipuki committed Oct 31, 2023
1 parent 8472fba commit 83fa62e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
python-version: "3.11"
- name: Install dependencies
run: |
apt install -y libcairo2-dev libgirepository1.0-dev
python -m pip install --upgrade pip
pip install pytest
pip install ".[dev]"
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM docker.io/python:3.11-slim-bookworm

RUN apt update && \
apt install -y python3-serial-asyncio python3-psutil python3-paho-mqtt \
python3-gpiozero python3-pydbus python3-pyudev python3-aiohttp
apt install -y libcairo2-dev libgirepository1.0-dev

# TODO: this could speed everything up but it doesn't help for some reason
# apt install -y python3-serial-asyncio python3-psutil python3-paho-mqtt \
# python3-gpiozero python3-pydbus python3-pyudev python3-aiohttp \

WORKDIR /app
COPY pyproject.toml .
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ classifiers = [
]

dependencies = [
'aiohttp==3.8.*',
'aiohttp==3.8.4',
'aiomqtt==1.2.*',
'gpiozero==1.6.*',
'dependency-injector==4.41.*',
'protobuf==4.22.*',
'psutil==5.9.*',
'pygobject==3.42.2',
'pydbus==0.6.*; platform_system == "Linux"',
'pyserial-asyncio==0.6',
'pyudev==0.24.*; platform_system == "Linux"',
Expand Down

0 comments on commit 83fa62e

Please sign in to comment.