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

オープン
#8,886 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, rust
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
5.5k
フォーク
869
平均マージ
8時間 2分
マージ済み PR(30日)
862

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/opendal のほかの issue

apache/opendal の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。