File tree Expand file tree Collapse file tree 3 files changed +30
-24
lines changed
Expand file tree Collapse file tree 3 files changed +30
-24
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,43 @@ cd cadence-python-client
2222
2323### Setup
2424
25- 1 . ** Create virtual environment :**
25+ 1 . ** Install protobuf (required) :**
2626 ``` bash
27- python3 -m venv venv
28- source venv/bin/activate # Windows: venv\Scripts\activate
27+ # macOS
28+ brew install protobuf@29
29+
30+ # Linux/Other
31+ # Install protobuf 29.x via your package manager
32+ ```
33+
34+ 2 . ** Install uv (recommended):**
35+ ``` bash
36+ # macOS
37+ brew install uv
38+
39+ # Linux/Other
40+ curl -LsSf https://astral.sh/uv/install.sh | sh
41+ source $HOME /.local/bin/env # Add to your shell profile for persistence
2942 ```
3043
31- 2 . ** Install dependencies:**
44+ 3 . ** Create virtual environment and install dependencies:**
3245 ``` bash
33- pip install -r requirements.txt
46+ uv venv
47+ uv pip install -e " .[dev]"
48+ ```
49+
50+ Or if you prefer traditional pip:
51+ ``` bash
52+ python3.11 -m venv venv
53+ source venv/bin/activate # Windows: venv\Scripts\activate
54+ pip install -e " .[dev]"
3455 ```
3556
3657### Generate Protobuf Files
3758
3859Run the generation script:
3960``` bash
40- python scripts/generate_protobuf_final .py
61+ python scripts/generate_proto .py
4162```
4263
4364This will:
Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ classifiers = [
1919 " Operating System :: OS Independent" ,
2020 " Programming Language :: Python :: 3" ,
2121 " Programming Language :: Python :: 3.11" ,
22+ " Programming Language :: Python :: 3.12" ,
23+ " Programming Language :: Python :: 3.13" ,
2224 " Topic :: Software Development :: Libraries :: Python Modules" ,
2325 " Topic :: System :: Distributed Computing" ,
2426]
25- requires-python = " >=3.11,<3.12 "
27+ requires-python = " >=3.11,<3.14 "
2628dependencies = [
2729 " grpcio>=1.50.0" ,
2830 " grpcio-tools>=1.50.0" ,
2931 " protobuf==5.29.1" ,
30- " thriftpy2>=0.4.0" ,
31- " six>=1.16.0" ,
3232 " typing-extensions>=4.0.0" ,
3333]
3434
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments