Browse Source

Fix pip installation of development dora node api python

tags/v0.3.10-rc3
haixuanTao 10 months ago
parent
commit
d2b7b6ebe2
13 changed files with 15 additions and 5 deletions
  1. +2
    -2
      .github/workflows/ci.yml
  2. +1
    -1
      .github/workflows/node_hub_test.sh
  3. +2
    -1
      README.md
  4. +1
    -1
      apis/python/node/README.md
  5. +1
    -0
      examples/camera/README.md
  6. +1
    -0
      examples/echo/README.md
  7. +1
    -0
      examples/openai-server/README.md
  8. +1
    -0
      examples/pyarrow-test/README.md
  9. +1
    -0
      examples/python-ros2-dataflow/README.md
  10. +1
    -0
      examples/reachy2/README.md
  11. +1
    -0
      examples/rerun-viewer/README.md
  12. +1
    -0
      examples/speech-to-speech/README.md
  13. +1
    -0
      examples/vlm/README.md

+ 2
- 2
.github/workflows/ci.yml View File

@@ -320,7 +320,7 @@ jobs:
dora new test_python_project --lang python --internal-create-with-path-dependencies
cd test_python_project
uv venv --seed -p 3.11
uv run pip install -e ../apis/python/node
uv pip install -e ../apis/python/node
dora build dataflow.yml --uv
uv pip install ruff pytest

@@ -342,7 +342,7 @@ jobs:
# Run Python Node Example
echo "Running Python Node Example"
uv venv --seed -p 3.11
uv run pip install -e apis/python/node
uv pip install -e apis/python/node
dora build examples/python-dataflow/dataflow.yml --uv
dora start examples/python-dataflow/dataflow.yml --name ci-python --detach --uv
sleep 10


+ 1
- 1
.github/workflows/node_hub_test.sh View File

@@ -42,7 +42,7 @@ else
else
if [ -f "$dir/pyproject.toml" ]; then
echo "CI: Installing in $dir..."
uv venv --seed -p 3.10
uv venv --seed -p 3.11
uv pip install .
echo "CI: Running Linting in $dir..."
uv run ruff check .


+ 2
- 1
README.md View File

@@ -109,8 +109,9 @@ A lot of guides are available on [this section](https://dora-rs.ai/docs/guides/)
1. Run some Python examples (A venv must be activated):

```bash
cd dora/examples/python-dataflow
cd examples/python-dataflow
uv venv --seed
uv pip install -e ../../apis/python/node
dora build dataflow.yml --uv
dora run dataflow.yml --uv
```


+ 1
- 1
apis/python/node/README.md View File

@@ -6,7 +6,7 @@ To build the Python module for development:

```bash
uv venv --seed -p 3.11
uv run pip install -e .
uv pip install -e .
```

## Type hinting


+ 1
- 0
examples/camera/README.md View File

@@ -4,6 +4,7 @@ Make sure to have, dora and pip installed.

```bash
uv venv -p 3.11 --seed
uv pip install -e ../../apis/python/node
dora build dataflow.yml --uv
dora run dataflow.yml --uv
```

+ 1
- 0
examples/echo/README.md View File

@@ -4,6 +4,7 @@ Make sure to have, dora, uv and cargo installed.

```bash
uv venv -p 3.11 --seed
uv pip install -e ../../apis/python/node
dora build dataflow.yml --uv
dora run dataflow.yml --uv
```

+ 1
- 0
examples/openai-server/README.md View File

@@ -8,6 +8,7 @@ Make sure to have, dora, uv and cargo installed.

```bash
uv venv -p 3.11 --seed
uv pip install -e ../../apis/python/node
dora build dataflow.yml --uv
dora run dataflow.yml --uv



+ 1
- 0
examples/pyarrow-test/README.md View File

@@ -4,6 +4,7 @@ Make sure to have, dora, uv and cargo installed.

```bash
uv venv -p 3.11 --seed
uv pip install -e ../../apis/python/node
dora build dataflow.yml --uv
dora run dataflow.yml --uv
```

+ 1
- 0
examples/python-ros2-dataflow/README.md View File

@@ -15,6 +15,7 @@ source /opt/ros/humble/setup.bash && ros2 run turtlesim turtlesim_node &
source /opt/ros/humble/setup.bash && ros2 run examples_rclcpp_minimal_service service_main &

# cd examples/python-ros2-dataflow
uv pip install -e ../.../apis/python/node
dora build dataflow.yml --uv
dora run dataflow.yml --uv
```

+ 1
- 0
examples/reachy2/README.md View File

@@ -20,6 +20,7 @@ cd dora/examples/reachy2
```bash
# Make sure to not be in a virtual environment
uv venv --seed -p 3.11
uv pip install -e ../../apis/python/node
dora build demo-dev.yml --uv
dora run demo-dev.yml --uv



+ 1
- 0
examples/rerun-viewer/README.md View File

@@ -6,6 +6,7 @@ This examples shows how to create and connect dora to rerun.

```bash
uv venv -p 3.11 --seed
uv pip install -e ../../apis/python/node
dora build dataflow.yml --uv
dora run dataflow.yml --uv
```

+ 1
- 0
examples/speech-to-speech/README.md View File

@@ -4,6 +4,7 @@ Make sure to have, dora, pip and cargo installed.

```bash
uv venv --seed -p 3.11
uv pip install -e ../../apis/python/node
dora build kokoro-dev.yml
dora run kokoro-dev.yml
```

+ 1
- 0
examples/vlm/README.md View File

@@ -5,6 +5,7 @@ Make sure to have, dora, uv and cargo installed.
```bash
cd examples/vlm
uv venv -p 3.11 --seed
uv pip install -e ../../apis/python/node
dora build qwen2-5-vl-vision-only-dev.yml --uv
dora run qwen2-5-vl-vision-only-dev.yml --uv
```


Loading…
Cancel
Save