From af2206e02c221cbeaff6ce40ec9b60dda09d8919 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Tue, 29 Oct 2024 08:31:11 +0100 Subject: [PATCH] Publish 100% rust node on pip to make it easy to install on different machine --- .github/workflows/node-hub-ci-cd.yml | 11 ++++++++--- node-hub/dora-rerun/pyproject.toml | 8 ++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 node-hub/dora-rerun/pyproject.toml diff --git a/.github/workflows/node-hub-ci-cd.yml b/.github/workflows/node-hub-ci-cd.yml index 40624f7e..7b0a4819 100644 --- a/.github/workflows/node-hub-ci-cd.yml +++ b/.github/workflows/node-hub-ci-cd.yml @@ -104,9 +104,14 @@ jobs: run: | for dir in node-hub/*/ ; do if [ -d "$dir" ]; then - if [ -f "$dir/pyproject.toml" ]; then - echo "Publishing $dir using Poetry..." - (cd "$dir" && poetry publish --build) + if [[ -f "$dir/Cargo.toml" && -f "$dir/pyproject.toml" ]]; then + echo "Publishing $dir using maturin..." + (cd "$dir" && poetry publish) + else + if [ -f "$dir/pyproject.toml" ]; then + echo "Publishing $dir using Poetry..." + (cd "$dir" && poetry publish --build) + fi fi if [ -f "$dir/Cargo.toml" ]; then diff --git a/node-hub/dora-rerun/pyproject.toml b/node-hub/dora-rerun/pyproject.toml new file mode 100644 index 00000000..79d053ee --- /dev/null +++ b/node-hub/dora-rerun/pyproject.toml @@ -0,0 +1,8 @@ +[build-system] +requires = ["maturin>=0.13.2"] +build-backend = "maturin" + +[project] +name = "dora-rerun" +# Install pyarrow at the same time of dora-rs +dependencies = ['pyarrow']