mne-tools / mne-bids

MNE-BIDS is a Python package that allows you to read and write BIDS-compatible datasets with the help of MNE-Python.
https://mne.tools/mne-bids/
BSD 3-Clause "New" or "Revised" License
131 stars 86 forks source link

InvalidDistribution: Metadata is missing required fields: Name, Version. #1237

Closed sappelhoff closed 6 months ago

sappelhoff commented 6 months ago

Any idea why the CI fails for us here since today? There was no new release of twine, yet it just started to complain now via twine check.

https://github.com/mne-tools/mne-bids/actions/runs/8305286633/job/22731989944#step:7:1

... we DO define name and version in pyproject.toml: https://github.com/mne-tools/mne-bids/blob/ebb14288f15d50010c494a51cb2a0704937a80bc/pyproject.toml#L6

image
sappelhoff commented 6 months ago

Maybe it has to do with the recent release of Hatch 🤔 https://github.com/pypa/hatch/releases/tag/hatch-v1.9.4

sappelhoff commented 6 months ago

or rather: hatching? 🤔

https://pypi.org/project/hatchling/#history

image
sappelhoff commented 6 months ago

@ofek do you perhaps have an idea? 🤔

hoechenberger commented 6 months ago

@sappelhoff hatchling 1.22.2 fixes a "regression when loading metadata from source distributions", so I would think that this addresses the issue here.

ofek commented 6 months ago

No issue, the ecosystem was just not quite prepared for metadata 2.3 https://github.com/pypa/hatch/issues/1329#issuecomment-2002293127