Raise the minimum fsspec to 2024.5.0 in 2.4

Aperta Adatta ai principianti
#1,687 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Inizia in pyproject.toml: imposta i minimi di fsspec, s3fs e gcsfs a 2024.5.0 e controlla se adlfs richiede un minimo corrispondente. Leggi #1686 per la normalizzazione dei percorsi locali che consente di eliminare i rami old-fsspec, poi semplifica i casi precedenti a 2024.5.0 in test_path_confinement.py. È completato quando i nuovi minimi sono dichiarati, il job CI delle dipendenze minime passa e i test dei percorsi non si diramano più sul vecchio comportamento di fsspec.

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

Descrizione

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.
Lingua principale
Python
Stelle
198
Fork
103
Merge medio
6g 1h
PR unite (30g)
10

Preparare l'ambiente

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

Tutte le issue di datajoint/datajoint-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.