Skip to content

Commit

Permalink
Fix CI lint failure by pinning to protobuf-4 (#6650)
Browse files Browse the repository at this point in the history
* Pin `protobuf` to version 4 to fix "Lint check" CI failure such as
  https://github.com/quantumlib/Cirq/actions/runs/9654153610/job/26627844188

* Also bump `types-protobuf` `mypy-protobuf` for consistency with protobuf-4.x
  • Loading branch information
pavoljuhas committed Jun 26, 2024
1 parent 4112b59 commit b0e5b1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cirq-google/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
google-api-core[grpc] >= 1.14.0
proto-plus >= 1.20.0
protobuf >= 3.15.0
protobuf >= 3.15.0, < 5.0.0
2 changes: 1 addition & 1 deletion dev_tools/requirements/deps/mypy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ mypy==1.2.0
# packages with stub types for various libraries
types-backports==0.1.3
types-cachetools
types-protobuf~=3.20
types-protobuf>=3.20.0,<5.0.0
types-requests==2.28.1
types-setuptools==62.6.1
2 changes: 1 addition & 1 deletion dev_tools/requirements/deps/protos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# This bundles protoc 3.24.3, which we use for generating proto code.
grpcio-tools~=1.59.0

mypy-protobuf==3.4
mypy-protobuf~=3.4

0 comments on commit b0e5b1d

Please sign in to comment.