Skip to content

Commit

Permalink
chore(release): 0.1.25 (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
SecKatie authored May 22, 2024
1 parent f08c2e4 commit 9deaefd
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 9 deletions.
4 changes: 2 additions & 2 deletions custom_components/wyzeapi/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

[tool.poetry]
name = "ha-wyzeapi"
version = "0.1.24"
version = "0.1.25"
description = "A Home Assistant integration for Wyze devices"
authors = ["Katie Mulliken <[email protected]>"]
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]

Expand Down
25 changes: 25 additions & 0 deletions scripts/bump_ha-wyzeapy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2024 Katie Mulliken <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0

TARGET_VERSION=$1

if [ -z "$TARGET_VERSION" ]; then
echo "Usage: $0 <version>"
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
26 changes: 26 additions & 0 deletions scripts/bump_wyzeapy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2024 Katie Mulliken <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0

TARGET_VERSION=$1

if [ -z "$TARGET_VERSION" ]; then
echo "Usage: $0 <version>"
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

0 comments on commit 9deaefd

Please sign in to comment.