Raise the minimum fsspec to 2024.5.0 in 2.4

オープン 初心者向け
#1,687 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

pyproject.toml から始めます。fsspec、s3fs、gcsfs の下限を 2024.5.0 に設定し、adlfs に一致する下限が必要か確認します。#1686 を読んで、old-fsspec 分岐を削除できるようにするローカルパス正規化を確認し、test_path_confinement.py の 2024.5.0 より前のケースを簡素化します。新しい下限が宣言され、最小依存関係の CI ジョブが通り、パステストが古い fsspec の動作で分岐しなくなったら完了です。

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

説明

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.
主要言語
Python
スター
198
フォーク
103
平均マージ
6日 1時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

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

datajoint/datajoint-python のほかの issue

datajoint/datajoint-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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