Upgrade (projects must change): Atom no longer has a Microsoft Graph or PostHog client.
client_msgraph,client_posthog,func_client_msgraph,func_client_posthog, theconfig_msgraph_*andconfig_posthog_*settings and the packagesmsgraph-sdk,azure-identityandposthogare removed: Atom never called them, and they were about 275 MB of every project's venv. A project that uses either keeps it as its own client: its package under# extendinrequirements.txt, its settings inconfig_extend.py, its client infunc_extend_client(docs/extend.md); with the same name (client_msgraph,client_posthog), code that uses it does not change. A project that doesn't use them changes nothing.
What changed:
- One client registry: each Atom client is defined once in
func_client_registry(function/clients.py) asname: (open, close);main.pyopens them all at once and closes them from the same list, in place of a line per client and a separate close function. When one fails to open, the ones that opened are closed and startup stops with its error (several name each). - Project clients: optional
func_extend_client(*, app_state)infunction_extend/returns more entries in the same shape; they open with Atom's, close on shutdown and on a failed startup, and areapp_state.client_<name>.func_extendandapp_state.extendare unchanged. client_rabbitmq(the connection) is no longer onapp_state;client_rabbitmq_producercloses it with the channel.