From 39ec3abecffb434d95043669fb9508822c4dc338 Mon Sep 17 00:00:00 2001 From: Trevor Bedford Date: Fri, 23 Oct 2026 15:05:00 -0700 Subject: [PATCH 1/2] Depend on boto3[crt] to support AWS console login credentials botocore's credential provider for console login credentials (a profile with `login_session`, from `aws login`) requires the optional awscrt dependency, which boto3's [crt] extra provides. Without it, commands that use AWS, such as `nextstrain remote` with s3:// addresses and `nextstrain build --aws-batch`, failed with a MissingDependencyException for users of such profiles. The extra doesn't constrain boto3's version, so it keeps the dependency resolution behaviour described in the existing comment. Related-to: Co-Authored-By: Claude Opus 5.5 --- CHANGES.md | 7 +++++++ doc/changes.md | 8 ++++++++ setup.py | 7 ++++++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a9b7dda9..7cb9c313 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,13 @@ development source code and as such may not be routinely kept up to date. # __NEXT__ +## Improvements + +* AWS console login credentials (from `aws login`) are now supported by + commands that use AWS, such as `nextstrain remote` with `s3://` addresses and + `nextstrain build --aws-batch`. Previously, these commands failed with an + error about a missing `botocore[crt]` dependency. + ([#533](https://github.com/nextstrain/cli/issues/533)) # 11.1.1 (22 October 2026) diff --git a/doc/changes.md b/doc/changes.md index 6bd35ab7..97a34482 100644 --- a/doc/changes.md +++ b/doc/changes.md @@ -16,6 +16,14 @@ development source code and as such may not be routinely kept up to date. (v-next)= ## __NEXT__ +(v-next-improvements)= +### Improvements + +* AWS console login credentials (from `aws login`) are now supported by + commands that use AWS, such as `nextstrain remote` with `s3://` addresses and + `nextstrain build --aws-batch`. Previously, these commands failed with an + error about a missing `botocore[crt]` dependency. + ([#533](https://github.com/nextstrain/cli/issues/533)) (v11-1-1)= ## 11.1.1 (22 October 2026) diff --git a/setup.py b/setup.py index c8b24afc..2f027824 100644 --- a/setup.py +++ b/setup.py @@ -116,9 +116,14 @@ def find_namespaced_packages(namespace): # the boto3/botocore version early in resolution, often resulting in a # version newer than what aiobotocore supports. # + # The [crt] extra doesn't constrain boto3's version. It adds awscrt, + # which botocore needs to use console login credentials (a profile with + # `login_session`, from `aws login`). + # # More background: # - "boto3", + # + "boto3[crt]", # Avoiding 2023.9.1 due to change in `auto_mkdir` parameter in # https://github.com/fsspec/filesystem_spec/pull/1358 that causes the From f19d5a272fab49e1dcc5054f6352c73165ac8ccf Mon Sep 17 00:00:00 2001 From: Trevor Bedford Date: Fri, 23 Oct 2026 15:08:34 -0700 Subject: [PATCH 2/2] Add PR link to changelog Co-Authored-By: Claude Opus 5.5 --- CHANGES.md | 2 +- doc/changes.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7cb9c313..4cc9b4f4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -19,7 +19,7 @@ development source code and as such may not be routinely kept up to date. commands that use AWS, such as `nextstrain remote` with `s3://` addresses and `nextstrain build --aws-batch`. Previously, these commands failed with an error about a missing `botocore[crt]` dependency. - ([#533](https://github.com/nextstrain/cli/issues/533)) + ([#533](https://github.com/nextstrain/cli/issues/533), [#553](https://github.com/nextstrain/cli/pull/553)) # 11.1.1 (22 October 2026) diff --git a/doc/changes.md b/doc/changes.md index 97a34482..ba687aa2 100644 --- a/doc/changes.md +++ b/doc/changes.md @@ -23,7 +23,7 @@ development source code and as such may not be routinely kept up to date. commands that use AWS, such as `nextstrain remote` with `s3://` addresses and `nextstrain build --aws-batch`. Previously, these commands failed with an error about a missing `botocore[crt]` dependency. - ([#533](https://github.com/nextstrain/cli/issues/533)) + ([#533](https://github.com/nextstrain/cli/issues/533), [#553](https://github.com/nextstrain/cli/pull/553)) (v11-1-1)= ## 11.1.1 (22 October 2026)