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

Abierto
#8,886 0 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
18/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python, rust
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
5.5k
Forks
869
Merge medio
8 h 2 min
PR fusionados (30 d)
862

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/opendal

Todos los issues de apache/opendal

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.