aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

[v2] Upgrade prompt-toolkit to 3.0.51

Open hssyoo opened this issue 7 months ago • 1 comments

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

hssyoo avatar Jun 17 '25 00:06 hssyoo

Okay so prompt-toolkit began identifying its version using importlib.metadata.version [source]. There are 2 issues here..

  1. The AWS CLI looks for certain path finders and wraps them inside a custom path finder [source]. This prevents prompt-toolkit's metadata from being found at build time and runtime.
  2. PyInstaller doesn't copy package metadata by default when building the frozen executable. This prevents prompt-toolkit's metadata from being found at runtime. There's a way to configure this, but I haven't gotten it to work yet [docs].

hssyoo avatar Jun 17 '25 18:06 hssyoo