Skip to content

Commit f443083

Browse files
committed
rg --json 'uv run python' | rg-replace 'uv run'
1 parent c99cefe commit f443083

36 files changed

Lines changed: 97 additions & 97 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
if: ${{ matrix.python == '3.12' }}
5151
run: |
5252
uv sync --group gevent
53-
uv run python gevent_async/test/run_combined.py
53+
uv run gevent_async/test/run_combined.py
5454
5555
- name: Upload junit-xml artifacts
5656
uses: actions/upload-artifact@v4

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ With this repository cloned, run the following at the root of the directory:
1818

1919
uv sync
2020

21-
That loads all required dependencies. Then to run a sample, usually you just run it in Python. For example:
21+
That loads all required dependencies. Then to run a sample, usually you just run it under uv. For example:
2222

23-
uv run python hello/hello_activity.py
23+
uv run hello/hello_activity.py
2424

2525
Some examples require extra dependencies. See each sample's directory for specific instructions.
2626

activity_worker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ First run the Go workflow worker by running this in the `go_workflow` directory
88

99
Then in another terminal, run the sample from this directory:
1010

11-
uv run python activity_worker.py
11+
uv run activity_worker.py
1212

1313
The Python code will invoke the Go workflow which will execute the Python activity and return.

bedrock/basic/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A basic Bedrock workflow. Starts a workflow with a prompt, generates a response
44

55
To run, first see `samples-python` [README.md](../../README.md), and `bedrock` [README.md](../README.md) for prerequisites specific to this sample. Once set up, run the following from this directory:
66

7-
1. Run the worker: `uv run python run_worker.py`
7+
1. Run the worker: `uv run run_worker.py`
88
2. In another terminal run the client with a prompt:
99

10-
e.g. `uv run python send_message.py 'What animals are marsupials?'`
10+
e.g. `uv run send_message.py 'What animals are marsupials?'`

bedrock/entity/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ Multi-Turn Chat using an Entity Workflow. The workflow runs forever unless expli
44

55
To run, first see `samples-python` [README.md](../../README.md), and `bedrock` [README.md](../README.md) for prerequisites specific to this sample. Once set up, run the following from this directory:
66

7-
1. Run the worker: `uv run python run_worker.py`
7+
1. Run the worker: `uv run run_worker.py`
88
2. In another terminal run the client with a prompt.
99

10-
Example: `uv run python send_message.py 'What animals are marsupials?'`
10+
Example: `uv run send_message.py 'What animals are marsupials?'`
1111

1212
3. View the worker's output for the response.
1313
4. Give followup prompts by signaling the workflow.
1414

15-
Example: `uv run python send_message.py 'Do they lay eggs?'`
15+
Example: `uv run send_message.py 'Do they lay eggs?'`
1616
5. Get the conversation history summary by querying the workflow.
1717

18-
Example: `uv run python get_history.py`
19-
6. To end the chat session, run `uv run python end_chat.py`
18+
Example: `uv run get_history.py`
19+
6. To end the chat session, run `uv run end_chat.py`

bedrock/signals_and_queries/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ Adding signals & queries to the [basic Bedrock sample](../1_basic). Starts a wor
44

55
To run, first see `samples-python` [README.md](../../README.md), and `bedrock` [README.md](../README.md) for prerequisites specific to this sample. Once set up, run the following from this directory:
66

7-
1. Run the worker: `uv run python run_worker.py`
7+
1. Run the worker: `uv run run_worker.py`
88
2. In another terminal run the client with a prompt.
99

10-
Example: `uv run python send_message.py 'What animals are marsupials?'`
10+
Example: `uv run send_message.py 'What animals are marsupials?'`
1111

1212
3. View the worker's output for the response.
1313
4. Give followup prompts by signaling the workflow.
1414

15-
Example: `uv run python send_message.py 'Do they lay eggs?'`
15+
Example: `uv run send_message.py 'Do they lay eggs?'`
1616
5. Get the conversation history by querying the workflow.
1717

18-
Example: `uv run python get_history.py`
18+
Example: `uv run get_history.py`
1919
6. The workflow will timeout after inactivity.

cloud_export_to_parquet/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Before you start, please modify workflow input in `create_schedule.py` with your
1111
To run, first see [README.md](../README.md) for prerequisites. Then, run the following from this directory to start the worker:
1212

1313
```bash
14-
uv run python run_worker.py
14+
uv run run_worker.py
1515
```
1616

1717
This will start the worker. Then, in another terminal, run the following to execute the schedule:
1818

1919
```bash
20-
uv run python create_schedule.py
20+
uv run create_schedule.py
2121
```
2222

2323
The workflow should convert exported file in your input s3 bucket to parquet in your specified location.

context_propagation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ this example, [contextvars](https://docs.python.org/3/library/contextvars.html)
66
To run, first see [README.md](../README.md) for prerequisites. Then, run the following from this directory to start the
77
worker:
88

9-
uv run python worker.py
9+
uv run worker.py
1010

1111
This will start the worker. Then, in another terminal, run the following to execute the workflow:
1212

13-
uv run python starter.py
13+
uv run starter.py
1414

1515
The starter terminal should complete with the hello result and the worker terminal should show the logs with the
1616
propagated user ID contextual information flowing through the workflows/activities.

custom_converter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ This sample shows how to make a custom payload converter for a type not natively
55
To run, first see [README.md](../README.md) for prerequisites. Then, run the following from this directory to start the
66
worker:
77

8-
uv run python worker.py
8+
uv run worker.py
99

1010
This will start the worker. Then, in another terminal, run the following to execute the workflow:
1111

12-
uv run python starter.py
12+
uv run starter.py
1313

1414
The workflow should complete with the hello result. If the custom converter was not set for the custom input and output
1515
classes, we would get an error on the client side and on the worker side.

custom_decorator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ decorator that automatically configures an activity to heartbeat twice as freque
66
To run, first see [README.md](../README.md) for prerequisites. Then, run the following from this directory to start the
77
worker:
88

9-
uv run python worker.py
9+
uv run worker.py
1010

1111
This will start the worker. Then, in another terminal, run the following to execute the workflow:
1212

13-
uv run python starter.py
13+
uv run starter.py
1414

1515
The workflow will be started, and then after 5 seconds will be sent a signal to cancel its forever-running activity.
1616
The activity has a heartbeat timeout set to 2s, so since it has the `@auto_heartbeater` decorator set, it will heartbeat

0 commit comments

Comments
 (0)