diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8c982c2..966b98fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,7 @@ jobs: strategy: matrix: platform: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.7"] fail-fast: false runs-on: ${{ matrix.platform }} @@ -80,3 +81,25 @@ jobs: asset_path: archive.zip asset_name: dora-${{ github.ref_name }}-x86_64-${{ runner.os }}.zip asset_content_type: application/zip + + # Publish Dora Node Python API + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install maturin==0.13.2 + - name: Publish wheel + shell: bash + env: + MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }} + run: | + cd apis/python/node + maturin publish \ + --no-sdist \ + --skip-existing \ + -o wheels \ + -i python \ + --username __token__ \ diff --git a/Cargo.toml b/Cargo.toml index 5869b290..f281ff4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,19 +1,19 @@ [workspace] members = [ - "apis/c/*", - "apis/python/node", - "apis/rust/*", - "apis/rust/operator/macros", - "apis/rust/operator/types", - "binaries/*", - "examples/rust-dataflow/*", - "examples/c++-dataflow/*-rust-*", - "examples/iceoryx/*", - "libraries/communication-layer", - "libraries/core", - "libraries/message", - "libraries/extensions/telemetry/*", - "libraries/extensions/zenoh-logger", + "apis/c/*", + "apis/python/node", + "apis/rust/*", + "apis/rust/operator/macros", + "apis/rust/operator/types", + "binaries/*", + "examples/rust-dataflow/*", + "examples/c++-dataflow/*-rust-*", + "examples/iceoryx/*", + "libraries/communication-layer", + "libraries/core", + "libraries/message", + "libraries/extensions/telemetry/*", + "libraries/extensions/zenoh-logger", ] [package] diff --git a/apis/python/node/Cargo.toml b/apis/python/node/Cargo.toml index b34c4477..00c88ab3 100644 --- a/apis/python/node/Cargo.toml +++ b/apis/python/node/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0" [dependencies] dora-node-api = { path = "../../rust/node" } -pyo3 = { version = "0.16", features = ["eyre", "abi3-py38"] } +pyo3 = { version = "0.16", features = ["eyre", "abi3-py37"] } eyre = "0.6" serde_yaml = "0.8.23" flume = "0.10.14" diff --git a/apis/python/node/pyproject.toml b/apis/python/node/pyproject.toml index 34a282d3..878e0b81 100644 --- a/apis/python/node/pyproject.toml +++ b/apis/python/node/pyproject.toml @@ -1,9 +1,9 @@ [build-system] -requires = ["maturin>=0.13,<0.14"] +requires = ["maturin>=0.13.2,<0.14"] build-backend = "maturin" [project] -name = "dora" +name = "dora-rs" [tool.maturin] features = ["pyo3/extension-module"]