Skip to content

Configure deprecations in the docs and tests - #1500

Merged
llucax merged 2 commits into
frequenz-floss:v1.x.xfrom
llucax:configure-deprecations
Nov 27, 2026
Merged

llucax merged 2 commits into
frequenz-floss:v1.x.xfrom
llucax:configure-deprecations

Conversation

@llucax

@llucax llucax commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

This prepares the repository for deprecations, like the repository configuration template does:

  • The API documentation uses the griffe-frequenz-core deprecations extension. It marks symbols deprecated with typing_extensions.deprecated, renders their notices as admonitions, and makes the strict documentation build fail when a deprecated symbol has no notice.
  • Using a symbol the SDK deprecated itself is an error in the tests, so the SDK doesn't ship code that still uses it. Deprecations coming from dependencies are still only reported.

Enable the griffe-frequenz-core deprecations extension and add the
style for its "Deprecated" admonition, as the repository configuration
template does. The extension marks symbols deprecated with
typing_extensions.deprecated and makes the strict documentation build
fail when one has no notice.

This way, the notices of upcoming deprecations, like the ones of the
old resampler configurations, are rendered and checked.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Deprecations coming from dependencies are still reported only once, but
using a symbol the SDK deprecated itself is now an error, so the SDK
doesn't ship code that still uses it, which users would see as warnings
they can do nothing about. This is the filter the repository
configuration template generates.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@github-actions github-actions Bot added part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) labels Nov 27, 2026
@llucax llucax self-assigned this Nov 27, 2026
@llucax
llucax marked this pull request as ready for review November 27, 2026 14:19
@llucax
llucax requested a review from a team as a code owner November 27, 2026 14:19
@llucax
llucax requested review from daniel-zullo-frequenz and removed request for a team November 27, 2026 14:19
@llucax
llucax enabled auto-merge November 27, 2026 14:19
@llucax
llucax requested review from Marenz and cwasicki November 27, 2026 14:20
@llucax llucax added this to the v1.0.0-rc2217 milestone Nov 27, 2026
@llucax
llucax added this pull request to the merge queue Nov 27, 2026
@github-project-automation github-project-automation Bot moved this from To do to Review approved in Python SDK Roadmap Nov 27, 2026
Merged via the queue into frequenz-floss:v1.x.x with commit 91343ab Nov 27, 2026
9 checks passed
@llucax
llucax deleted the configure-deprecations branch November 27, 2026 14:27
@github-project-automation github-project-automation Bot moved this from Review approved to Done in Python SDK Roadmap Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

Development

Successfully merging this pull request may close these issues.

2 participants