Skip to content

v1.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Oct 13:57
· 2 commits to v1.x.x since this release
Immutable release. Only release title and notes can be modified.
v1.5.0
8a31d4a

Frequenz Core Library Release Notes

New Features

A new frequenz.core.warnings module with:

  • ignoring_warnings() and ignoring_deprecations() to silence warnings/deprecations around a piece of code. Unlike warnings.catch_warnings(), entering and leaving it doesn't reset the warnings deduplication history of the program, so warnings already shown are not shown again, working around python/cpython#73858. It costs about the same as the standard library block, so it is also usable on a hot path, where repairing the damage afterwards would not be.

  • asserting_no_warnings(), and its asserting_no_deprecations() shortcut, fail when the code in the block raises a matching warning/deprecation, listing each one with the place it came from. They are meant for tests, and are a better tool than an "error" filter, which makes warnings.warn() raise inside the code under test and so changes the very behaviour the test is checking.

  • deprecated_aliases() builds a module __getattr__ that warns when a symbol that moved to another module, or was renamed, is reached through its old import path, serving the very same object so isinstance keeps working through both paths.

What's Changed

  • Clear release notes by @llucax in #190
  • build(deps-dev): bump the patch group with 4 updates by @dependabot[bot] in #191
  • build(deps-dev): bump the minor group with 2 updates by @dependabot[bot] in #192
  • build(deps-dev): bump flake8-datetimez from 20.10.0 to 26.8.1 by @dependabot[bot] in #195
  • build(deps-dev): bump setuptools from 83.0.0 to 84.0.0 by @dependabot[bot] in #196
  • build(deps-dev): bump isort from 8.0.1 to 9.0.1 by @dependabot[bot] in #194
  • Style deprecation notices in the API reference by @llucax in #198
  • Add a warnings module for ignoring, asserting and aliasing by @llucax in #199
  • build(deps-dev): bump the minor group with 5 updates by @dependabot[bot] in #202
  • build(deps-dev): bump pydoclint from 0.9.1 to 0.10.0 by @dependabot[bot] in #203
  • build(deps-dev): bump frequenz-repo-config from 0.18.0 to 0.19.0 in the repo-config group across 1 directory by @dependabot[bot] in #193
  • Make each deprecated alias take its own message by @llucax in #200

Full Changelog: v1.4.0...v1.5.0