Skip to content

Commit

Permalink
bump boto3 (and celery0 to bring in latest ses API
Browse files Browse the repository at this point in the history
we need to bump boto3 to bring in the changes to the sesv2 API to add
support for custom headers.

I went through the boto3 changelogs with a fine toothcomb - nothing
there is particularly alarming. Here's a filtered list of just the lines
i think will affect our apps. Note that we only use boto3 for
interacting with things programatically, so while there may have been
changes to, eg, boto3's ecs API, since we don't interact with ECS from
our apps we don't need to worry about that. See the filtered list[^1].

Notably there were some changes to the boto3 sqs protocol, and celery
needed to be bumped to support that - see the kombu PR[^2] if you're
interested in learning more.

[^1]: https://gist.github.com/leohemsted/0572ad15c57fdbaef8b9697cc6e5eaa4
[^2]: celery/kombu#1807
  • Loading branch information
leohemsted committed May 9, 2024
1 parent f1a070c commit 3bc9a75
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
5 changes: 4 additions & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# with package version changes made in requirements.in

cffi==1.15.1
celery[sqs]==5.2.7
celery[sqs]==5.4.0
Flask-Bcrypt==1.0.1
flask-marshmallow==0.14.0
Flask-Migrate==3.1.0
Expand All @@ -23,6 +23,9 @@ cachetools==5.2.0
beautifulsoup4==4.11.1
lxml==4.9.3

# TODO: remove from here once boto3 dependencies are updated in utils
boto3>=1.34.100

notifications-python-client==8.0.1

notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@76.0.2
Expand Down
28 changes: 17 additions & 11 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,28 @@ bcrypt==4.0.0
# via flask-bcrypt
beautifulsoup4==4.11.1
# via -r requirements.in
billiard==3.6.4.0
billiard==4.2.0
# via celery
blinker==1.6.2
# via
# flask
# gds-metrics
# sentry-sdk
boto3==1.28.5
boto3==1.34.100
# via
# -r requirements.in
# celery
# kombu
# notifications-utils
botocore==1.31.5
botocore==1.34.100
# via
# boto3
# s3transfer
cachetools==5.2.0
# via
# -r requirements.in
# notifications-utils
celery[sqs]==5.2.7
celery[sqs]==5.4.0
# via
# -r requirements.in
# sentry-sdk
Expand Down Expand Up @@ -131,7 +133,7 @@ jsonpointer==2.3
# via jsonschema
jsonschema[format]==4.16.0
# via -r requirements.in
kombu[sqs]==5.2.4
kombu[sqs]==5.3.7
# via celery
lxml==4.9.3
# via -r requirements.in
Expand Down Expand Up @@ -175,7 +177,9 @@ psycopg2-binary==2.9.6
pycparser==2.21
# via cffi
pycurl==7.44.1
# via kombu
# via
# celery
# kombu
pyjwt==2.5.0
# via
# -r requirements.in
Expand All @@ -188,12 +192,11 @@ python-dateutil==2.8.2
# via
# arrow
# botocore
# celery
python-json-logger==2.0.4
# via notifications-utils
pytz==2022.4
# via
# celery
# notifications-utils
# via notifications-utils
pyyaml==6.0.1
# via notifications-utils
redis==4.5.4
Expand All @@ -207,7 +210,7 @@ rfc3339-validator==0.1.4
# via jsonschema
rfc3987==1.3.8
# via jsonschema
s3transfer==0.6.0
s3transfer==0.10.1
# via boto3
segno==1.5.2
# via notifications-utils
Expand All @@ -232,15 +235,18 @@ sqlalchemy==1.4.41
# sentry-sdk
statsd==3.3.0
# via notifications-utils
tzdata==2024.1
# via celery
uri-template==1.2.0
# via jsonschema
urllib3==1.26.18
# via
# botocore
# celery
# kombu
# requests
# sentry-sdk
vine==5.0.0
vine==5.1.0
# via
# amqp
# celery
Expand Down

0 comments on commit 3bc9a75

Please sign in to comment.