Browse Source

Publish 100% rust node on pip to make it easy to install on different machine

tags/v0.3.7rc1
haixuanTao 1 year ago
parent
commit
af2206e02c
2 changed files with 16 additions and 3 deletions
  1. +8
    -3
      .github/workflows/node-hub-ci-cd.yml
  2. +8
    -0
      node-hub/dora-rerun/pyproject.toml

+ 8
- 3
.github/workflows/node-hub-ci-cd.yml View File

@@ -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


+ 8
- 0
node-hub/dora-rerun/pyproject.toml View File

@@ -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']

Loading…
Cancel
Save