update pyproject and lock file

This commit is contained in:
pstruebi
2025-07-11 15:34:35 +02:00
parent 30d727b196
commit 4779841c15
3 changed files with 16 additions and 41 deletions

View File

@@ -1,38 +1,13 @@
# Install deps on ubuntu
## Pre-setup on Raspberry Pi (Raspberry Pi OS)
Before installing dependencies, ensure your Raspberry Pi is up to date and has audio enabled:
1. **Update your system:**
```sh
sudo apt update && sudo apt upgrade
```
2. **Enable audio:**
- Use `raspi-config` to enable audio output (if not already enabled):
```sh
sudo raspi-config
# Navigate to 'Advanced Options' > 'Audio' and select your output (HDMI or 3.5mm jack)
```
3. **Reboot if needed:**
```sh
sudo reboot
```
4. **Test audio:**
```sh
speaker-test -t wav
```
or
```sh
aplay /usr/share/sounds/alsa/Front_Center.wav
```
5. **Connect USB microphone or sound card if required.**
Proceed with the dependency installation steps below.
- make sure poetry was installed with pipx
sudo apt update
sudo apt install build-essential libcairo2-dev libgirepository1.0-dev pkg-config
sudo apt install libgirepository-2.0-dev gir1.2-girepository-2.0 build-essential pkg-config
sudo apt install gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0
sudo apt install build-essential libcairo2-dev libgirepository1.0-dev pkg-config libgirepository-2.0-dev gir1.2-girepository-2.0 build-essential pkg-config gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0
# Install on rpi
sudo apt-get install python3.11-dev build-essential pkg-config \
gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-alsa \
libgirepository1.0-dev libcairo2-dev \
python3-gi python3-gi-cairo
# Test audio
aplay /usr/share/sounds/alsa/Front_Center.wav

10
poetry.lock generated
View File

@@ -1,4 +1,4 @@
# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
# This file is automatically @generated by Poetry 2.1.2 and should not be changed by hand.
[[package]]
name = "pycairo"
@@ -28,13 +28,13 @@ files = [
[[package]]
name = "pygobject"
version = "3.52.3"
version = "3.50.0"
description = "Python bindings for GObject Introspection"
optional = false
python-versions = "<4.0,>=3.9"
groups = ["main"]
files = [
{file = "pygobject-3.52.3.tar.gz", hash = "sha256:00e427d291e957462a8fad659a9f9c8be776ff82a8b76bdf402f1eaeec086d82"},
{file = "pygobject-3.50.0.tar.gz", hash = "sha256:4500ad3dbf331773d8dedf7212544c999a76fc96b63a91b3dcac1e5925a1d103"},
]
[package.dependencies]
@@ -42,5 +42,5 @@ pycairo = ">=1.16"
[metadata]
lock-version = "2.1"
python-versions = "~3.12"
content-hash = "f81ce71b9e08a67710c4c22ea280289755e0493d517420fad994313416eba36b"
python-versions = ">=3.11,<3.13"
content-hash = "19c08665a49b6d17048f769f0245d7f29882eaa3ac4025ff3569df68184e9335"

View File

@@ -6,9 +6,9 @@ authors = [
{name = "pstruebi",email = "struebin.patrick@gmail.com"}
]
readme = "README.md"
requires-python = "~3.12"
requires-python = ">=3.11,<3.13"
dependencies = [
"pygobject (>=3.52.3,<4.0.0)"
"pygobject (==3.50.0)"
]