@@ -1406,10 +1406,10 @@ git clone --recursive https://github.com/temporalio/sdk-python.git
1406
1406
cd sdk-python
1407
1407
```
1408
1408
1409
- Install the dependencies ( ` --no-install-project ` because we will build it in the next step) :
1409
+ Install the dependencies:
1410
1410
1411
1411
``` bash
1412
- uv sync --no-install-project -- all-extras
1412
+ uv sync --all-extras
1413
1413
```
1414
1414
1415
1415
#### Build
@@ -1420,7 +1420,7 @@ Now perform the release build:
1420
1420
environment] ( #local-sdk-development-environment ) for the quicker approach to local development).
1421
1421
1422
1422
``` bash
1423
- poetry build
1423
+ uv build
1424
1424
```
1425
1425
1426
1426
The compiled wheel doesn't have the exact right tags yet for use, so run this script to fix it:
@@ -1493,7 +1493,7 @@ installing dependencies:
1493
1493
``` bash
1494
1494
git clone --recursive https://github.com/temporalio/sdk-python.git
1495
1495
cd sdk-python
1496
- uv sync --no-install-project -- all-extras
1496
+ uv sync --all-extras
1497
1497
```
1498
1498
1499
1499
Now compile the Rust extension in develop mode which is quicker than release mode:
@@ -1526,12 +1526,12 @@ poe test -s --log-cli-level=DEBUG -k test_sync_activity_thread_cancel_caught
1526
1526
#### Proto Generation and Testing
1527
1527
1528
1528
To allow for backwards compatibility, protobuf code is generated on the 3.x series of the protobuf library. To generate
1529
- protobuf code, you must be on Python <= 3.10, and then run ` uv add "protobuf<4" ` +
1530
- ` uv sync --no-install-project --all-extras ` . Then the protobuf files can be generated via ` poe gen-protos ` . Tests can be run
1531
- for protobuf version 3 by setting the ` TEMPORAL_TEST_PROTO3 ` env var to ` 1 ` prior to running tests.
1529
+ protobuf code, you must be on Python <= 3.10, and then run ` uv add "protobuf<4" ` + ` uv sync --all-extras ` . Then the
1530
+ protobuf files can be generated via ` poe gen-protos ` . Tests can be run for protobuf version 3 by setting the
1531
+ ` TEMPORAL_TEST_PROTO3 ` env var to ` 1 ` prior to running tests.
1532
1532
1533
- Do not commit ` uv.lock ` or ` pyproject.toml ` changes. To go back from this downgrade, restore both of those files
1534
- and run ` uv sync --no-install-project --all-extras ` . Make sure you ` poe format ` the results.
1533
+ Do not commit ` uv.lock ` or ` pyproject.toml ` changes. To go back from this downgrade, restore both of those files and run
1534
+ ` uv sync --all-extras ` . Make sure you ` poe format ` the results.
1535
1535
1536
1536
For a less system-intrusive approach, you can:
1537
1537
``` shell
0 commit comments