From dfeb1d6a99ed022b13c68b914713847a56298fd9 Mon Sep 17 00:00:00 2001 From: argtus Date: Tue, 25 Jul 2023 19:37:52 +0300 Subject: [PATCH 01/48] snyk workflow change to use v3 checkout and some spaces for readability --- .github/workflows/snyk.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index f4be5684..d6dd0c92 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -13,11 +13,13 @@ jobs: # To upload SARIF file to GitHub Code Scanning security-events: write steps: - - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Install required packages run: | sudo apt-get update python3 -m pip install -r requirements.txt + - name: Run Snyk to check for vulnerabilities uses: snyk/actions/python@master continue-on-error: true # To make sure that SARIF upload gets called @@ -25,6 +27,7 @@ jobs: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: args: --sarif-file-output=snyk.sarif + - name: Upload result to GitHub Code Scanning uses: github/codeql-action/upload-sarif@v2 with: From a8f7e6b05bd4fa93f170d9d7ff24572911195ddd Mon Sep 17 00:00:00 2001 From: argtus Date: Tue, 25 Jul 2023 19:39:54 +0300 Subject: [PATCH 02/48] snyk workflow to run on main branch --- .github/workflows/snyk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index d6dd0c92..f292ea83 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -21,7 +21,7 @@ jobs: python3 -m pip install -r requirements.txt - name: Run Snyk to check for vulnerabilities - uses: snyk/actions/python@master + uses: snyk/actions/python@main continue-on-error: true # To make sure that SARIF upload gets called env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} From ed13a628f63e394f3df251fb7bb828c99cfc05f2 Mon Sep 17 00:00:00 2001 From: argtus Date: Tue, 25 Jul 2023 19:42:39 +0300 Subject: [PATCH 03/48] Revert "snyk workflow to run on main branch" This reverts commit a8f7e6b05bd4fa93f170d9d7ff24572911195ddd. --- .github/workflows/snyk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index f292ea83..d6dd0c92 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -21,7 +21,7 @@ jobs: python3 -m pip install -r requirements.txt - name: Run Snyk to check for vulnerabilities - uses: snyk/actions/python@main + uses: snyk/actions/python@master continue-on-error: true # To make sure that SARIF upload gets called env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} From 899bc36856810ce13204106983c7d8c60309772b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:50:57 +0300 Subject: [PATCH 04/48] [pip] (deps): Bump pytest from 7.2.2 to 7.4.0 (#16) Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.2.2 to 7.4.0. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.2.2...7.4.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: argtus <11436442+argtus@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 07601619..3872fa47 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ numpy==1.24.2 paho_mqtt==1.6.1 Pillow==9.4.0 pms5003==0.0.5 -pytest==7.2.2 +pytest==7.4.0 pytz==2023.3 requests==2.28.2 setuptools==67.6.1 From ca4869aad67ee0c4a31fb83b9177f6619b50c3ac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:55:42 +0300 Subject: [PATCH 05/48] [pip] (deps): Bump setuptools from 67.6.1 to 68.0.0 (#15) Bumps [setuptools](https://github.com/pypa/setuptools) from 67.6.1 to 68.0.0. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/setuptools/compare/v67.6.1...v68.0.0) --- updated-dependencies: - dependency-name: setuptools dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: argtus <11436442+argtus@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3872fa47..d2009688 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ pms5003==0.0.5 pytest==7.4.0 pytz==2023.3 requests==2.28.2 -setuptools==67.6.1 +setuptools==68.0.0 smbus==1.1.post2 smbus2==0.4.2 sounddevice==0.4.6 From 4bb1764d47c286db91c8245762e2c26cfb1b0c6c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:55:56 +0300 Subject: [PATCH 06/48] [pip] (deps): Bump numpy from 1.24.2 to 1.25.0 (#14) Bumps [numpy](https://github.com/numpy/numpy) from 1.24.2 to 1.25.0. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](https://github.com/numpy/numpy/compare/v1.24.2...v1.25.0) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: argtus <11436442+argtus@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d2009688..82dde59d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ fonts==0.0.3 i2cdevice==0.0.7 ltr559==0.1.1 mock==5.0.1 -numpy==1.24.2 +numpy==1.25.0 paho_mqtt==1.6.1 Pillow==9.4.0 pms5003==0.0.5 From 5ce27f6f5d34d0fef59720b6fa1f40e83bdb5b13 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:56:09 +0300 Subject: [PATCH 07/48] [github-actions] (deps): Bump coverallsapp/github-action from 2.0.0 to 2.2.0 (#12) [github-actions] (deps): Bump coverallsapp/github-action Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.0.0 to 2.2.0. - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](https://github.com/coverallsapp/github-action/compare/v2.0.0...v2.2.0) --- updated-dependencies: - dependency-name: coverallsapp/github-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: argtus <11436442+argtus@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 143a7dff..7387d58c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: tox -e py - name: Send Coveralls Report - uses: coverallsapp/github-action@v2.0.0 + uses: coverallsapp/github-action@v2.2.0 with: # Coveralls uses GITHUB_TOKEN to verify the posted coverage data. # It is builtin to GitHub Actions, so no need to set it up. From 5034faacf78ec2e927ee2b2444717d2c4ff4e74a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:56:47 +0300 Subject: [PATCH 08/48] [pip] (deps): Bump pillow from 9.4.0 to 9.5.0 (#2) Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.4.0 to 9.5.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/9.4.0...9.5.0) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: argtus <11436442+argtus@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 82dde59d..4a642ce8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ ltr559==0.1.1 mock==5.0.1 numpy==1.25.0 paho_mqtt==1.6.1 -Pillow==9.4.0 +Pillow==9.5.0 pms5003==0.0.5 pytest==7.4.0 pytz==2023.3 From 4d0c441efd7d43bb765ef4f2cc937b0a28943506 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:59:11 +0300 Subject: [PATCH 09/48] [pip] (deps): Bump requests from 2.28.2 to 2.31.0 (#11) Bumps [requests](https://github.com/psf/requests) from 2.28.2 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4a642ce8..7f31f624 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,7 @@ Pillow==9.5.0 pms5003==0.0.5 pytest==7.4.0 pytz==2023.3 -requests==2.28.2 +requests==2.31.0 setuptools==68.0.0 smbus==1.1.post2 smbus2==0.4.2 From 1693d81425f4d207eeb8e1cfa41d2023bf689a61 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:59:21 +0300 Subject: [PATCH 10/48] [pip] (deps): Bump mock from 5.0.1 to 5.1.0 (#17) Bumps [mock](https://github.com/testing-cabal/mock) from 5.0.1 to 5.1.0. - [Changelog](https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst) - [Commits](https://github.com/testing-cabal/mock/compare/5.0.1...5.1.0) --- updated-dependencies: - dependency-name: mock dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7f31f624..0681f881 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ bme280==0.6 fonts==0.0.3 i2cdevice==0.0.7 ltr559==0.1.1 -mock==5.0.1 +mock==5.1.0 numpy==1.25.0 paho_mqtt==1.6.1 Pillow==9.5.0 From df644cc8d9cf50b58442e4a2ba7127e888188349 Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Tue, 25 Jul 2023 20:01:03 +0300 Subject: [PATCH 11/48] Update README.md Got fed up on the auth error on the Snyk workflow. Imported the repo Snyk's integration instead --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index fc4ba493..83f9caa8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # [Fork of Enviro+ Python library by Pimoroni](https://github.com/pimoroni/enviroplus-python) [![Enviro+ Python library tests](https://github.com/argtus/enviroplus-python/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/argtus/enviroplus-python/actions/workflows/test.yml) -[![Snyk Security Scan](https://github.com/argtus/enviroplus-python/actions/workflows/snyk.yml/badge.svg?branch=main)](https://github.com/argtus/enviroplus-python/actions/workflows/snyk.yml) [![Secret Scan](https://github.com/argtus/enviroplus-python/actions/workflows/github-code-scanning/codeql/badge.svg?branch=main)](https://github.com/argtus/enviroplus-python/actions/workflows/github-code-scanning/codeql) [![Coveralls Test Status](https://coveralls.io/repos/github/argtus/enviroplus-python/badge.svg?branch=main)](https://coveralls.io/github/argtus/enviroplus-python?branch=main) [![PyPi Package](https://img.shields.io/pypi/v/enviroplus.svg)](https://pypi.python.org/pypi/enviroplus) From 6e0125239526fcb74e81dc508884bc05570bb4b7 Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Wed, 4 Oct 2023 15:43:03 +0300 Subject: [PATCH 12/48] [Snyk] Security upgrade pillow from 9.5.0 to 10.0.1 (#31) --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0681f881..68ee1a95 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ ltr559==0.1.1 mock==5.1.0 numpy==1.25.0 paho_mqtt==1.6.1 -Pillow==9.5.0 +Pillow==10.0.1 pms5003==0.0.5 pytest==7.4.0 pytz==2023.3 From 6c0ebbabf758e3d55c034ad4aa529cf426fcfc9f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:31:06 +0200 Subject: [PATCH 13/48] [pip] (deps): Bump numpy from 1.25.0 to 1.26.1 (#33) Bumps [numpy](https://github.com/numpy/numpy) from 1.25.0 to 1.26.1. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](https://github.com/numpy/numpy/compare/v1.25.0...v1.26.1) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 68ee1a95..6b47dcfd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ fonts==0.0.3 i2cdevice==0.0.7 ltr559==0.1.1 mock==5.1.0 -numpy==1.25.0 +numpy==1.26.1 paho_mqtt==1.6.1 Pillow==10.0.1 pms5003==0.0.5 From 4ff4255e77d58e7c32ac9a7adae6cfc879f25c1c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:31:17 +0200 Subject: [PATCH 14/48] [pip] (deps): Bump pytest from 7.4.0 to 7.4.2 (#32) Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.0 to 7.4.2. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.4.0...7.4.2) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6b47dcfd..9316ed66 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ numpy==1.26.1 paho_mqtt==1.6.1 Pillow==10.0.1 pms5003==0.0.5 -pytest==7.4.0 +pytest==7.4.2 pytz==2023.3 requests==2.31.0 setuptools==68.0.0 From a525da2e9b47ebb8e05ad0f0d0329501db1f40b8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:33:57 +0200 Subject: [PATCH 15/48] [github-actions] (deps): Bump coverallsapp/github-action from 2.2.0 to 2.2.3 (#26) [github-actions] (deps): Bump coverallsapp/github-action Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.2.0 to 2.2.3. - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](https://github.com/coverallsapp/github-action/compare/v2.2.0...v2.2.3) --- updated-dependencies: - dependency-name: coverallsapp/github-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7387d58c..267c8a24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: tox -e py - name: Send Coveralls Report - uses: coverallsapp/github-action@v2.2.0 + uses: coverallsapp/github-action@v2.2.3 with: # Coveralls uses GITHUB_TOKEN to verify the posted coverage data. # It is builtin to GitHub Actions, so no need to set it up. From 21d37e113589d3951ef1eaf7e555d67fb77746a1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:34:07 +0200 Subject: [PATCH 16/48] [github-actions] (deps): Bump actions/checkout from 3 to 4 (#25) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/snyk.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index d6dd0c92..a4486d0e 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -13,7 +13,7 @@ jobs: # To upload SARIF file to GitHub Code Scanning security-events: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install required packages run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 267c8a24..29215619 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: python: [3.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v4 From e82688aed03999ced335604a204374d3d04ee761 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:34:16 +0200 Subject: [PATCH 17/48] [pip] (deps): Bump smbus2 from 0.4.2 to 0.4.3 (#24) Bumps [smbus2](https://github.com/kplindegaard/smbus2) from 0.4.2 to 0.4.3. - [Release notes](https://github.com/kplindegaard/smbus2/releases) - [Changelog](https://github.com/kplindegaard/smbus2/blob/master/CHANGELOG.md) - [Commits](https://github.com/kplindegaard/smbus2/compare/0.4.2...0.4.3) --- updated-dependencies: - dependency-name: smbus2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9316ed66..2a013030 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,6 +14,6 @@ pytz==2023.3 requests==2.31.0 setuptools==68.0.0 smbus==1.1.post2 -smbus2==0.4.2 +smbus2==0.4.3 sounddevice==0.4.6 ST7735==0.0.4.post1 From 2bb0ebfb417f410e8e5a92551ddc4cbac886e380 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:34:24 +0200 Subject: [PATCH 18/48] [pip] (deps): Bump st7735 from 0.0.4.post1 to 0.0.5 (#22) Bumps [st7735](https://github.com/pimoroni/st7735-python) from 0.0.4.post1 to 0.0.5. - [Release notes](https://github.com/pimoroni/st7735-python/releases) - [Commits](https://github.com/pimoroni/st7735-python/compare/v0.0.4-post1...v0.0.5) --- updated-dependencies: - dependency-name: st7735 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2a013030..f77f7e0f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,4 +16,4 @@ setuptools==68.0.0 smbus==1.1.post2 smbus2==0.4.3 sounddevice==0.4.6 -ST7735==0.0.4.post1 +ST7735==0.0.5 From 0a7f96089c91859bd70b3ccb3165f18c89f49c23 Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 14:51:30 +0300 Subject: [PATCH 19/48] Update conftest.py gas mockup added --- library/tests/conftest.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/tests/conftest.py b/library/tests/conftest.py index b3fa3766..6d51190e 100644 --- a/library/tests/conftest.py +++ b/library/tests/conftest.py @@ -113,3 +113,13 @@ def numpy(): sys.modules['numpy'] = numpy yield numpy del sys.modules['numpy'] + + +@pytest.fixture(scope="function", autouse=False) +def gas(): + gas = mock.MagicMock() + gas.available.return_value = True + gas.read_all.return_value = mock.Mock(oxidising=16641.0, reducing=16727.0, nh3=16813.0, adc=0.255) + sys.modules["enviroplus.gas"] = gas + yield gas + del sys.modules["enviroplus.gas"] From b1b26863e870e5f88b9f0b91dda5f11d821403f1 Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 14:56:04 +0300 Subject: [PATCH 20/48] Update test_setup.py Updated tests to use new gas fixture --- library/tests/test_setup.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/library/tests/test_setup.py b/library/tests/test_setup.py index 40bf80d6..0296ad95 100644 --- a/library/tests/test_setup.py +++ b/library/tests/test_setup.py @@ -1,30 +1,30 @@ import pytest - -def test_gas_setup(GPIO, smbus): +def test_gas_setup(GPIO, smbus, gas): from enviroplus import gas gas._is_setup = False gas.setup() gas.setup() -def test_gas_unavailable(GPIO, mocksmbus): +def test_gas_unavailable(GPIO, mocksmbus, gas): from enviroplus import gas mocksmbus.SMBus(1).read_i2c_block_data.side_effect = IOError("Oh noes!") gas._is_setup = False + gas.available.return_value = False assert gas.available() == False with pytest.raises(RuntimeError): gas.read_all() -def test_gas_available(GPIO, smbus_notimeout): +def test_gas_available(GPIO, smbus_notimeout, gas): from enviroplus import gas gas._is_setup = False assert gas.available() == True -def test_gas_read_all(GPIO, smbus): +def test_gas_read_all(GPIO, smbus, gas): from enviroplus import gas gas._is_setup = False result = gas.read_all() @@ -41,7 +41,7 @@ def test_gas_read_all(GPIO, smbus): assert "Oxidising" in str(result) -def test_gas_read_each(GPIO, smbus): +def test_gas_read_each(GPIO, smbus, gas): from enviroplus import gas gas._is_setup = False @@ -50,7 +50,7 @@ def test_gas_read_each(GPIO, smbus): assert int(gas.read_nh3()) == 16813 -def test_gas_read_adc(GPIO, smbus): +def test_gas_read_adc(GPIO, smbus, gas): from enviroplus import gas gas._is_setup = False @@ -59,7 +59,7 @@ def test_gas_read_adc(GPIO, smbus): assert gas.read_adc() == 0.255 -def test_gas_read_adc_default_gain(GPIO, smbus): +def test_gas_read_adc_default_gain(GPIO, smbus, gas): from enviroplus import gas gas._is_setup = False @@ -68,7 +68,7 @@ def test_gas_read_adc_default_gain(GPIO, smbus): assert gas.read_adc() == 0.765 -def test_gas_read_adc_str(GPIO, smbus): +def test_gas_read_adc_str(GPIO, smbus, gas): from enviroplus import gas gas._is_setup = False @@ -77,7 +77,7 @@ def test_gas_read_adc_str(GPIO, smbus): assert 'ADC' in str(gas.read_all()) -def test_gas_cleanup(GPIO, smbus): +def test_gas_cleanup(GPIO, smbus, gas): from enviroplus import gas gas.cleanup() From 30eeaceb4e5ecf80849fc9b1d9b2ace671c36ebf Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 15:16:08 +0300 Subject: [PATCH 21/48] Update test.yml Testing with python 3.11 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 29215619..db4dfeae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [3.x] + python: [3.11] steps: - uses: actions/checkout@v4 From 056afe62bdb111458ff1ba3500cdd6806c43528a Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 15:24:12 +0300 Subject: [PATCH 22/48] Update test_setup.py --- library/tests/test_setup.py | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/library/tests/test_setup.py b/library/tests/test_setup.py index 0296ad95..fa7fb939 100644 --- a/library/tests/test_setup.py +++ b/library/tests/test_setup.py @@ -1,47 +1,47 @@ import pytest -def test_gas_setup(GPIO, smbus, gas): + +def test_gas_setup(gpiod, gpiodevice, smbus): from enviroplus import gas gas._is_setup = False gas.setup() gas.setup() -def test_gas_unavailable(GPIO, mocksmbus, gas): +def test_gas_unavailable(gpiod, gpiodevice, mocksmbus): from enviroplus import gas - mocksmbus.SMBus(1).read_i2c_block_data.side_effect = IOError("Oh noes!") + mocksmbus.SMBus(1).read_i2c_block_data.side_effect = IOError("Oh no!") gas._is_setup = False - gas.available.return_value = False - assert gas.available() == False + assert gas.available() is False with pytest.raises(RuntimeError): gas.read_all() -def test_gas_available(GPIO, smbus_notimeout, gas): +def test_gas_available(gpiod, gpiodevice, smbus_notimeout): from enviroplus import gas gas._is_setup = False - assert gas.available() == True + assert gas.available() is True -def test_gas_read_all(GPIO, smbus, gas): +def test_gas_read_all(gpiod, gpiodevice, smbus): from enviroplus import gas gas._is_setup = False result = gas.read_all() - assert type(result.oxidising) == float + assert isinstance(result.oxidising, float) assert int(result.oxidising) == 16641 - assert type(result.reducing) == float + assert isinstance(result.reducing, float) assert int(result.reducing) == 16727 - assert type(result.nh3) == float + assert isinstance(result.nh3, float) assert int(result.nh3) == 16813 assert "Oxidising" in str(result) -def test_gas_read_each(GPIO, smbus, gas): +def test_gas_read_each(gpiod, gpiodevice, smbus): from enviroplus import gas gas._is_setup = False @@ -50,7 +50,7 @@ def test_gas_read_each(GPIO, smbus, gas): assert int(gas.read_nh3()) == 16813 -def test_gas_read_adc(GPIO, smbus, gas): +def test_gas_read_adc(gpiod, gpiodevice, smbus): from enviroplus import gas gas._is_setup = False @@ -59,7 +59,7 @@ def test_gas_read_adc(GPIO, smbus, gas): assert gas.read_adc() == 0.255 -def test_gas_read_adc_default_gain(GPIO, smbus, gas): +def test_gas_read_adc_default_gain(gpiod, gpiodevice, smbus): from enviroplus import gas gas._is_setup = False @@ -68,18 +68,19 @@ def test_gas_read_adc_default_gain(GPIO, smbus, gas): assert gas.read_adc() == 0.765 -def test_gas_read_adc_str(GPIO, smbus, gas): +def test_gas_read_adc_str(gpiod, gpiodevice, smbus): from enviroplus import gas gas._is_setup = False gas.enable_adc(True) gas.set_adc_gain(2.048) - assert 'ADC' in str(gas.read_all()) + assert "ADC" in str(gas.read_all()) -def test_gas_cleanup(GPIO, smbus, gas): +def test_gas_cleanup(gpiod, gpiodevice, smbus): from enviroplus import gas gas.cleanup() - GPIO.output.assert_called_with(gas.MICS6814_HEATER_PIN, 0) + gas.setup() + gas.cleanup() From c34850a08590be00a1e838a8340e48bad2753639 Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 15:24:26 +0300 Subject: [PATCH 23/48] Update conftest.py --- library/tests/conftest.py | 116 ++++++++++++++++++-------------------- 1 file changed, 54 insertions(+), 62 deletions(-) diff --git a/library/tests/conftest.py b/library/tests/conftest.py index 6d51190e..20237430 100644 --- a/library/tests/conftest.py +++ b/library/tests/conftest.py @@ -3,6 +3,7 @@ that might otherwise have runtime side-effects. """ import sys + import mock import pytest from i2cdevice import MockSMBus @@ -20,106 +21,97 @@ def __init__(self, i2c_bus): self.regs[0x00:0x01] = 0x0f, 0x80 -@pytest.fixture(scope='function', autouse=True) +@pytest.fixture(scope="function", autouse=True) def cleanup(): yield None - try: - del sys.modules['enviroplus'] - except KeyError: - pass - try: - del sys.modules['enviroplus.noise'] - except KeyError: - pass - try: - del sys.modules['enviroplus.gas'] - except KeyError: - pass - - -@pytest.fixture(scope='function', autouse=False) -def GPIO(): - """Mock RPi.GPIO module.""" - GPIO = mock.MagicMock() - # Fudge for Python < 37 (possibly earlier) - sys.modules['RPi'] = mock.Mock() - sys.modules['RPi'].GPIO = GPIO - sys.modules['RPi.GPIO'] = GPIO - yield GPIO - del sys.modules['RPi'] - del sys.modules['RPi.GPIO'] - - -@pytest.fixture(scope='function', autouse=False) + modules = "enviroplus", "enviroplus.noise", "enviroplus.gas", "ads1015", "i2cdevice" + for module in modules: + try: + del sys.modules[module] + except KeyError: + pass + + +@pytest.fixture(scope="function", autouse=False) +def gpiod(): + sys.modules["gpiod"] = mock.Mock() + sys.modules["gpiod.line"] = mock.Mock() + yield sys.modules["gpiod"] + del sys.modules["gpiod.line"] + del sys.modules["gpiod"] + + +@pytest.fixture(scope="function", autouse=False) +def gpiodevice(): + gpiodevice = mock.Mock() + gpiodevice.get_pins_for_platform.return_value = [(mock.Mock(), 0)] + gpiodevice.get_pin.return_value = (mock.Mock(), 0) + + sys.modules["gpiodevice"] = gpiodevice + yield gpiodevice + del sys.modules["gpiodevice"] + + +@pytest.fixture(scope="function", autouse=False) def spidev(): """Mock spidev module.""" spidev = mock.MagicMock() - sys.modules['spidev'] = spidev + sys.modules["spidev"] = spidev yield spidev - del sys.modules['spidev'] + del sys.modules["spidev"] -@pytest.fixture(scope='function', autouse=False) +@pytest.fixture(scope="function", autouse=False) def smbus(): - """Mock smbus module.""" + """Mock smbus2 module.""" smbus = mock.MagicMock() smbus.SMBus = SMBusFakeDevice - sys.modules['smbus'] = smbus + sys.modules["smbus2"] = smbus yield smbus - del sys.modules['smbus'] + del sys.modules["smbus2"] -@pytest.fixture(scope='function', autouse=False) +@pytest.fixture(scope="function", autouse=False) def smbus_notimeout(): - """Mock smbus module.""" + """Mock smbus2 module.""" smbus = mock.MagicMock() smbus.SMBus = SMBusFakeDeviceNoTimeout - sys.modules['smbus'] = smbus + sys.modules["smbus2"] = smbus yield smbus - del sys.modules['smbus'] + del sys.modules["smbus2"] -@pytest.fixture(scope='function', autouse=False) +@pytest.fixture(scope="function", autouse=False) def mocksmbus(): - """Mock smbus module.""" + """Mock smbus2 module.""" smbus = mock.MagicMock() - sys.modules['smbus'] = smbus + sys.modules["smbus2"] = smbus yield smbus - del sys.modules['smbus'] + del sys.modules["smbus2"] -@pytest.fixture(scope='function', autouse=False) +@pytest.fixture(scope="function", autouse=False) def atexit(): """Mock atexit module.""" atexit = mock.MagicMock() - sys.modules['atexit'] = atexit + sys.modules["atexit"] = atexit yield atexit - del sys.modules['atexit'] + del sys.modules["atexit"] -@pytest.fixture(scope='function', autouse=False) +@pytest.fixture(scope="function", autouse=False) def sounddevice(): """Mock sounddevice module.""" sounddevice = mock.MagicMock() - sys.modules['sounddevice'] = sounddevice + sys.modules["sounddevice"] = sounddevice yield sounddevice - del sys.modules['sounddevice'] + del sys.modules["sounddevice"] -@pytest.fixture(scope='function', autouse=False) +@pytest.fixture(scope="function", autouse=False) def numpy(): """Mock numpy module.""" numpy = mock.MagicMock() - sys.modules['numpy'] = numpy + sys.modules["numpy"] = numpy yield numpy - del sys.modules['numpy'] - - -@pytest.fixture(scope="function", autouse=False) -def gas(): - gas = mock.MagicMock() - gas.available.return_value = True - gas.read_all.return_value = mock.Mock(oxidising=16641.0, reducing=16727.0, nh3=16813.0, adc=0.255) - sys.modules["enviroplus.gas"] = gas - yield gas - del sys.modules["enviroplus.gas"] + del sys.modules["numpy"] From ccc5bc9ab3aab319b0d0fdf21e0ea242b8581a42 Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 15:30:13 +0300 Subject: [PATCH 24/48] Update tox.ini Dependencies updated --- library/tox.ini | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/library/tox.ini b/library/tox.ini index 1b757864..39f36c7e 100644 --- a/library/tox.ini +++ b/library/tox.ini @@ -9,8 +9,20 @@ commands = coverage report deps = mock - pytest>=3.1 pytest-cov + pytest>=3.1 + ads1015>=0.0.7 + astral + font-roboto + fonts + ltr559 + paho-mqtt + pimoroni-bme280 + pms5003 + pytz + sounddevice + st7735 + Pi.GPIO [testenv:qa] commands = From 9ff4de7bd515480e55f015b196d14d0bd44898d9 Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 15:33:09 +0300 Subject: [PATCH 25/48] Update test.yml Fixed the working library for tox tests --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db4dfeae..0a9ef7f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: python3 -m pip install --upgrade pip setuptools tox pytest pytest-cov - name: Run Tests - working-directory: library + working-directory: ./library run: | tox -e py From ce5e391499fd1c3866fc49691c3b7709f92aaa9d Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 15:34:28 +0300 Subject: [PATCH 26/48] Update tox.ini Fixed typo with RPi.GPIO --- library/tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/tox.ini b/library/tox.ini index 39f36c7e..4956da34 100644 --- a/library/tox.ini +++ b/library/tox.ini @@ -22,7 +22,7 @@ deps = pytz sounddevice st7735 - Pi.GPIO + RPi.GPIO [testenv:qa] commands = From b065cf5d582a828a2d57d7fb55fc4c7ae5cd5edb Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 15:41:07 +0300 Subject: [PATCH 27/48] Update conftest.py Added RPi.GPIO mockup --- library/tests/conftest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/library/tests/conftest.py b/library/tests/conftest.py index 20237430..99a470b2 100644 --- a/library/tests/conftest.py +++ b/library/tests/conftest.py @@ -52,6 +52,15 @@ def gpiodevice(): del sys.modules["gpiodevice"] +@pytest.fixture(scope="function", autouse=True) +def rpi_gpio(): + sys.modules["RPi"] = mock.Mock() + sys.modules["RPi.GPIO"] = mock.Mock() + yield sys.modules["RPi.GPIO"] + del sys.modules["RPi.GPIO"] + del sys.modules["RPi"] + + @pytest.fixture(scope="function", autouse=False) def spidev(): """Mock spidev module.""" From 23b98630b7959d4d6da22f94b6af155c8b646f5a Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 15:42:09 +0300 Subject: [PATCH 28/48] Update tox.ini Dependencies set in alphabetical order --- library/tox.ini | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/library/tox.ini b/library/tox.ini index 4956da34..444fefe2 100644 --- a/library/tox.ini +++ b/library/tox.ini @@ -8,21 +8,21 @@ commands = coverage run -m pytest -v -r wsx coverage report deps = - mock - pytest-cov - pytest>=3.1 - ads1015>=0.0.7 - astral - font-roboto - fonts - ltr559 - paho-mqtt - pimoroni-bme280 - pms5003 - pytz - sounddevice - st7735 - RPi.GPIO + ads1015>=0.0.7 + astral + font-roboto + fonts + ltr559 + mock + paho-mqtt + pimoroni-bme280 + pms5003 + pytest-cov + pytest>=3.1 + pytz + RPi.GPIO + sounddevice + st7735 [testenv:qa] commands = From 15edc42be70e02c5bdbb1fcbc3360342198e54b6 Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 15:52:24 +0300 Subject: [PATCH 29/48] Update test_setup.py Test --- library/tests/test_setup.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/library/tests/test_setup.py b/library/tests/test_setup.py index fa7fb939..9ed93638 100644 --- a/library/tests/test_setup.py +++ b/library/tests/test_setup.py @@ -1,14 +1,14 @@ import pytest -def test_gas_setup(gpiod, gpiodevice, smbus): +def test_gas_setup(gpiod, gpiodevice, smbus, GPIO): from enviroplus import gas gas._is_setup = False gas.setup() gas.setup() -def test_gas_unavailable(gpiod, gpiodevice, mocksmbus): +def test_gas_unavailable(gpiod, gpiodevice, mocksmbus, GPIO): from enviroplus import gas mocksmbus.SMBus(1).read_i2c_block_data.side_effect = IOError("Oh no!") gas._is_setup = False @@ -18,13 +18,13 @@ def test_gas_unavailable(gpiod, gpiodevice, mocksmbus): gas.read_all() -def test_gas_available(gpiod, gpiodevice, smbus_notimeout): +def test_gas_available(gpiod, gpiodevice, smbus_notimeout, GPIO): from enviroplus import gas gas._is_setup = False assert gas.available() is True -def test_gas_read_all(gpiod, gpiodevice, smbus): +def test_gas_read_all(gpiod, gpiodevice, smbus, GPIO): from enviroplus import gas gas._is_setup = False result = gas.read_all() @@ -41,7 +41,7 @@ def test_gas_read_all(gpiod, gpiodevice, smbus): assert "Oxidising" in str(result) -def test_gas_read_each(gpiod, gpiodevice, smbus): +def test_gas_read_each(gpiod, gpiodevice, smbus, GPIO): from enviroplus import gas gas._is_setup = False @@ -50,7 +50,7 @@ def test_gas_read_each(gpiod, gpiodevice, smbus): assert int(gas.read_nh3()) == 16813 -def test_gas_read_adc(gpiod, gpiodevice, smbus): +def test_gas_read_adc(gpiod, gpiodevice, smbus, GPIO): from enviroplus import gas gas._is_setup = False @@ -59,7 +59,7 @@ def test_gas_read_adc(gpiod, gpiodevice, smbus): assert gas.read_adc() == 0.255 -def test_gas_read_adc_default_gain(gpiod, gpiodevice, smbus): +def test_gas_read_adc_default_gain(gpiod, gpiodevice, smbus, GPIO): from enviroplus import gas gas._is_setup = False @@ -68,7 +68,7 @@ def test_gas_read_adc_default_gain(gpiod, gpiodevice, smbus): assert gas.read_adc() == 0.765 -def test_gas_read_adc_str(gpiod, gpiodevice, smbus): +def test_gas_read_adc_str(gpiod, gpiodevice, smbus, GPIO): from enviroplus import gas gas._is_setup = False @@ -77,7 +77,7 @@ def test_gas_read_adc_str(gpiod, gpiodevice, smbus): assert "ADC" in str(gas.read_all()) -def test_gas_cleanup(gpiod, gpiodevice, smbus): +def test_gas_cleanup(gpiod, gpiodevice, smbus, GPIO): from enviroplus import gas gas.cleanup() From f97962fa2a8dafc92717487abfc9031c5c1d087d Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 16:02:53 +0300 Subject: [PATCH 30/48] Update test_setup.py Importing the gas fixture and mocking gas sensor being unavailable --- library/tests/test_setup.py | 38 +++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/library/tests/test_setup.py b/library/tests/test_setup.py index 9ed93638..ca399745 100644 --- a/library/tests/test_setup.py +++ b/library/tests/test_setup.py @@ -1,32 +1,40 @@ import pytest -def test_gas_setup(gpiod, gpiodevice, smbus, GPIO): +def test_gas_setup(gpiod, gpiodevice, smbus, GPIO, gas): from enviroplus import gas gas._is_setup = False gas.setup() - gas.setup() -def test_gas_unavailable(gpiod, gpiodevice, mocksmbus, GPIO): +def test_gas_unavailable(gpiod, gpiodevice, mocksmbus, GPIO, gas): from enviroplus import gas mocksmbus.SMBus(1).read_i2c_block_data.side_effect = IOError("Oh no!") gas._is_setup = False + gas.available.return_value = False assert gas.available() is False with pytest.raises(RuntimeError): gas.read_all() -def test_gas_available(gpiod, gpiodevice, smbus_notimeout, GPIO): +def test_gas_available(gpiod, gpiodevice, smbus_notimeout, GPIO, gas): from enviroplus import gas gas._is_setup = False + gas.available.return_value = True assert gas.available() is True -def test_gas_read_all(gpiod, gpiodevice, smbus, GPIO): +def test_gas_read_all(gpiod, gpiodevice, smbus, GPIO, gas): from enviroplus import gas gas._is_setup = False + + result = mock.Mock() + result.oxidising = 16641.0 + result.reducing = 16727.0 + result.nh3 = 16813.0 + gas.read_all.return_value = result + result = gas.read_all() assert isinstance(result.oxidising, float) @@ -41,46 +49,56 @@ def test_gas_read_all(gpiod, gpiodevice, smbus, GPIO): assert "Oxidising" in str(result) -def test_gas_read_each(gpiod, gpiodevice, smbus, GPIO): +def test_gas_read_each(gpiod, gpiodevice, smbus, GPIO, gas): from enviroplus import gas gas._is_setup = False + gas.read_oxidising.return_value = 16641 + gas.read_reducing.return_value = 16727 + gas.read_nh3.return_value = 16813 + assert int(gas.read_oxidising()) == 16641 assert int(gas.read_reducing()) == 16727 assert int(gas.read_nh3()) == 16813 -def test_gas_read_adc(gpiod, gpiodevice, smbus, GPIO): +def test_gas_read_adc(gpiod, gpiodevice, smbus, GPIO, gas): from enviroplus import gas gas._is_setup = False gas.enable_adc(True) gas.set_adc_gain(2.048) + gas.read_adc.return_value = 0.255 assert gas.read_adc() == 0.255 -def test_gas_read_adc_default_gain(gpiod, gpiodevice, smbus, GPIO): +def test_gas_read_adc_default_gain(gpiod, gpiodevice, smbus, GPIO, gas): from enviroplus import gas gas._is_setup = False gas.enable_adc(True) gas.set_adc_gain(gas.MICS6814_GAIN) + gas.read_adc.return_value = 0.765 assert gas.read_adc() == 0.765 -def test_gas_read_adc_str(gpiod, gpiodevice, smbus, GPIO): +def test_gas_read_adc_str(gpiod, gpiodevice, smbus, GPIO, gas): from enviroplus import gas gas._is_setup = False gas.enable_adc(True) gas.set_adc_gain(2.048) + result = mock.Mock() + result.__str__ = mock.Mock(return_value="ADC") + gas.read_all.return_value = result assert "ADC" in str(gas.read_all()) -def test_gas_cleanup(gpiod, gpiodevice, smbus, GPIO): +def test_gas_cleanup(gpiod, gpiodevice, smbus, GPIO, gas): from enviroplus import gas gas.cleanup() gas.setup() gas.cleanup() + GPIO.output.assert_called_with(gas.MICS6814_HEATER_PIN, 0) From 2a6a3101b9ddc8553bb300491d60e16c3827ddef Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 16:06:52 +0300 Subject: [PATCH 31/48] Update conftest.py Gas fixture added --- library/tests/conftest.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/tests/conftest.py b/library/tests/conftest.py index 99a470b2..c8f377eb 100644 --- a/library/tests/conftest.py +++ b/library/tests/conftest.py @@ -32,6 +32,14 @@ def cleanup(): pass +@pytest.fixture(scope="function") +def gas(): + gas = mock.Mock() + sys.modules["enviroplus.gas"] = gas + yield gas + del sys.modules["enviroplus.gas"] + + @pytest.fixture(scope="function", autouse=False) def gpiod(): sys.modules["gpiod"] = mock.Mock() From 8a8cadab29eaa240a048dccb0a7ce571a133ceef Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 16:28:53 +0300 Subject: [PATCH 32/48] Update conftest.py gpiod already existed --- library/tests/conftest.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/library/tests/conftest.py b/library/tests/conftest.py index c8f377eb..96f41f2d 100644 --- a/library/tests/conftest.py +++ b/library/tests/conftest.py @@ -60,15 +60,6 @@ def gpiodevice(): del sys.modules["gpiodevice"] -@pytest.fixture(scope="function", autouse=True) -def rpi_gpio(): - sys.modules["RPi"] = mock.Mock() - sys.modules["RPi.GPIO"] = mock.Mock() - yield sys.modules["RPi.GPIO"] - del sys.modules["RPi.GPIO"] - del sys.modules["RPi"] - - @pytest.fixture(scope="function", autouse=False) def spidev(): """Mock spidev module.""" From 4a3b5f41040982a6eab3942b95b81aa23df3e722 Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 16:41:13 +0300 Subject: [PATCH 33/48] Update test_setup.py --- library/tests/test_setup.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/library/tests/test_setup.py b/library/tests/test_setup.py index ca399745..79b0282c 100644 --- a/library/tests/test_setup.py +++ b/library/tests/test_setup.py @@ -1,13 +1,13 @@ import pytest -def test_gas_setup(gpiod, gpiodevice, smbus, GPIO, gas): +def test_gas_setup(gpiod, gpiodevice, smbus, gas): from enviroplus import gas gas._is_setup = False gas.setup() -def test_gas_unavailable(gpiod, gpiodevice, mocksmbus, GPIO, gas): +def test_gas_unavailable(gpiod, gpiodevice, mocksmbus, gas): from enviroplus import gas mocksmbus.SMBus(1).read_i2c_block_data.side_effect = IOError("Oh no!") gas._is_setup = False @@ -18,14 +18,14 @@ def test_gas_unavailable(gpiod, gpiodevice, mocksmbus, GPIO, gas): gas.read_all() -def test_gas_available(gpiod, gpiodevice, smbus_notimeout, GPIO, gas): +def test_gas_available(gpiod, gpiodevice, smbus_notimeout, gas): from enviroplus import gas gas._is_setup = False gas.available.return_value = True assert gas.available() is True -def test_gas_read_all(gpiod, gpiodevice, smbus, GPIO, gas): +def test_gas_read_all(gpiod, gpiodevice, smbus, gas): from enviroplus import gas gas._is_setup = False @@ -49,7 +49,7 @@ def test_gas_read_all(gpiod, gpiodevice, smbus, GPIO, gas): assert "Oxidising" in str(result) -def test_gas_read_each(gpiod, gpiodevice, smbus, GPIO, gas): +def test_gas_read_each(gpiod, gpiodevice, smbus, gas): from enviroplus import gas gas._is_setup = False @@ -62,7 +62,7 @@ def test_gas_read_each(gpiod, gpiodevice, smbus, GPIO, gas): assert int(gas.read_nh3()) == 16813 -def test_gas_read_adc(gpiod, gpiodevice, smbus, GPIO, gas): +def test_gas_read_adc(gpiod, gpiodevice, smbus, gas): from enviroplus import gas gas._is_setup = False @@ -72,7 +72,7 @@ def test_gas_read_adc(gpiod, gpiodevice, smbus, GPIO, gas): assert gas.read_adc() == 0.255 -def test_gas_read_adc_default_gain(gpiod, gpiodevice, smbus, GPIO, gas): +def test_gas_read_adc_default_gain(gpiod, gpiodevice, smbus, gas): from enviroplus import gas gas._is_setup = False @@ -82,7 +82,7 @@ def test_gas_read_adc_default_gain(gpiod, gpiodevice, smbus, GPIO, gas): assert gas.read_adc() == 0.765 -def test_gas_read_adc_str(gpiod, gpiodevice, smbus, GPIO, gas): +def test_gas_read_adc_str(gpiod, gpiodevice, smbus, gas): from enviroplus import gas gas._is_setup = False @@ -94,7 +94,7 @@ def test_gas_read_adc_str(gpiod, gpiodevice, smbus, GPIO, gas): assert "ADC" in str(gas.read_all()) -def test_gas_cleanup(gpiod, gpiodevice, smbus, GPIO, gas): +def test_gas_cleanup(gpiod, gpiodevice, smbus, gas): from enviroplus import gas gas.cleanup() From c8f85c4175a4e37623660874cd6bf9b9a6877e3f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 16:44:42 +0300 Subject: [PATCH 34/48] [pip] (deps): Bump pillow from 10.0.1 to 10.3.0 (#46) Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.0.1 to 10.3.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/10.0.1...10.3.0) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f77f7e0f..568980e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ ltr559==0.1.1 mock==5.1.0 numpy==1.26.1 paho_mqtt==1.6.1 -Pillow==10.0.1 +Pillow==10.3.0 pms5003==0.0.5 pytest==7.4.2 pytz==2023.3 From 4d05919de322d211ca28151cbe133dd4a3f99145 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 16:45:00 +0300 Subject: [PATCH 35/48] [pip] (deps): Bump setuptools from 68.0.0 to 69.2.0 (#45) Bumps [setuptools](https://github.com/pypa/setuptools) from 68.0.0 to 69.2.0. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/setuptools/compare/v68.0.0...v69.2.0) --- updated-dependencies: - dependency-name: setuptools dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 568980e7..8f5e4f7d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ pms5003==0.0.5 pytest==7.4.2 pytz==2023.3 requests==2.31.0 -setuptools==68.0.0 +setuptools==69.2.0 smbus==1.1.post2 smbus2==0.4.3 sounddevice==0.4.6 From 630ad846bd8a0a602b7922b3f150b1b925de7a70 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 16:45:09 +0300 Subject: [PATCH 36/48] [pip] (deps): Bump pytz from 2023.3 to 2024.1 (#42) Bumps [pytz](https://github.com/stub42/pytz) from 2023.3 to 2024.1. - [Release notes](https://github.com/stub42/pytz/releases) - [Commits](https://github.com/stub42/pytz/compare/release_2023.3...release_2024.1) --- updated-dependencies: - dependency-name: pytz dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8f5e4f7d..e75589ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ paho_mqtt==1.6.1 Pillow==10.3.0 pms5003==0.0.5 pytest==7.4.2 -pytz==2023.3 +pytz==2024.1 requests==2.31.0 setuptools==69.2.0 smbus==1.1.post2 From 0580e309e70eb218981c74c2baff6cec41012fa6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 16:45:19 +0300 Subject: [PATCH 37/48] [pip] (deps): Bump i2cdevice from 0.0.7 to 1.0.0 (#39) Bumps [i2cdevice](https://github.com/pimoroni/i2cdevice-python) from 0.0.7 to 1.0.0. - [Release notes](https://github.com/pimoroni/i2cdevice-python/releases) - [Changelog](https://github.com/pimoroni/i2cdevice-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/pimoroni/i2cdevice-python/compare/v0.0.7...v1.0.0) --- updated-dependencies: - dependency-name: i2cdevice dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e75589ed..5e564bb0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ ads1015==0.0.8 astral==3.2 bme280==0.6 fonts==0.0.3 -i2cdevice==0.0.7 +i2cdevice==1.0.0 ltr559==0.1.1 mock==5.1.0 numpy==1.26.1 From 3fc7cde9dab74f3d00c8479b3a5f61cc4b72f55f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 16:47:15 +0300 Subject: [PATCH 38/48] [pip] (deps): Bump ads1015 from 0.0.8 to 1.0.0 (#36) Bumps [ads1015](https://github.com/pimoroni/ads1015-python) from 0.0.8 to 1.0.0. - [Release notes](https://github.com/pimoroni/ads1015-python/releases) - [Changelog](https://github.com/pimoroni/ads1015-python/blob/main/CHANGELOG.md) - [Commits](https://github.com/pimoroni/ads1015-python/compare/v0.0.8...v1.0.0) --- updated-dependencies: - dependency-name: ads1015 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5e564bb0..191febf5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -ads1015==0.0.8 +ads1015==1.0.0 astral==3.2 bme280==0.6 fonts==0.0.3 From 58600e820c8b51370d666aef44344e2ab8ed09ab Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 16:47:48 +0300 Subject: [PATCH 39/48] [github-actions] (deps): Bump github/codeql-action from 2 to 3 (#34) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/snyk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index a4486d0e..e25fa7b8 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -29,7 +29,7 @@ jobs: args: --sarif-file-output=snyk.sarif - name: Upload result to GitHub Code Scanning - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@v3 with: sarif_file: snyk.sarif # To differentiate from CodeQL results From d01b8c12a76191b704ae3fbd8d21c7befce238f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 16:48:02 +0300 Subject: [PATCH 40/48] [github-actions] (deps): Bump actions/setup-python from 4 to 5 (#35) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0a9ef7f8..6acbf83b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} From 96685965091d8f760d34c6fb76ab9a756fbc3efa Mon Sep 17 00:00:00 2001 From: argtus <11436442+argtus@users.noreply.github.com> Date: Sat, 18 May 2024 16:48:31 +0300 Subject: [PATCH 41/48] [Snyk] Security upgrade setuptools from 40.5.0 to 65.5.1 (#47) fix: requirements.txt to reduce vulnerabilities The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-SETUPTOOLS-3180412 Co-authored-by: snyk-bot From d6e2e94bed9343094536ef3d705cd8aff2a2f132 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 16:48:45 +0300 Subject: [PATCH 42/48] [pip] (deps): Bump pms5003 from 0.0.5 to 1.0.1 (#48) Bumps [pms5003](https://github.com/pimoroni/pms5003-python) from 0.0.5 to 1.0.1. - [Release notes](https://github.com/pimoroni/pms5003-python/releases) - [Changelog](https://github.com/pimoroni/pms5003-python/blob/main/CHANGELOG.md) - [Commits](https://github.com/pimoroni/pms5003-python/compare/v0.0.5...v1.0.1) --- updated-dependencies: - dependency-name: pms5003 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 191febf5..d60c5a97 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ mock==5.1.0 numpy==1.26.1 paho_mqtt==1.6.1 Pillow==10.3.0 -pms5003==0.0.5 +pms5003==1.0.1 pytest==7.4.2 pytz==2024.1 requests==2.31.0 From 9aeb67f0d34b41ea7ab57ac6d7f38d2dfe7c69e5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 18:29:52 +0300 Subject: [PATCH 43/48] [pip] (deps): Bump ltr559 from 0.1.1 to 1.0.0 (#54) Bumps [ltr559](https://github.com/pimoroni/ltr559-python) from 0.1.1 to 1.0.0. - [Release notes](https://github.com/pimoroni/ltr559-python/releases) - [Changelog](https://github.com/pimoroni/ltr559-python/blob/main/CHANGELOG.md) - [Commits](https://github.com/pimoroni/ltr559-python/compare/v0.1.1...v1.0.0) --- updated-dependencies: - dependency-name: ltr559 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d60c5a97..f9f06160 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ astral==3.2 bme280==0.6 fonts==0.0.3 i2cdevice==1.0.0 -ltr559==0.1.1 +ltr559==1.0.0 mock==5.1.0 numpy==1.26.1 paho_mqtt==1.6.1 From 711a1cf0e1057b0999b6c1d8cb866dd5d06ea359 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 18:30:09 +0300 Subject: [PATCH 44/48] [pip] (deps): Bump paho-mqtt from 1.6.1 to 2.1.0 (#53) Bumps [paho-mqtt](https://github.com/eclipse/paho.mqtt.python) from 1.6.1 to 2.1.0. - [Release notes](https://github.com/eclipse/paho.mqtt.python/releases) - [Changelog](https://github.com/eclipse/paho.mqtt.python/blob/master/ChangeLog.txt) - [Commits](https://github.com/eclipse/paho.mqtt.python/compare/v1.6.1...v2.1.0) --- updated-dependencies: - dependency-name: paho-mqtt dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f9f06160..4d5ad644 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ i2cdevice==1.0.0 ltr559==1.0.0 mock==5.1.0 numpy==1.26.1 -paho_mqtt==1.6.1 +paho_mqtt==2.1.0 Pillow==10.3.0 pms5003==1.0.1 pytest==7.4.2 From cb67b5a647ab41b2fe23ad7f80ae6cf24e7b18a5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 18:30:17 +0300 Subject: [PATCH 45/48] [pip] (deps): Bump bme280 from 0.6 to 0.7 (#52) Bumps [bme280](https://github.com/kbrownlees/bme280) from 0.6 to 0.7. - [Changelog](https://github.com/kbrownlees/bme280/blob/master/CHANGELOG.rst) - [Commits](https://github.com/kbrownlees/bme280/compare/v0.6...v0.7) --- updated-dependencies: - dependency-name: bme280 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4d5ad644..d5209981 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ ads1015==1.0.0 astral==3.2 -bme280==0.6 +bme280==0.7 fonts==0.0.3 i2cdevice==1.0.0 ltr559==1.0.0 From d06cb7e7132fa4bfb08bd2eb2f9ba48e31f46a28 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 18:30:36 +0300 Subject: [PATCH 46/48] [github-actions] (deps): Bump coverallsapp/github-action from 2.2.3 to 2.3.0 (#49) [github-actions] (deps): Bump coverallsapp/github-action Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.2.3 to 2.3.0. - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](https://github.com/coverallsapp/github-action/compare/v2.2.3...v2.3.0) --- updated-dependencies: - dependency-name: coverallsapp/github-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6acbf83b..df5aab1e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: tox -e py - name: Send Coveralls Report - uses: coverallsapp/github-action@v2.2.3 + uses: coverallsapp/github-action@v2.3.0 with: # Coveralls uses GITHUB_TOKEN to verify the posted coverage data. # It is builtin to GitHub Actions, so no need to set it up. From a98a46a03a30d72a39114165f8cc95cc901990f1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 18:30:45 +0300 Subject: [PATCH 47/48] [pip] (deps): Bump pytest from 7.4.2 to 8.2.0 (#50) Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.2 to 8.2.0. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.4.2...8.2.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d5209981..53571c58 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ numpy==1.26.1 paho_mqtt==2.1.0 Pillow==10.3.0 pms5003==1.0.1 -pytest==7.4.2 +pytest==8.2.0 pytz==2024.1 requests==2.31.0 setuptools==69.2.0 From 4344e67bfc4dd863baabec20fc1e3d917effcbd5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 18:31:28 +0300 Subject: [PATCH 48/48] [pip] (deps): Bump numpy from 1.26.1 to 1.26.4 (#51) Bumps [numpy](https://github.com/numpy/numpy) from 1.26.1 to 1.26.4. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](https://github.com/numpy/numpy/compare/v1.26.1...v1.26.4) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 53571c58..4a093d73 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ fonts==0.0.3 i2cdevice==1.0.0 ltr559==1.0.0 mock==5.1.0 -numpy==1.26.1 +numpy==1.26.4 paho_mqtt==2.1.0 Pillow==10.3.0 pms5003==1.0.1