From 971d9627517f73a4b2c912fa3563e92ddbbebd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20=27I=C3=B1aki=27=20Martin?= Date: Sat, 30 Dec 2023 23:37:48 -0300 Subject: [PATCH 1/4] Fix DiscordRoom with no ID --- src/err-backend-discord/discordlib/room.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/err-backend-discord/discordlib/room.py b/src/err-backend-discord/discordlib/room.py index d6f4ed7..b7328e4 100644 --- a/src/err-backend-discord/discordlib/room.py +++ b/src/err-backend-discord/discordlib/room.py @@ -31,7 +31,7 @@ def from_id(cls, channel_id): if channel is None: raise ValueError(f"Channel id:{channel_id} doesn't exist!") - return cls(channel.name, channel.guild.id) + return cls(channel.name, channel.guild.id, channel.id) def __init__( self, channel_name: str = None, guild_id: str = None, channel_id: str = None From e662a130d64fba90cb8ef0cff874bf33a963f45b Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 20 Mar 2024 21:11:44 +0100 Subject: [PATCH 2/4] Update python-package.yml --- .github/workflows/python-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 8d491c3..9e85e1c 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -39,21 +39,21 @@ jobs: tox -e py - name: Check Distribution - if: ${{ matrix.python-version == "3.10" }} + if: matrix.python-version == "3.10" run: | tox -e dist-check - name: Codestyle - if: ${{ matrix.python-version == "3.10" }} + if: matrix.python-version == "3.10" run: | tox -e codestyle - name: Lint - sort - if: ${{ matrix.python-version == "3.10" }} + if: matrix.python-version == "3.10" run: | tox -e sort - name: Security - if: ${{ matrix.python-version == "3.10" }} + if: matrix.python-version == "3.10" run: | tox -e security From dfc746b25c131e419c3236bda41e6cbe5b976e6f Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 20 Mar 2024 21:16:56 +0100 Subject: [PATCH 3/4] Update python-package.yml --- .github/workflows/python-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9e85e1c..723ed06 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -39,21 +39,21 @@ jobs: tox -e py - name: Check Distribution - if: matrix.python-version == "3.10" + if: matrix.python-version == 3.10 run: | tox -e dist-check - name: Codestyle - if: matrix.python-version == "3.10" + if: matrix.python-version == 3.10 run: | tox -e codestyle - name: Lint - sort - if: matrix.python-version == "3.10" + if: matrix.python-version == 3.10 run: | tox -e sort - name: Security - if: matrix.python-version == "3.10" + if: matrix.python-version == 3.10 run: | tox -e security From c9607eab6b3f9390933b035ee56915d70cde9939 Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 20 Mar 2024 21:23:20 +0100 Subject: [PATCH 4/4] Update python-package.yml --- .github/workflows/python-package.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 723ed06..e4e2585 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -31,6 +31,8 @@ jobs: run: | python -m pip install --upgrade pip pip install -r test-requirements.txt + # Temp fix for errbot py3.8 wheel on pypi missing dependency + pip install graphlib-backport==1.0.3 errbot --init cp tests/config-ci.py config.py