Skip to content

Commit

Permalink
Post release 0.3.6 small fix (#638)
Browse files Browse the repository at this point in the history
Small PR to fix a small typo in the install script as well as add the
installation script within the `README.md`
  • Loading branch information
haixuanTao authored Aug 28, 2024
2 parents c6abec2 + 29f9161 commit 5e7f752
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node-hub-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
if [ -d "$dir" ]; then
if [ -f "$dir/pyproject.toml" ]; then
echo "Publishing $dir using Poetry..."
(cd "$dir" && poetry publish)
(cd "$dir" && poetry publish --build)
fi
if [ -f "$dir/Cargo.toml" ]; then
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ nodes:
IMAGE_HEIGHT: 480

- id: object-detection
build: pip install ../../node-hub/ultralytics-yolo
path: ultralytics-yolo
build: pip install ../../node-hub/dora-yolo
path: dora-yolo
inputs:
image:
source: camera/image
Expand Down Expand Up @@ -157,6 +157,14 @@ cargo install dora-cli --locked
dora --help
```

On Unix system, you can install dora without cargo with:

```bash
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/dora-rs/dora/main/install.sh | bash
dora --help
```

For more info on installation, check out [our guide](https://www.dora-rs.ai/docs/guides/Installation/installing).

## Getting Started
Expand Down
4 changes: 2 additions & 2 deletions examples/python-dataflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ dora up
dora start ./dataflow.yml (or dora start ./dataflow_dynamic.yml)
```

**Note**: if you're running the dynamic dataflow, you will need to start manually the ultralytics-yolo node:
**Note**: if you're running the dynamic dataflow, you will need to start manually the opencv-plot node:

```bash
# activate your virtual environment in another terminal
python opencv-plot --name plot
```
```
4 changes: 2 additions & 2 deletions examples/python-dataflow/dataflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ nodes:
IMAGE_HEIGHT: 480

- id: object-detection
build: pip install ../../node-hub/ultralytics-yolo
path: ultralytics-yolo
build: pip install ../../node-hub/dora-yolo
path: dora-yolo
inputs:
image:
source: camera/image
Expand Down
4 changes: 2 additions & 2 deletions examples/rerun-viewer/dataflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ nodes:
ENCODING: rgb8

- id: object-detection
build: pip install -e ../../node-hub/ultralytics-yolo
path: ultralytics-yolo
build: pip install -e ../../node-hub/dora-yolo
path: dora-yolo
inputs:
image:
source: camera/image
Expand Down
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ case $target in
*) extension=zip; need unzip;;
esac

archive="$releases/download/v$tag/$bin-v$tag-$target.$extension"
archive="$releases/download/$tag/$bin-$tag-$target.$extension"
say "Repository: $url"
say "Bin: $bin"
say "Tag: $tag"
Expand All @@ -182,6 +182,8 @@ else
download "$archive" - | tar -C "$td" -xz
fi

echo "Placing dora-rs cli in $dest/$bin"

if [ -e "$dest/$bin" ] && [ "$force" = false ]; then
err "\`$dest/$bin\` already exists"
else
Expand Down
4 changes: 1 addition & 3 deletions node-hub/dora-distil-whisper/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ pyarrow = ">= 5.0.0"
transformers = ">= 4.0.0"
accelerate = "^0.29.2"
torch = "^2.1.1"
python = "^3.7"

[tool.poetry.scripts]
dora-distil-whisper = "dora_distil_whisper.main:main"

[build-system]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"

[project]
readme = "README.md"
4 changes: 1 addition & 3 deletions node-hub/dora-echo/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ packages = [{ include = "dora_echo" }]
dora-rs = "^0.3.6"
numpy = "< 2.0.0"
pyarrow = ">= 5.0.0"
python = "^3.7"

[tool.poetry.scripts]
dora-echo = "dora_echo.main:main"

[build-system]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"

[project]
readme = "README.md"
4 changes: 1 addition & 3 deletions node-hub/dora-keyboard/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ dora-rs = "0.3.5"
numpy = "< 2.0.0"
pyarrow = ">= 5.0.0"
pynput = "^1.7.6"
python = "^3.7"

[tool.poetry.scripts]
dora-keyboard = "dora_keyboard.main:main"

[build-system]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"

[project]
readme = "README.md"
4 changes: 1 addition & 3 deletions node-hub/dora-microphone/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ dora-rs = "^0.3.6"
numpy = "< 2.0.0"
pyarrow = ">= 5.0.0"
sounddevice = "^0.4.6"
python = "^3.7"

[tool.poetry.scripts]
dora-microphone = "dora_microphone.main:main"

[build-system]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"

[project]
readme = "README.md"
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ This node is used to detect objects in images using YOLOv8.

```yaml
- id: object_detection
build: pip install ../../node-hub/ultralytics-yolo
path: ultralytics-yolo
build: pip install ../../node-hub/dora-yolo
path: dora-yolo
inputs:
image: webcam/image

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
[tool.poetry]
name = "ultralytics-yolo"
name = "dora-yolo"
version = "0.3.6"
authors = [
"Haixuan Xavier Tao <[email protected]>",
"Enzo Le Van <[email protected]>",
]
description = "Dora Node for object detection with Ultralytics YOLOv8"
description = "Dora Node for object detection with dora YOLOv8"
readme = "README.md"

packages = [{ include = "ultralytics_yolo" }]
packages = [{ include = "dora_yolo" }]

[tool.poetry.dependencies]
dora-rs = "^0.3.6"
numpy = "< 2.0.0"
ultralytics = "<= 8.2.52"
python = "^3.7"

[tool.poetry.scripts]
ultralytics-yolo = "ultralytics_yolo.main:main"
dora-yolo = "dora_yolo.main:main"

[build-system]
requires = ["poetry-core>=1.8.0"]
Expand Down
1 change: 1 addition & 0 deletions node-hub/opencv-plot/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ packages = [{ include = "opencv_plot" }]
dora-rs = "^0.3.6"
numpy = "< 2.0.0"
opencv-python = ">= 4.1.1"
python = "^3.7"

[tool.poetry.scripts]
opencv-plot = "opencv_plot.main:main"
Expand Down
1 change: 1 addition & 0 deletions node-hub/opencv-video-capture/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ packages = [{ include = "opencv_video_capture" }]
dora-rs = "^0.3.6"
numpy = "< 2.0.0"
opencv-python = ">= 4.1.1"
python = "^3.7"

[tool.poetry.scripts]
opencv-video-capture = "opencv_video_capture.main:main"
Expand Down
4 changes: 1 addition & 3 deletions node-hub/pyarrow-assert/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ packages = [{ include = "pyarrow_assert" }]
dora-rs = "^0.3.6"
numpy = "< 2.0.0"
pyarrow = ">= 5.0.0"
python = "^3.7"

[tool.poetry.scripts]
pyarrow-assert = "pyarrow_assert.main:main"

[build-system]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"

[project]
readme = "README.md"
4 changes: 1 addition & 3 deletions node-hub/pyarrow-sender/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ packages = [{ include = "pyarrow_sender" }]
dora-rs = "^0.3.6"
numpy = "< 2.0.0"
pyarrow = ">= 5.0.0"
python = "^3.7"

[tool.poetry.scripts]
pyarrow-sender = "pyarrow_sender.main:main"

[build-system]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"

[project]
readme = "README.md"
4 changes: 1 addition & 3 deletions node-hub/terminal-input/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ packages = [{ include = "terminal_input" }]
dora-rs = "^0.3.6"
numpy = "< 2.0.0"
pyarrow = ">= 5.0.0"
python = "^3.7"

[tool.poetry.scripts]
terminal-input = "terminal_input.main:main"

[build-system]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"

[project]
readme = "README.md"

0 comments on commit 5e7f752

Please sign in to comment.