From c1886fba31d0ac96628b5c73c9f57a7d8ce71dd1 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Mon, 27 Dec 2021 10:55:17 +0100 Subject: [PATCH 1/7] Add py3.10 testing and bump aiohttp to 3.8.1 (in line with HA-Core) --- .github/workflows/verify.yml | 4 ++-- CHANGELOG.md | 4 ++++ requirements_test.txt | 4 ++-- setup.py | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index a28ba2d9e..2421404b6 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -167,7 +167,7 @@ jobs: needs: commitcheck strategy: matrix: - python-version: [3.8, 3.9] + python-version: [3.8, 3.9, 3.10] steps: - name: Check out committed code uses: actions/checkout@v2 @@ -204,7 +204,7 @@ jobs: needs: prepare-test-cache strategy: matrix: - python-version: [3.8, 3.9] + python-version: [3.8, 3.9, 3.10] steps: - name: Check out committed code diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a1543d5b..8d61adbae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## In progress + - Add testing for python 3.10 + - Bump aiohttp to 3.8.1 + ## v0.15.4 - Smile - Bugfix: handle removed thermostats - Recognize when a thermostat has been removed from a zone and don't show it in Core - Rename Group Switch to Switchgroup, remove vendor name diff --git a/requirements_test.txt b/requirements_test.txt index 5283c9236..62d69d079 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,10 +1,10 @@ # In addition to Upstream HA (devbranch) -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt # and commit --r requirements_commit.txt +# -r requirements_commit.txt # and setup -e . # -pytest-asyncio +# pytest-asyncio pytest-cover radon diff --git a/setup.py b/setup.py index 24f348c8e..e45af315c 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ def readme(): license="MIT", packages=find_packages(), install_requires=[ - "aiohttp==3.8.0", + "aiohttp==3.8.1", "async_timeout", "crcmod", "defusedxml", From efb9ca0fdb65025bf7a6c7d772ece1c20bf43cb8 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Mon, 27 Dec 2021 11:14:59 +0100 Subject: [PATCH 2/7] Remove package constraint --- package_constraints.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_constraints.txt b/package_constraints.txt index e7d0cb1f0..ba74309d4 100644 --- a/package_constraints.txt +++ b/package_constraints.txt @@ -4,6 +4,6 @@ # Test constraints #jsonpickle==1.4.1 -pytest-asyncio==0.14.0 +#pytest-asyncio==0.14.0 pytest-cover==3.0.0 radon==4.5.0 From e646c372bc12df4a7ea665c61a196668f58feb54 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Mon, 27 Dec 2021 11:18:58 +0100 Subject: [PATCH 3/7] BUMP cache --- .github/workflows/verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 2421404b6..4bcaea843 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -4,7 +4,7 @@ name: Latest commit env: - CACHE_VERSION: 9 + CACHE_VERSION: 99 DEFAULT_PYTHON: 3.9 PRE_COMMIT_HOME: ~/.cache/pre-commit From dabd5452126b5cf83d2440e9f7e04e33b3392647 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Mon, 27 Dec 2021 11:42:05 +0100 Subject: [PATCH 4/7] Bump prettier --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 95a6bfbfc..679903d68 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -56,7 +56,7 @@ repos: hooks: - id: yamllint - repo: https://github.com/prettier/prettier - rev: 2.0.4 + rev: 2.5.1 hooks: - id: prettier stages: [manual] From a2d6bd64ca012aabfa34e16b0e467e5832d43704 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Mon, 27 Dec 2021 12:19:19 +0100 Subject: [PATCH 5/7] Force 3.10 not 3.1 --- .github/workflows/verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 4bcaea843..a1742b1f1 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -167,7 +167,7 @@ jobs: needs: commitcheck strategy: matrix: - python-version: [3.8, 3.9, 3.10] + python-version: [3.8, 3.9, "3.10"] steps: - name: Check out committed code uses: actions/checkout@v2 @@ -204,7 +204,7 @@ jobs: needs: prepare-test-cache strategy: matrix: - python-version: [3.8, 3.9, 3.10] + python-version: [3.8, 3.9, "3.10"] steps: - name: Check out committed code From d2fc9dcf8e33b9ada7c0facc073a1db82b6ae7b6 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Mon, 27 Dec 2021 13:02:00 +0100 Subject: [PATCH 6/7] Remove fixed version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e45af315c..48cc57118 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ def readme(): license="MIT", packages=find_packages(), install_requires=[ - "aiohttp==3.8.1", + "aiohttp", "async_timeout", "crcmod", "defusedxml", From 7b3ca8b66ed7ff516d8c15743d4bb9c80a912be5 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Mon, 27 Dec 2021 13:11:53 +0100 Subject: [PATCH 7/7] Remove fixed version, lower cache --- .github/workflows/verify.yml | 2 +- CHANGELOG.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index a1742b1f1..2e43fb0bd 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -4,7 +4,7 @@ name: Latest commit env: - CACHE_VERSION: 99 + CACHE_VERSION: 11 DEFAULT_PYTHON: 3.9 PRE_COMMIT_HOME: ~/.cache/pre-commit diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d61adbae..d93ba18f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog ## In progress - - Add testing for python 3.10 - - Bump aiohttp to 3.8.1 + - Add testing for python 3.10, improve dependencies (github workflow) + - Bump aiohttp to 3.8.1, remove fixed dependencies ## v0.15.4 - Smile - Bugfix: handle removed thermostats - Recognize when a thermostat has been removed from a zone and don't show it in Core