Skip to content

Commit 019125e

Browse files
committed
eclipse-zenoh: Add version 1.10.0
Build the riscv64 wheel for the Zenoh Python API from the upstream zenoh-python checkout at tag 1.10.0, mirroring the build-linux job of upstream's release.yml narrowed to manylinux_riscv64. pyo3 0.25.1 carries abi3-py39 unconditionally, so the build produces a single cp39-abi3 wheel on the oldest interpreter its tag claims and re-tests it on cp312, cp313 and cp314.
1 parent 5454262 commit 019125e

2 files changed

Lines changed: 129 additions & 0 deletions

File tree

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# SPDX-FileCopyrightText: 2026 The RISE Project
2+
# SPDX-License-Identifier: MIT
3+
---
4+
# This workflow is based on the `build-linux` job of
5+
# https://github.com/eclipse-zenoh/zenoh-python/blob/1.10.0/.github/workflows/release.yml
6+
name: Build eclipse-zenoh wheels (riscv64)
7+
8+
on:
9+
workflow_dispatch:
10+
inputs:
11+
version:
12+
description: 'Version glob to (re)build; empty builds every version of docs/packages/eclipse-zenoh.yaml not released yet'
13+
required: false
14+
default: ''
15+
pull_request:
16+
branches: [main]
17+
paths:
18+
- '.github/workflows/build-eclipse-zenoh.yml'
19+
- 'docs/packages/eclipse-zenoh.yaml'
20+
push:
21+
branches: [main]
22+
paths:
23+
- '.github/workflows/build-eclipse-zenoh.yml'
24+
- 'docs/packages/eclipse-zenoh.yaml'
25+
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
28+
cancel-in-progress: true
29+
30+
permissions:
31+
contents: read # to fetch code (actions/checkout)
32+
33+
env:
34+
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
35+
36+
jobs:
37+
setup:
38+
uses: $/.github/workflows/_setup.yml
39+
with:
40+
package: eclipse-zenoh
41+
version: ${{ inputs.version }}
42+
43+
build_wheels:
44+
needs: [setup]
45+
if: needs.setup.outputs.versions != '[]'
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
version: ${{ fromJSON(needs.setup.outputs.versions) }}
50+
name: Build eclipse-zenoh ${{ matrix.version }} cp39-abi3-manylinux_riscv64
51+
runs-on: ubuntu-24.04-riscv
52+
timeout-minutes: 720
53+
54+
env:
55+
ECLIPSE_ZENOH_VERSION: ${{ matrix.version }}
56+
57+
steps:
58+
- name: Checkout zenoh-python ${{ env.ECLIPSE_ZENOH_VERSION }}
59+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
60+
with:
61+
repository: eclipse-zenoh/zenoh-python
62+
ref: ${{ env.ECLIPSE_ZENOH_VERSION }}
63+
persist-credentials: false
64+
65+
- name: Build wheels
66+
uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0
67+
with:
68+
output-dir: wheelhouse/
69+
env:
70+
# pyo3's abi3-py39 feature makes this one wheel; it is built on cp39,
71+
# the oldest interpreter its tag claims, and re-tested on the newer
72+
# ones via find_compatible_wheel. cp314t is dropped: pyo3 0.25.1
73+
# predates CPython 3.14. musllinux is dropped: rustup.rs ships no
74+
# riscv64 musl toolchain.
75+
CIBW_BUILD: >-
76+
cp39-manylinux_riscv64 cp312-manylinux_riscv64
77+
cp313-manylinux_riscv64 cp314-manylinux_riscv64
78+
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
79+
# zenoh-python ships no [tool.cibuildwheel], so the Rust toolchain its
80+
# maturin backend needs is installed in-container here; the version is
81+
# the one rust-toolchain.toml pins.
82+
CIBW_BEFORE_ALL_LINUX: >-
83+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
84+
CIBW_ENVIRONMENT_LINUX: >-
85+
PATH="$PATH:$HOME/.cargo/bin"
86+
PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/
87+
CIBW_TEST_REQUIRES: pytest fixtures
88+
# The three stubs are what tests/stubs_check.py reads; staged without
89+
# the package's .py files so the installed wheel still wins the import.
90+
CIBW_TEST_SOURCES: >-
91+
tests zenoh/__init__.pyi zenoh/ext.pyi zenoh/handlers.pyi
92+
# tests/examples_check.py is left out: it drives ~30 concurrent example
93+
# processes over multicast scouting, which cross-talks between jobs on
94+
# a shared runner.
95+
CIBW_TEST_COMMAND: >-
96+
python tests/stubs_check.py &&
97+
python -m pytest -v
98+
tests/test_serializer.py
99+
tests/test_cancellation_token.py
100+
tests/test_session.py
101+
tests/test_timestamp_stack.py
102+
103+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
104+
with:
105+
name: eclipse-zenoh-${{ env.ECLIPSE_ZENOH_VERSION }}-cp39-abi3-manylinux_riscv64
106+
path: wheelhouse/*.whl
107+
if-no-files-found: error
108+
109+
publish:
110+
name: Publish eclipse-zenoh ${{ matrix.version }}
111+
needs: [setup, build_wheels]
112+
if: needs.setup.outputs.versions != '[]'
113+
strategy:
114+
fail-fast: false
115+
matrix:
116+
version: ${{ fromJSON(needs.setup.outputs.versions) }}
117+
permissions:
118+
contents: write
119+
pull-requests: write
120+
uses: $/.github/workflows/_publish-wheel.yml
121+
secrets:
122+
app-private-key: ${{ secrets.RISEPROJECT_APP_PRIVATE_KEY }}
123+
with:
124+
artifact-pattern: eclipse-zenoh-${{ matrix.version }}-*-manylinux_riscv64

‎docs/packages/eclipse-zenoh.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package-name: eclipse-zenoh
2+
source-code: https://github.com/eclipse-zenoh/zenoh-python
3+
license: EPL-2.0 OR Apache-2.0
4+
versions:
5+
- version: 1.10.0

0 commit comments

Comments
 (0)