Skip to content

[Python] grpc-status: Relax protobuf dependency upper bound to allow 7.x#41948

Merged
sergiitk merged 4 commits into
grpc:masterfrom
asheshvidyut:fix/issue/41933
Apr 22, 2026
Merged

[Python] grpc-status: Relax protobuf dependency upper bound to allow 7.x#41948
sergiitk merged 4 commits into
grpc:masterfrom
asheshvidyut:fix/issue/41933

Conversation

@asheshvidyut

@asheshvidyut asheshvidyut commented Mar 26, 2026

Copy link
Copy Markdown
Member

Description

Remove upper bound from grpc-status setup.py install requirement for protobuf.

Fixes #41933

Testing

cd grpc && bash test.sh

VENV_NAME=".venv_status_pb_test"
python3 -m venv "$VENV_NAME"
source "$VENV_NAME/bin/activate"
pip install -U "protobuf>=7.0.0"
pip install -U googleapis-common-protos coverage
pip install -e .
cd src/python/grpcio_status
pip install --no-deps -e .
cd ../../..
export PYTHONPATH=$(pwd)/src/python/grpcio_tests:$(pwd)/src/python/grpcio_status
python3 -m unittest tests.status._grpc_status_test
python3 -m unittest tests_aio.status.grpc_status_test
deactivate

@asheshvidyut asheshvidyut added the release notes: yes Indicates if PR needs to be in release notes label Mar 26, 2026
@asheshvidyut asheshvidyut marked this pull request as ready for review March 26, 2026 13:22
@asheshvidyut

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies src/python/grpcio_status/setup.py by removing the upper bound for the protobuf dependency. However, this change introduces a critical syntax error due to a missing comma, which would cause incorrect string concatenation and package installation failure. Furthermore, completely removing the upper bound for protobuf is risky and could lead to breakages with future major versions; a more specific upper bound, such as <8.0.0, is recommended.

Comment thread src/python/grpcio_status/setup.py Outdated
sergiitk and others added 2 commits April 2, 2026 10:34
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@sergiitk sergiitk changed the title [Python] Remove upper bound from grpc-status install requirement for protobuf [Python] grpc-status: Relax protobuf dependency upper bound to allow 7.x Apr 2, 2026
@sergiitk sergiitk requested a review from yuanweiz April 21, 2026 23:02
@sergiitk sergiitk merged commit 316dd31 into grpc:master Apr 22, 2026
60 checks passed
asheshvidyut added a commit to asheshvidyut/grpc that referenced this pull request Apr 23, 2026
…7.x (grpc#41948)

### Description

Remove upper bound from `grpc-status` `setup.py` install requirement for
protobuf.

Fixes grpc#41933 

### Testing

`cd grpc && bash test.sh`

```bash
VENV_NAME=".venv_status_pb_test"
python3 -m venv "$VENV_NAME"
source "$VENV_NAME/bin/activate"
pip install -U "protobuf>=7.0.0"
pip install -U googleapis-common-protos coverage
pip install -e .
cd src/python/grpcio_status
pip install --no-deps -e .
cd ../../..
export PYTHONPATH=$(pwd)/src/python/grpcio_tests:$(pwd)/src/python/grpcio_status
python3 -m unittest tests.status._grpc_status_test
python3 -m unittest tests_aio.status.grpc_status_test
deactivate
```

---------

Co-authored-by: Sergii Tkachenko <sergiitk@google.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
asheshvidyut added a commit to a-detiste/grpc that referenced this pull request Jun 10, 2026
…7.x (grpc#41948)

### Description

Remove upper bound from `grpc-status` `setup.py` install requirement for
protobuf.

Fixes grpc#41933 

### Testing

`cd grpc && bash test.sh`

```bash
VENV_NAME=".venv_status_pb_test"
python3 -m venv "$VENV_NAME"
source "$VENV_NAME/bin/activate"
pip install -U "protobuf>=7.0.0"
pip install -U googleapis-common-protos coverage
pip install -e .
cd src/python/grpcio_status
pip install --no-deps -e .
cd ../../..
export PYTHONPATH=$(pwd)/src/python/grpcio_tests:$(pwd)/src/python/grpcio_status
python3 -m unittest tests.status._grpc_status_test
python3 -m unittest tests_aio.status.grpc_status_test
deactivate
```

---------

Co-authored-by: Sergii Tkachenko <sergiitk@google.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/Python release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

grpcio-status is (marked) incompatible with the newest Protobuf versions

3 participants