Skip to content

change dependency management in favor of pyproject.toml and uv #6

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 2 commits into from
Aug 5, 2025

Conversation

timl3136
Copy link
Member

What changed?

  • Removed requirements.txt in favor of pyproject.toml as the single source of truth for dependencies
  • Added uv as the recommended package installer with Homebrew support for macOS
  • Updated Python version support from >=3.11,<3.12 to >=3.11,<3.14 (adds Python 3.12 and 3.13 support)
  • Added Python 3.12 and 3.13 classifiers to pyproject.toml
  • Updated README with modern uv-based setup instructions while maintaining backward compatibility with traditional pip

Why?
remove duplicate dependency management

How did you test it?
Test run command in readme

Potential risks

Release notes

Documentation Changes

Copy link
Member

@davidporter-id-au davidporter-id-au left a comment

Choose a reason for hiding this comment

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

@timl3136 should the new lock file be committed?

Copy link
Member

Choose a reason for hiding this comment

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

readme says python scripts/generate_protobuf_final.py but we only have scripts/generate_protobuf.py Running the script shows a bunch of files deleted. Is the new script checked-in?

Copy link
Member

Choose a reason for hiding this comment

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

I got error

  ✗ Failed to generate files for cadence/api/v1/common.proto: Command '['/Users/shengs/code/me/cadence-python-client/.bin/protoc-29.1', '--python_out=/Users/shengs/code/me/cadence-python-client/cadence', '--pyi_out=/Users/shengs/code/me/cadence-python-client/cadence', '--proto_path=/Users/shengs/code/me/cadence-python-client/.temp_proto', '--proto_path=/opt/homebrew/include', '/Users/shengs/code/me/cadence-python-client/.temp_proto/cadence/api/v1/common.proto']' returned non-zero exit status 1.
  stderr: google/protobuf/duration.proto: File not found.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for pointing that out, it should be generate_proto.py

@timl3136
Copy link
Member Author

timl3136 commented Aug 5, 2025

@timl3136 should the new lock file be committed?

@davidporter-id-au Hi, which lock file are you referring to?

Copy link
Member

@shijiesheng shijiesheng left a comment

Choose a reason for hiding this comment

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

able to reproduce it and generate the files

@timl3136 timl3136 merged commit ab9bebb into cadence-workflow:main Aug 5, 2025
@davidporter-id-au
Copy link
Member

uv generates a lock of dependencies https://docs.astral.sh/uv/guides/projects/#uvlock

this should be comitted: (cf: astral-sh/uv#9797)

@davidporter-id-au
Copy link
Member

cc @timl3136

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.

3 participants