diff --git a/custom_components/wyzeapi/manifest.json b/custom_components/wyzeapi/manifest.json index fc6a16a8..25540d5d 100644 --- a/custom_components/wyzeapi/manifest.json +++ b/custom_components/wyzeapi/manifest.json @@ -9,7 +9,7 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/SecKatie/ha-wyzeapi/issues", "requirements": [ - "wyzeapy==0.5.21" + "wyzeapy>=0.5.22,<0.5.23" ], - "version": "0.1.24" + "version": "0.1.25" } diff --git a/poetry.lock b/poetry.lock index 19e8a57c..e028ed09 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "acme" @@ -2422,13 +2422,13 @@ all = ["winrt-Windows.Foundation.Collections[all] (==2.0.0-beta.1)", "winrt-Wind [[package]] name = "wyzeapy" -version = "0.5.21" +version = "0.5.22.post1" description = "A library for interacting with Wyze devices" optional = false python-versions = ">=3.11.0" files = [ - {file = "wyzeapy-0.5.21-py3-none-any.whl", hash = "sha256:88ad1167fe5cb7a3bee8c0850fd0bc164b44e3d758afb5881d483469dd2d461a"}, - {file = "wyzeapy-0.5.21.tar.gz", hash = "sha256:b418be5b9a7a6c4190e0889153dd0e1d6cea3edace870223588d3157ab9a1006"}, + {file = "wyzeapy-0.5.22.post1-py3-none-any.whl", hash = "sha256:4288d5608f2943a3a5731b2840d6122b21c540b5cd24c9e7be397de785a672a2"}, + {file = "wyzeapy-0.5.22.post1.tar.gz", hash = "sha256:5ebe113b0bcedf07b7aa2a5f4c8a2bb58680cc3a9da72199748b11441d162896"}, ] [package.dependencies] @@ -2594,4 +2594,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = ">=3.11.0,<3.13" -content-hash = "0b107133449866fb369246f531c56cccd6b22b88b94816190d5ef8b1920c65b0" +content-hash = "bce46ccf2d5d17e2f4794b197dfd43c2a42f7c2a725f86149c75b7f1a6fe7e7c" diff --git a/pyproject.toml b/pyproject.toml index 7141500c..6a823517 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ [tool.poetry] name = "ha-wyzeapi" -version = "0.1.24" +version = "0.1.25" description = "A Home Assistant integration for Wyze devices" authors = ["Katie Mulliken "] license = "Apache-2.0" @@ -12,7 +12,7 @@ license = "Apache-2.0" [tool.poetry.dependencies] python = ">=3.11.0,<3.13" homeassistant = ">=2024" -wyzeapy = "0.5.21" +wyzeapy = ">=0.5.22,<0.5.23" [tool.poetry.dev-dependencies] diff --git a/scripts/bump_ha-wyzeapy.sh b/scripts/bump_ha-wyzeapy.sh new file mode 100755 index 00000000..887decf0 --- /dev/null +++ b/scripts/bump_ha-wyzeapy.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2024 Katie Mulliken +# +# SPDX-License-Identifier: Apache-2.0 + +TARGET_VERSION=$1 + +if [ -z "$TARGET_VERSION" ]; then + echo "Usage: $0 " + exit 1 +fi + +poetry version $TARGET_VERSION + +tmpfile=$(mktemp) +jq "(.version = \"$TARGET_VERSION\")" custom_components/wyzeapi/manifest.json > "$tmpfile" && mv "$tmpfile" custom_components/wyzeapi/manifest.json + +git checkout -b release/$TARGET_VERSION + +git add . + +git commit -m "chore(release): $TARGET_VERSION" + +git push origin release/$TARGET_VERSION \ No newline at end of file diff --git a/scripts/bump_wyzeapy.sh b/scripts/bump_wyzeapy.sh new file mode 100755 index 00000000..92149285 --- /dev/null +++ b/scripts/bump_wyzeapy.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2024 Katie Mulliken +# +# SPDX-License-Identifier: Apache-2.0 + +TARGET_VERSION=$1 + +if [ -z "$TARGET_VERSION" ]; then + echo "Usage: $0 " + exit 1 +fi + +# Set the next version as undesired +NEXT_VERSION=$(echo $TARGET_VERSION | awk -F. '{print $1"."$2"."$3+1}') + +echo "Constraining version to between $TARGET_VERSION and $NEXT_VERSION" + +VERSION_IDENTITY="wyzeapy>=${TARGET_VERSION},<${NEXT_VERSION}" + +echo "Setting version to $VERSION_IDENTITY" + +poetry add $VERSION_IDENTITY + +tmpfile=$(mktemp) +jq "(.requirements[] | select(. | contains(\"wyzeapy\"))) |= \"$VERSION_IDENTITY\"" custom_components/wyzeapi/manifest.json > "$tmpfile" && mv "$tmpfile" custom_components/wyzeapi/manifest.json \ No newline at end of file