From 070549d4950589a58d859fa2d36e5e205376c25b Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 10 Feb 2026 14:32:07 +0100 Subject: [PATCH] Upgrade and migrate to repo-config v0.14.0 We need to bump the protobuf minimum supported version to 1.32.1 because it is required by the new repo config version. Signed-off-by: Leandro Lucarella --- .github/workflows/auto-dependabot.yaml | 22 ++++++++++++++++++++++ mkdocs.yml | 4 ++-- pyproject.toml | 12 ++++++------ 3 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/auto-dependabot.yaml diff --git a/.github/workflows/auto-dependabot.yaml b/.github/workflows/auto-dependabot.yaml new file mode 100644 index 00000000..15ec7e4d --- /dev/null +++ b/.github/workflows/auto-dependabot.yaml @@ -0,0 +1,22 @@ +name: Auto-merge Dependabot PR + +on: + pull_request: + +permissions: + contents: write + pull-requests: write + +jobs: + auto-merge: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - name: Auto-merge Dependabot PR + uses: frequenz-floss/dependabot-auto-approve@3cad5f42e79296505473325ac6636be897c8b8a1 # v1.3.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + dependency-type: 'all' + auto-merge: 'true' + merge-method: 'merge' + add-label: 'tool:auto-merged' diff --git a/mkdocs.yml b/mkdocs.yml index 81d2f65e..46f94482 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -94,15 +94,15 @@ plugins: default_handler: python handlers: python: + paths: ["py"] options: - paths: ["py"] docstring_section_style: spacy merge_init_into_class: false show_category_heading: true show_root_heading: true show_root_members_full_path: true show_source: true - import: + inventories: # See https://mkdocstrings.github.io/python/usage/#import for details - https://docs.python.org/3/objects.inv - https://grpc.github.io/grpc/python/objects.inv diff --git a/pyproject.toml b/pyproject.toml index 1844c61d..3111f5ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,12 +5,12 @@ requires = [ "setuptools == 80.9.0", "setuptools_scm[toml] == 9.2.2", - "frequenz-repo-config[api] == 0.13.5", + "frequenz-repo-config[api] == 0.14.0", # We need to pin the protobuf, grpcio and grpcio-tools dependencies to make # sure the code is generated using the minimum supported versions, as older # versions can't work with code that was generated with newer versions. # https://protobuf.dev/support/cross-version-runtime-guarantee/#backwards - "protobuf == 6.31.1", + "protobuf == 6.32.1", "grpcio-tools == 1.72.1", "grpcio == 1.72.1", ] @@ -36,7 +36,7 @@ dependencies = [ # We can't widen beyond the current value unless we bump the minimum # requirements too because of protobuf cross-version runtime guarantees: # https://protobuf.dev/support/cross-version-runtime-guarantee/#major - "protobuf >= 6.31.1, < 8", # Do not widen beyond 8! + "protobuf >= 6.32.1, < 8", # Do not widen beyond 8! # We couldn't find any document with a spec about the cross-version runtime # guarantee for grpcio, so unless we find one in the future, we'll assume # major version jumps are not compatible @@ -63,7 +63,7 @@ dev-mkdocs = [ "mkdocs-literate-nav == 0.6.2", "mkdocs-material == 9.6.21", "mkdocstrings[python] == 0.30.1", - "frequenz-repo-config[api] == 0.13.5", + "frequenz-repo-config[api] == 0.14.0", ] dev-mypy = [ "mypy == 1.18.2", @@ -71,7 +71,7 @@ dev-mypy = [ # For checking the noxfile, docs/ script, and tests "frequenz-api-common[dev-mkdocs,dev-noxfile,dev-pytest]", ] -dev-noxfile = ["nox == 2025.10.16", "frequenz-repo-config[api] == 0.13.5"] +dev-noxfile = ["nox == 2025.10.16", "frequenz-repo-config[api] == 0.14.0"] dev-pylint = [ "pylint == 3.3.8", # For checking the noxfile, docs/ script, and tests @@ -79,7 +79,7 @@ dev-pylint = [ ] dev-pytest = [ "pytest == 8.4.2", - "frequenz-repo-config[extra-lint-examples] == 0.13.5", + "frequenz-repo-config[extra-lint-examples] == 0.14.0", ] dev = [ "frequenz-api-common[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",