Repository navigation
Commit e9a7997
authored
deltalite: add build-deltalite.yml for riscv64 wheels (#1805)
* **Package**: `deltalite`
* **Version**: `0.1.7`
* **Source**: https://github.com/PostHog/posthog (monorepo, `rust/deltalite`)
* **Docs**: https://github.com/PostHog/posthog
Compiles deltalite, a pyo3/maturin streaming partition-upsert engine for Delta Lake tables built on the `deltalake` (delta-rs) crate, into an abi3 wheel. Upstream publishes no riscv64 wheel.
Mirrors [upstream's `build-deltalite.yml`](https://github.com/PostHog/posthog/blob/f25833286a435bbcc6f4f25a4a34514e9e498628/.github/workflows/build-deltalite.yml).
**Differs from upstream**
- Sparse-checks-out `rust/` + `LICENSE` instead of the full posthog monorepo - the Cargo workspace only needs that slice.
- Copies `LICENSE` into `rust/deltalite/python/` - maturin globs licence files next to `pyproject.toml`, which sits below the repo root.
- Builds via `PyO3/maturin-action` targeting `riscv64gc-unknown-linux-gnu` - upstream's matrix has no riscv64 entry.
- Does not run upstream's own differential parity suite: `ci-deltalite-python.yml` pins `deltalake`/`pyarrow`/`duckdb` and runs it against them, but uv (0.12.13, riscv64) rejects `deltalake==1.6.3`'s only wheel (`cp310-abi3-manylinux_2_39_riscv64`, correctly served with `data-requires-python: >=3.10`) as having "no usable wheels" whenever it's resolved by name from an index - reproduced with our registry as both the extra index and, separately, the default index, ruling out an index-priority cause. `duckdb`/`pyarrow` (exact `cp312-cp312` tags, no `abi3`) and deltalite's own local-file wheel install both succeed under the same job, isolating the break to uv's abi3-forward-compatibility tag check specifically for a registry-resolved wheel. Of the 8 files under `rust/deltalite/python/tests`, 7 import `deltalake`/`pyarrow`/`duckdb` (directly or via `harness/common.py`) and can't run without them; only `test_planner.py` is self-contained (one of its 18 tests, `test_knob_kwargs_are_accepted_by_a_real_upsert`, also imports `deltalake`/`pyarrow` inline for a real round-trip and is deselected for the same reason; the other 17 pure `plan()` unit tests run).
**Matrix**: `cp312-abi3` (built once) - pyo3's `abi3-py312` feature is unconditional in `Cargo.toml`.
**Testing**
- `test_planner.py`, 17/18 tests (one deselected -- see above -- for the same registry-resolution reason).
- Wheel-level: licence-file check.
**License**: OK
Built on cp312-abi3-manylinux_riscv64; results pending CI.1 parent 66521af commit e9a7997
1 file changed
Lines changed: 147 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
0 commit comments