From 7cfb5897a3ca9675df94fcf44070ce17092d22f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=9Ean=20G=C3=BCne=C5=9F?= <180301198+sgunes-wirepas@users.noreply.github.com> Date: Mon, 3 Feb 2025 13:39:34 +0200 Subject: [PATCH] Fix protobuf dependency version Protobuf runtime version should always be newer than the protoc version used. Setting a fixed protoc version in the github action, and setting the required protobuf version to be at least the same as the protoc version. More info: https://protobuf.dev/support/cross-version-runtime-guarantee/ --- .github/workflows/python-package.yml | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 900b6ae..6b0c2c8 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -40,7 +40,7 @@ jobs: - name: Install Protoc uses: arduino/setup-protoc@v3 with: - version: '29.x' + version: '29.3' repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Generate proto files diff --git a/setup.py b/setup.py index cef54a3..6cb7e5a 100644 --- a/setup.py +++ b/setup.py @@ -43,6 +43,6 @@ def get_absolute_path(*args): keywords=about["__keywords__"], packages=find_packages(exclude=["contrib", "docs", "tests", "examples"]), install_requires=[ - "protobuf~=5.0" + "protobuf~=5.29.3" ] )