6.3.0
New features
safir.logging
is now available as a separate PyPI package,safir-logging
, so that it can be installed in environments where the full Safir dependency may be too heavy-weight or conflict with other packages. Packages that do depend onsafir
can and should ignore this change and continue to assume depending onsafir
will be sufficient to providesafir.logging
.- Allow the database URL passed to
DatabaseSessionDependency.initialize
to be a PydanticUrl
. This simplifies logic for applications that useEnvAsyncPostgresDsn
or other Pydantic URL types for their configuration. - Allow the hook URL argument to
safir.testing.slack.mock_slack_webhook
to be a PydanticSecretStr
.
Bug fixes
safir.logging
previously exported alogger_name
variable holding the logger name configured viasafir.logging.configure_logging
. This variable was never documented and was not intended for use outside of the library. It is no longer exported, has been renamed, and is now private to the library.- Fix construction of an
Availability
object reporting problems with the UWS database layer to use the correct field names and data type for the model.
What's Changed
- DM-45575: Restructure code to move it out of
__init__.py
files by @rra in #283 - DM-45779: Allow a
Url
for database session initialization by @rra in #284 - DM-45779: Allow
mock_slack_webhook
to takeSecretStr
by @rra in #285 - DM-45794: Update to the current shared Ruff configuration by @rra in #286
- DM-45818: Fix UWS Availability during errors by @rra in #287
- DM-45824: Update to the latest Ruff by @rra in #289
- DM-45824: Split safir.logging into a separate PyPI package by @rra in #288
- DM-45824: Cap dependency on safir-logging by @rra in #290
- DM-45824: Document logging in Safir UWS workers by @rra in #292
- DM-45824: Prepare 6.3.0 release by @rra in #291
- DM-45824: Fix release date for 6.3.0 by @rra in #293
Full Changelog: 6.2.0...6.3.0