Skip to content

Add missing dependency on googleapis-common-protos when using protobufs #1881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

Tenzer
Copy link
Contributor

@Tenzer Tenzer commented Dec 19, 2024

What

When using the Schema Registry with Protobufs, confluent_kafka/schema_registry/protobuf.py imports from the google.type package, which is part of the googleapis-common-protos library, but the library is not specified as a dependency.

This adds that library as a dependency to make sure it is installed, so users won't hit an issue trying to import to Protobuf schema registry code in case they don't have googleapis-common-protos installed.

Checklist

  • Contains customer facing changes? Including API/behavior changes
  • Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

When using the Schema Registry with Protobufs,
`confluent_kafka/schema_registry/protobuf.py` imports from the `google.type`
package, which is part of the googleapis-common-protos library, but the library
is not specified as a dependency.

This adds that library as a dependency to make sure it is installed, so users
won't hit an issue trying to import to Protobuf schema registry code in case
they don't have googleapis-common-protos installed.
@Tenzer Tenzer requested review from a team as code owners December 19, 2024 09:03
@confluent-cla-assistant
Copy link

confluent-cla-assistant bot commented Dec 19, 2024

🎉 All Contributor License Agreements have been signed. Ready to merge.
✅ Tenzer
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Copy link
Member

@rayokota rayokota left a comment

Choose a reason for hiding this comment

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

Thanks for catching this @Tenzer , LGTM

@rayokota rayokota merged commit 60655f8 into confluentinc:master Dec 19, 2024
1 check passed
@Tenzer Tenzer deleted the add-missing-dependency branch January 2, 2025 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants