Skip to content

Commit

Permalink
Upgrade to Python 3.13 and update HA (#451)
Browse files Browse the repository at this point in the history
* 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](MatthewFlamm/pytest-homeassistant-custom-component@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] <[email protected]>

* update python version

* upgrade python version

* add missing libs

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc-Olivier Arsenault <[email protected]>
  • Loading branch information
dependabot[bot] and marcolivierarsenault authored Dec 8, 2024
1 parent b00b7b5 commit 9e25bc3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moonraker-home-assistant",
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.12-bookworm",
"image": "mcr.microsoft.com/devcontainers/python:dev-3.13-bookworm",
"postCreateCommand": "scripts/setup",
"forwardPorts": [8123],
"customizations": {
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 10 additions & 1 deletion scripts/setup
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9e25bc3

Please sign in to comment.