From 4bd253ebd0725785c07745bee5b4edb4b942cd03 Mon Sep 17 00:00:00 2001 From: Richard Bullington-McGuire Date: Fri, 3 Jan 2025 13:07:33 -0500 Subject: [PATCH] Eliminate six library - not needed in 2025 --- freezing/nq/api/webhook.py | 16 ++++++++-------- pyproject.toml | 1 - 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/freezing/nq/api/webhook.py b/freezing/nq/api/webhook.py index db57531..03e074d 100644 --- a/freezing/nq/api/webhook.py +++ b/freezing/nq/api/webhook.py @@ -39,17 +39,17 @@ def on_get(self, req: falcon.Request, resp: falcon.Response): def on_post(self, req: falcon.Request, resp: falcon.Response): """ - Receives a POSt request from Strava to indicate that an activity has been created or updated. + Receives a POST request (webhook) from Strava to indicate that an activity has been created or updated. - We use stravalib to deserialize this (although the structure is pretty trivial). This will the be published to - beanstalkd (etc.) for picking up by main processing component. + We use stravalib to deserialize this (although the structure is pretty trivial). + This will the be published to beanstalkd (etc.) for picking up by main processing component. Message payload: - subscription_id = Attribute(six.text_type) - owner_id = Attribute(six.text_type) - object_id = Attribute(six.text_type) - object_type = Attribute(six.text_type) - aspect_type = Attribute(six.text_type) + subscription_id = Attribute(str) + owner_id = Attribute(str) + object_id = Attribute(str) + object_type = Attribute(str) + aspect_type = Attribute(str) event_time = TimestampAttribute() See: https://developers.strava.com/docs/webhooks/ diff --git a/pyproject.toml b/pyproject.toml index ad1429c..980e499 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,6 @@ dependencies = [ "greenstalk==2.0.2", "gunicorn==22.0.0", "python-mimeparse==2.0.0", - "six==1.16.0", ] classifiers = [ "Development Status :: 4 - Beta",