Raise the minimum fsspec to 2024.5.0 in 2.4

Abierto Apto para principiantes
#1,687 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 6 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
68/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Empieza en pyproject.toml: establece los mínimos de fsspec, s3fs y gcsfs en 2024.5.0, y comprueba si adlfs necesita un mínimo equivalente. Lee #1686 para ver la normalización de rutas locales que permite eliminar las ramas de old-fsspec, y luego simplifica los casos anteriores a 2024.5.0 en test_path_confinement.py. Está terminado cuando se declaren los nuevos mínimos, pase el job de CI de dependencias mínimas y las pruebas de rutas ya no se bifurquen según el comportamiento antiguo de fsspec.

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

Descripción

dependencies needs-discussion

Proposal

Raise the minimum fsspec from 2023.1.0 to 2024.5.0 in 2.4, and the storage extras with it (s3fs, gcsfs), which pin fsspec to their own version.

Why

Older fsspec resolves local paths differently from current releases, and the file-store code has to handle both:

  • Before 2024.5.0, LocalFileSystem._strip_protocol(".") keeps a trailing /.. A file store with location "" or "." rejected every path because of it, which #1686 fixes by normalizing both sides of the comparison.
  • In fsspec 2023, file: and local: without // are not read as a protocol, so the same path string names a different file than on current fsspec. The test in test_path_confinement.py had to be rewritten in #1686 to hold on both.

The minimum-dependency CI job catches these differences, but only after the fact. Every change to path handling has to be reasoned through on two fsspec behaviors. Releases from 2024.5.0 on behave the same as current fsspec in both respects.

Cost

  • Users on s3fs or gcsfs older than 2024.5.0 upgrade them along with fsspec. s3fs in turn pins aiobotocore, which pins botocore, so environments that hold an old boto stack would need to move it.
  • adlfs does not pin fsspec exactly and is not affected beyond the fsspec floor itself.

Scope

  • 2.4 only. 2.3.x keeps fsspec>=2023.1.0: a patch release should not force dependency upgrades, and #1686 keeps the 2.3 line working on old fsspec.
  • pyproject.toml: fsspec>=2024.5.0, s3fs>=2024.5.0, gcsfs>=2024.5.0; check whether adlfs needs a matching floor.
  • The minimum-dependency CI job picks up the new floor from pyproject.toml.
  • Once the floor is raised, the old-fsspec branches of the path tests can be simplified.
Lenguaje dominante
Python
Estrellas
198
Forks
103
Merge medio
6 d 1 h
PR fusionados (30 d)
10

Preparar el entorno

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 datajoint/datajoint-python

Todos los issues de datajoint/datajoint-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.