Skip to content

Set up pyproject.toml and Add Python project setup with protobuf generation #5

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 4 commits into from
Jul 31, 2025

Conversation

timl3136
Copy link
Member

@timl3136 timl3136 commented Jul 29, 2025

What changed?
Generated protobuf files: Complete set of Python protobuf bindings in shared/uber/cadence/ structure
Added automatic download of protoc 29.1 to .bin/ directory
Fixed protobuf runtime version mismatch by pinning to protobuf==5.29.1

Why?
We need the generated python files to ensure the communication is sync with server

How did you test it?
Only generated files

Potential risks

Release notes

Documentation Changes

@timl3136 timl3136 changed the title Set up PyProject and generated files using protoc Set up pyproject.toml and Add Python project setup with protobuf generation Jul 29, 2025
"Topic :: System :: Distributed Computing",
]
requires-python = ">=3.11,<3.12"
dependencies = [
Copy link
Member

Choose a reason for hiding this comment

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

Are these all used?

Copy link
Member Author

Choose a reason for hiding this comment

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

I plan to trim the dependency later since it's quite a demanding operation

pyproject.toml Outdated
packages = ["cadence", "cadence.shared"]

[tool.setuptools.package-data]
"*" = ["*.proto", "*.thrift"]
Copy link
Member

Choose a reason for hiding this comment

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

I don't know what this does but I hope we don't need thrift.

Copy link
Member Author

Choose a reason for hiding this comment

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

cursor added that since idl have thrift files. But we can remove it.

@timl3136 timl3136 merged commit c2ae5ea into cadence-workflow:main Jul 31, 2025
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