-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
There was a problem hiding this 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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
@davidporter-id-au Hi, which lock file are you referring to? |
There was a problem hiding this 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
uv generates a lock of dependencies https://docs.astral.sh/uv/guides/projects/#uvlock this should be comitted: (cf: astral-sh/uv#9797) |
cc @timl3136 |
What changed?
requirements.txt
in favor ofpyproject.toml
as the single source of truth for dependenciesuv
as the recommended package installer with Homebrew support for macOS>=3.11,<3.12
to>=3.11,<3.14
(adds Python 3.12 and 3.13 support)pyproject.toml
uv
-based setup instructions while maintaining backward compatibility with traditional pipWhy?
remove duplicate dependency management
How did you test it?
Test run command in
readme
Potential risks
Release notes
Documentation Changes