From cf8da9437e24493de94c04a78351521dc6caf4a6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 8 Dec 2024 12:21:45 +0000 Subject: [PATCH 1/4] Bump pytest-homeassistant-custom-component from 0.13.178 to 0.13.191 Bumps [pytest-homeassistant-custom-component](https://github.com/MatthewFlamm/pytest-homeassistant-custom-component) from 0.13.178 to 0.13.191. - [Release notes](https://github.com/MatthewFlamm/pytest-homeassistant-custom-component/releases) - [Changelog](https://github.com/MatthewFlamm/pytest-homeassistant-custom-component/blob/master/CHANGELOG.md) - [Commits](https://github.com/MatthewFlamm/pytest-homeassistant-custom-component/compare/0.13.178...0.13.191) --- updated-dependencies: - dependency-name: pytest-homeassistant-custom-component dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index bd1094e..709f9ec 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pytest-homeassistant-custom-component==0.13.178 +pytest-homeassistant-custom-component==0.13.191 moonraker-api==2.0.6 aiohttp_cors==0.7.0 pre-commit==4.0.1 From 4b9d01c7668e2e7aae98bf35b492f70e5473b369 Mon Sep 17 00:00:00 2001 From: Marc-Olivier Arsenault Date: Sun, 8 Dec 2024 07:49:28 -0500 Subject: [PATCH 2/4] update python version --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9b4f695..fea279c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "moonraker-home-assistant", - "image": "mcr.microsoft.com/vscode/devcontainers/python:3.12-bookworm", + "image": "mcr.microsoft.com/devcontainers/python:3.13", "postCreateCommand": "scripts/setup", "forwardPorts": [8123], "customizations": { From 443440ffa0169e64cccf1ec40f0e3980601a65c9 Mon Sep 17 00:00:00 2001 From: Marc-Olivier Arsenault Date: Sun, 8 Dec 2024 13:20:54 +0000 Subject: [PATCH 3/4] upgrade python version --- .devcontainer/devcontainer.json | 2 +- .github/workflows/ci.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fea279c..ea15a0d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "moonraker-home-assistant", - "image": "mcr.microsoft.com/devcontainers/python:3.13", + "image": "mcr.microsoft.com/devcontainers/python:dev-3.13-bookworm", "postCreateCommand": "scripts/setup", "forwardPorts": [8123], "customizations": { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60f570b..6b0da14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: - name: "Set up Python" uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" cache: "pip" - name: "Install requirements" @@ -50,7 +50,7 @@ jobs: - name: Setup Python uses: "actions/setup-python@v5" with: - python-version: "3.12" + python-version: "3.13" - name: Install requirements run: python3 -m pip install -r requirements.txt - name: Run tests From 8fb8022b5cc2fd9ae5d1be5c270f8703cf9961fe Mon Sep 17 00:00:00 2001 From: Marc-Olivier Arsenault Date: Sun, 8 Dec 2024 14:14:26 +0000 Subject: [PATCH 4/4] add missing libs --- scripts/setup | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/setup b/scripts/setup index 6e2a86e..540f7f0 100755 --- a/scripts/setup +++ b/scripts/setup @@ -4,9 +4,18 @@ set -e cd "$(dirname "$0")/.." +# Install go2rtc + +HA_GO2RTC_VERSION=$(curl --silent -qI https://github.com/AlexxIT/go2rtc/releases/latest | awk -F '/' '/^location/ {print substr($NF, 1, length($NF)-1)}') +echo "https://github.com/AlexxIT/go2rtc/releases/download/${HA_GO2RTC_VERSION}/go2rtc_linux_amd64" +sudo curl -o /bin/go2rtc -fL "https://github.com/AlexxIT/go2rtc/releases/download/${HA_GO2RTC_VERSION}/go2rtc_linux_amd64" +sudo chmod +x /bin/go2rtc + sudo apt-get update -sudo apt-get install -y libturbojpeg0 ffmpeg +pip install --upgrade pip +sudo apt-get upgrade -y python3 -m pip install --requirement requirements.txt +sudo apt-get install -y libturbojpeg0 ffmpeg libpcap-dev