15 Commits

Author SHA1 Message Date
f90a653ac7 chore(deps): lock file maintenance
All checks were successful
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Successful in 5s
CI / ci (pull_request) Successful in 1m8s
2025-06-06 18:02:48 +00:00
6421a3923f feat!(deps): upgrade dependencies (#488)
Some checks failed
Security / sonarqube (push) Failing after 22s
Security / snyk (push) Successful in 54s
Okay, let's break down this Git diff. I'll explain the changes in the context of the overall project.

**Overall:**

This pull request appears to be updating dependencies, and making a corresponding code change to reflect an API change in one of those dependencies, `webexteamssdk`. The project seems to be a Webex bot application, utilizing the Webex Teams SDK to interact with Webex.

**File Breakdown:**

1.  `app/meme.py`

    ```diff
    --- a/app/meme.py
    +++ b/app/meme.py
    @@ -2,10 +2,10 @@

     from webex_bot.models.command import Command
     from webex_bot.models.response import Response, response_from_adaptive_card
-    from webexteamssdk.models.cards import (
+    from webexpythonsdk.models.cards import (
         AdaptiveCard,
         Choice,
-        Choices,
+        ChoiceSet,
         Column,
         ColumnSet,
         FontSize,
@@ -13,7 +13,7 @@ from webexteamssdk.models.cards import (
         Text,
         TextBlock,
     )
-    from webexteamssdk.models.cards.actions import OpenUrl, Submit
+    from webexpythonsdk.models.cards.actions import OpenUrl, Submit

     from app import img

    @@ -70,7 +70,7 @@ class MakeMemeCommand(Command):
                         Column(
                             width=1,
                             items=[
-                                Choices(
+                                ChoiceSet(
                                     id="meme_type",
                                     isMultiSelect=False,
                                     choices=[Choice(title=x["name"], value=x["choiceval"]) for x in TEMPLATES],
    ```

    *   **`import` statement update:**

        *   `webexteamssdk` is replaced with `webexpythonsdk`.  This indicates that the code is migrating to use a potentially renamed or reorganized SDK.
        *   The import paths for card models and actions are updated to reflect the new SDK structure (e.g., `webexteamssdk.models.cards` becomes `webexpythonsdk.models.cards`).
    *   **`Choices` to `ChoiceSet`:**

        *   The code changes from using a class named `Choices` to `ChoiceSet`. The `Choices` class was probably renamed to `ChoiceSet` in the new SDK.  This change is found in the `MakeMemeCommand` class, within the adaptive card definition.
        *   The purpose of this code is likely to present a user with a set of options to select a meme type, and the `ChoiceSet` renders a dropdown or radio button group in the adaptive card.

2.  `uv.lock`

    This file is a lock file for the uv package manager, similar to `requirements.txt` with hashes.  It specifies the exact versions and dependencies of Python packages used in the project. The changes in this file reflect an update to the project's dependencies. The major changes are:

    *   **Removal of `revision = 2`:** This line is removed, indicating a change in the lock file's metadata.
    *   **Version bumps:** Several packages have their versions updated. Some examples include:
        *   `certifi` updated from `2025.1.31` to `2025.4.26`
        *   `charset-normalizer` updated from `3.4.1` to `3.4.2`
        *   `click` updated from `8.1.8` to `8.2.1`
        *   `coverage` updated from `7.8.0` to `7.8.2`
        *   `dill` updated from `0.3.9` to `0.4.0`
        *   `identify` updated from `2.6.9` to `2.6.12`
        *   `mypy-extensions` updated from `1.0.0` to `1.1.0`
        *   `packaging` updated from `24.2` to `25.0`
        *   `pluggy` updated from `1.5.0` to `1.6.0`
        *   `pylint` updated from `3.3.6` to `3.3.7`
        *   `urllib3` updated to `2.4.0`
        *   `webex-bot` updated from `0.5.2` to `0.6.2`
        *   `webexteamssdk` replaced by `webexpythonsdk` updated to `2.0.4`
    *   **Removal of `future` package:** This package is removed from the dependencies.
    *   **Addition of `pygments` package:** This package is added as a dependency with version `2.19.1`.
    *   **Hash changes:**  The hashes for all the updated packages have also changed, which is expected since the package versions are different. The inclusion of hashes ensures that the correct, unaltered versions of the packages are installed.

**Impact and Justification:**

*   **Dependency Updates:** Keeping dependencies up-to-date is a standard security practice. Newer versions often include bug fixes, performance improvements, and security patches.
*   **API Alignment:** The code change in `app/meme.py` is essential. If `webexteamssdk` was indeed renamed or its API significantly altered in the newer version, the code needs to adapt to use the new class names and import paths. Failing to do so would likely break the meme-making functionality.
*   **Lockfile Integrity:** Updating the lockfile (`uv.lock`) is crucial.  It ensures that every environment where this project is deployed uses the *exact* same versions of the dependencies, preventing unexpected behavior.
*   **Removal of `future`:** The removal of `future` suggests that the code might have been updated to be fully compatible with Python 3, and the package is no longer needed.
*   **Addition of `pygments`:** The addition of `pygments` indicates that the code will now use this library.

**In Summary:**

This pull request updates dependencies, adapts the code to API changes in `webexpythonsdk`, adds `pygments` and removes the `future` package, while ensuring dependency consistency through the lockfile. It's a necessary step for maintaining the application's functionality, security, and compatibility with the latest libraries.

Reviewed-on: #488
2025-06-06 19:53:36 +02:00
52bb626eea fix(deps): update dependency astroid to <=3.3.10 (#481)
All checks were successful
Security / snyk (push) Successful in 2m21s
Security / sonarqube (push) Successful in 3m0s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [astroid](https://github.com/pylint-dev/astroid) | project.dependencies | patch | `<=3.3.9` -> `<=3.3.10` |

---

### Release Notes

<details>
<summary>pylint-dev/astroid (astroid)</summary>

### [`v3.3.10`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-3310)

[Compare Source](https://github.com/pylint-dev/astroid/compare/v3.3.9...v3.3.10)

\=============================
Release date: 2025-05-10

-   Avoid importing submodules sharing names with standard library modules.

    Closes [#&#8203;2684](https://github.com/pylint-dev/astroid/issues/2684)

-   Fix bug where `pylint code.custom_extension` would analyze `code.py` or `code.pyi` instead if they existed.

    Closes [pylint-dev/pylint#3631](https://github.com/pylint-dev/pylint/issues/3631)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC44LjIiLCJ1cGRhdGVkSW5WZXIiOiI0MC44LjIiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInR5cGUvZGVwZW5kZW5jaWVzIl19-->

Reviewed-on: https://git.tainton.uk/repos/webexmemebot/pulls/481
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-05-10 21:40:39 +02:00
0b73c67ef2 chore(deps): lock file maintenance (#478)
Some checks failed
Release / Manual Trigger Cleanup (push) Has been skipped
Release / Create Release (push) Successful in 58s
Release / Build Docker Images (push) Failing after 4m2s
Security / sonarqube (push) Successful in 3m13s
Security / snyk (push) Successful in 1m43s
This PR contains the following updates:

| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |

🔧 This Pull Request updates lock files to use the latest dependency versions.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMiIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: #478
Reviewed-by: Luke Tainton <luke@tainton.uk>
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-04-14 10:55:30 +02:00
fa4e530e7e chore(deps): lock file maintenance (#477)
Some checks failed
Release / Manual Trigger Cleanup (push) Has been skipped
Release / Create Release (push) Successful in 26s
Release / Build Docker Images (push) Failing after 1m56s
Security / sonarqube (push) Successful in 1m31s
Security / snyk (push) Successful in 1m33s
This PR contains the following updates:

| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |

🔧 This Pull Request updates lock files to use the latest dependency versions.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMjEuMCIsInVwZGF0ZWRJblZlciI6IjM5LjIyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: #477
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-03-31 08:05:33 +02:00
420f790582 chore(deps): lock file maintenance (#475)
All checks were successful
Security / sonarqube (push) Successful in 2m16s
Security / snyk (push) Successful in 1m28s
This PR contains the following updates:

| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |

🔧 This Pull Request updates lock files to use the latest dependency versions.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMTEuNCIsInVwZGF0ZWRJblZlciI6IjM5LjIxMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: #475
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-03-24 14:58:04 +01:00
5f22912497 chore(deps): lock file maintenance (#474)
Some checks failed
Release / Manual Trigger Cleanup (push) Has been skipped
Release / Create Release (push) Successful in 33s
Release / Build Docker Images (push) Failing after 2m56s
Security / sonarqube (push) Successful in 1m8s
Security / snyk (push) Successful in 1m5s
This PR contains the following updates:

| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |

🔧 This Pull Request updates lock files to use the latest dependency versions.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDAuMyIsInVwZGF0ZWRJblZlciI6IjM5LjIwMC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: #474
Reviewed-by: Luke Tainton <luke@tainton.uk>
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-03-19 18:52:21 +01:00
246a96f3e9 chore(deps): lock file maintenance (#473)
All checks were successful
Release / Manual Trigger Cleanup (push) Has been skipped
Release / Create Release (push) Successful in 36s
Release / Build Docker Images (push) Successful in 3m34s
Security / sonarqube (push) Successful in 4m55s
Security / snyk (push) Successful in 1m16s
This PR contains the following updates:

| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |

🔧 This Pull Request updates lock files to use the latest dependency versions.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOTEuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE5MS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: #473
Reviewed-by: Luke Tainton <luke@tainton.uk>
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-03-09 15:19:48 +01:00
1e21ac841f fix(deps): update dependency astroid to <=3.3.9 (#472)
All checks were successful
Security / sonarqube (push) Successful in 1m26s
Security / snyk (push) Successful in 1m24s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [astroid](https://github.com/pylint-dev/astroid) | project.dependencies | patch | `<=3.3.8` -> `<=3.3.9` |

---

### Release Notes

<details>
<summary>pylint-dev/astroid (astroid)</summary>

### [`v3.3.9`](https://github.com/pylint-dev/astroid/blob/HEAD/ChangeLog#Whats-New-in-astroid-339)

[Compare Source](https://github.com/pylint-dev/astroid/compare/v3.3.8...v3.3.9)

\============================
Release date: 2025-03-09

-   Fix crash when `sys.modules` contains lazy loader objects during checking.

    Closes [#&#8203;2686](https://github.com/pylint-dev/astroid/issues/2686)
    Closes [pylint-dev/pylint#8589](https://github.com/pylint-dev/pylint/issues/8589)

-   Upload release assets to PyPI via Trusted Publishing.

    Refs [pylint-dev/pylint#10256](https://github.com/pylint-dev/pylint/issues/10256)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOTEuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE5MS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: https://git.tainton.uk/repos/webexmemebot/pulls/472
Reviewed-by: Luke Tainton <luke@tainton.uk>
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-03-09 14:51:51 +01:00
8dfa9e9f68 chore(deps): lock file maintenance (#471)
Some checks failed
Security / sonarqube (push) Successful in 3m42s
Security / snyk (push) Successful in 5m24s
Release / Manual Trigger Cleanup (push) Has been skipped
Release / Create Release (push) Successful in 19s
Release / Build Docker Images (push) Failing after 1m55s
This PR contains the following updates:

| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |

🔧 This Pull Request updates lock files to use the latest dependency versions.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4wLjAtbmV4dC4xIiwidXBkYXRlZEluVmVyIjoiNDAuMC4wLW5leHQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: #471
Reviewed-by: Luke Tainton <luke@tainton.uk>
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-02-24 01:55:53 +01:00
74c016093a chore(deps): lock file maintenance
All checks were successful
CI / ci (pull_request) Successful in 1m4s
Security / sonarqube (push) Successful in 42s
Security / snyk (push) Successful in 51s
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Successful in 7s
2025-02-17 00:08:04 +00:00
66b488c09f chore(deps): lock file maintenance
Some checks failed
Release / Manual Trigger Cleanup (push) Has been skipped
Release / Create Release (push) Successful in 16s
Security / sonarqube (push) Successful in 2m24s
Release / Build Docker Images (push) Failing after 18s
Security / snyk (push) Successful in 3m20s
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Successful in 7s
CI / ci (pull_request) Successful in 1m55s
2025-02-10 00:10:38 +00:00
554fc3e6b5 chore(deps): update dependency isort to v6
Some checks failed
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Successful in 5s
CI / ci (pull_request) Successful in 1m34s
Release / Manual Trigger Cleanup (push) Has been skipped
Release / Create Release (push) Successful in 53s
Release / Build Docker Images (push) Failing after 34s
2025-02-04 21:03:54 +00:00
a7aa213bc4 chore(deps): update dependency black to v25
All checks were successful
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Successful in 3s
CI / ci (pull_request) Successful in 1m6s
2025-02-04 21:38:17 +01:00
2a5f074002
feat: switch to uv
Some checks failed
Enforce Conventional Commit PR Title / Validate PR Title (pull_request) Successful in 3s
CI / ci (pull_request) Failing after 17s
2025-01-03 16:41:14 +00:00