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
22
22
23
23
### Setup
24
24
25
- 1 . ** Create virtual environment :**
25
+ 1 . ** Install protobuf (required) :**
26
26
``` 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
29
42
```
30
43
31
- 2 . ** Install dependencies:**
44
+ 3 . ** Create virtual environment and install dependencies:**
32
45
``` 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]"
34
55
```
35
56
36
57
### Generate Protobuf Files
37
58
38
59
Run the generation script:
39
60
``` bash
40
- python scripts/generate_protobuf_final .py
61
+ python scripts/generate_proto .py
41
62
```
42
63
43
64
This will:
Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ classifiers = [
19
19
" Operating System :: OS Independent" ,
20
20
" Programming Language :: Python :: 3" ,
21
21
" Programming Language :: Python :: 3.11" ,
22
+ " Programming Language :: Python :: 3.12" ,
23
+ " Programming Language :: Python :: 3.13" ,
22
24
" Topic :: Software Development :: Libraries :: Python Modules" ,
23
25
" Topic :: System :: Distributed Computing" ,
24
26
]
25
- requires-python = " >=3.11,<3.12 "
27
+ requires-python = " >=3.11,<3.14 "
26
28
dependencies = [
27
29
" grpcio>=1.50.0" ,
28
30
" grpcio-tools>=1.50.0" ,
29
31
" protobuf==5.29.1" ,
30
- " thriftpy2>=0.4.0" ,
31
- " six>=1.16.0" ,
32
32
" typing-extensions>=4.0.0" ,
33
33
]
34
34
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments