Package boto3 for Bedrock and pin google-auth

New [bedrock] extra; desktop builds and CI install it; PyInstaller collects
boto3/botocore so the lazy import works in the bundled sidecar.
This commit is contained in:
Rohit C Prasad
2026-07-25 16:23:56 -07:00
parent 241af5e15f
commit 50463bba00
6 changed files with 18 additions and 4 deletions
+11
View File
@@ -70,6 +70,17 @@ if IS_WINDOWS:
except Exception:
pass
# [bedrock] extra — boto3 is lazy-imported (bedrock_provider.py) so static analysis
# misses it, and botocore's service-model JSON data dir only ships via collect_all.
for pkg in ("boto3", "botocore"):
try:
d, b, h = collect_all(pkg)
datas += d
binaries += b
hiddenimports += h
except Exception:
pass
for pkg in ("slack_bolt", "telegram"): # [messaging] extra — optional
try:
hiddenimports += collect_submodules(pkg)