Raise the minimum fsspec to 2024.5.0 in 2.4

Aberta Para iniciantes
#1,687 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 6 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
68/100
Tipo de issue
Refatoração
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
build-system, testing

Direção de pesquisa

Comece em pyproject.toml: defina os mínimos de fsspec, s3fs e gcsfs para 2024.5.0 e verifique se adlfs precisa de um mínimo correspondente. Leia #1686 para ver a normalização de caminhos locais que permite remover os branches old-fsspec e depois simplifique os casos anteriores a 2024.5.0 em test_path_confinement.py. Concluído quando os novos mínimos estiverem declarados, o job de CI de dependências mínimas passar e os testes de caminho não ramificarem mais no comportamento antigo do fsspec.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
Python
Estrelas
198
Forks
103
Merge médio
6d 1h
PRs com merge (30d)
10

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de datajoint/datajoint-python

Todas as issues de datajoint/datajoint-python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.