build(bindings/python): migrate from jiff 0.2 to jiff 1.0 once PyO3 adds jiff 1 support

Aperta
#8,886 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, rust
Ambito
backend

Direzione di ricerca

The change lives in bindings/python/Cargo.toml (pyo3 jiff-02 feature, jiff 0.2.15) and the bridge functions timestamp_from_jiff and timestamp_to_jiff in bindings/python/src/utils.rs, with call sites in options.rs, metadata.rs and operator.rs. Blocked upstream until PyO3 PR #6584 ships jiff 1.0 support, so first check that PR's status. Done means the bridge is removed and the Python bindings build and pass their tests on jiff 1.0.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bindings/python dependencies enhancement

Summary

PR #8761 upgraded opendal-core to jiff 1.0.1, but bindings/python still depends directly on jiff = "0.2.15" and enables PyO3's jiff-02 feature (bindings/python/Cargo.toml). To bridge the version split, bindings/python/src/utils.rs currently converts between jiff 0.2 and opendal_core::raw::Timestamp (jiff 1.0) via SignedDuration.

Upstream blocker

  • pyo3 0.30.1 only supports jiff ^0.2 via the jiff-02 feature.
  • PyO3/pyo3#6584 merged on Nov 23, adding the jiff feature for jiff 1. The Python binding migration still awaits a PyO3 release with that feature. The latest release on crates.io is 0.30.1, which supports only jiff 0.2 via jiff-02. (AI-generated update.)

Scope once unblocked

  1. Upgrade pyo3 in bindings/python/Cargo.toml to a release with jiff 1.0 support and switch from jiff-02 to the new jiff 1.0 feature.
  2. Upgrade jiff in bindings/python/Cargo.toml from 0.2.15 to 1.0.
  3. Simplify or remove the manual timestamp_from_jiff / timestamp_to_jiff bridge in bindings/python/src/utils.rs and update call sites in bindings/python/src/options.rs, bindings/python/src/metadata.rs, and bindings/python/src/operator.rs.

Drafted with AI assistance (Gemini 4 Neon) and verified against apache/opendal and PyO3/pyo3#6584.

Lingua principale
Rust
Stelle
5.5k
Fork
869
Merge medio
8h 2m
PR unite (30g)
862

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/opendal

Tutte le issue di apache/opendal

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.