You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now compile the Rust extension in develop mode which is quicker than release mode:
@@ -1535,14 +1522,14 @@ poe test -s --log-cli-level=DEBUG -k test_sync_activity_thread_cancel_caught
1535
1522
#### Proto Generation and Testing
1536
1523
1537
1524
To allow for backwards compatibility, protobuf code is generated on the 3.x series of the protobuf library. To generate
1538
-
protobuf code, you must be on Python <= 3.10, and then run `poetry add "protobuf<4"` +
1539
-
`poetry install --no-root --all-extras`. Then the protobuf files can be generated via `poe gen-protos`. Tests can be run
1540
-
for protobuf version 3 by setting the `TEMPORAL_TEST_PROTO3` env var to `1` prior to running tests.
1525
+
protobuf code, you must be on Python <= 3.10, and then run `uv add "protobuf<4"` +`uv sync --all-extras`. Then the
1526
+
protobuf files can be generated via `poe gen-protos`. Tests can be run for protobuf version 3 by setting the
1527
+
`TEMPORAL_TEST_PROTO3` env var to `1` prior to running tests.
1541
1528
1542
-
Do not commit `poetry.lock` or `pyproject.toml` changes. To go back from this downgrade, restore both of those files
1543
-
and run `poetry install --no-root --all-extras`. Make sure you `poe format` the results.
1529
+
Do not commit `uv.lock` or `pyproject.toml` changes. To go back from this downgrade, restore both of those files and run
1530
+
`uv sync --all-extras`. Make sure you `poe format` the results.
1544
1531
1545
-
For a less system-intrusive approach, you can (note this approach [may have a bug](https://github.com/temporalio/sdk-python/issues/543)):
1532
+
For a less system-intrusive approach, you can:
1546
1533
```shell
1547
1534
docker build -f scripts/_proto/Dockerfile .
1548
1535
docker run --rm -v "${PWD}/temporalio/api:/api_new" -v "${PWD}/temporalio/bridge/proto:/bridge_new"<just built image sha>
0 commit comments