You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With maturin 1.7.6, the wheel file generated by pip wheel won't be validated with twine check with twine >= 5.1.1.
The root cause seems that maturin 1.7.6 switched to metadata version to 2.4, which is not yet supported by twine 5.1.1 - so this might have to be addressed on twine side and it seems that there is the PR for this.
So,the reason I opened this issue is not to request fix this issue on maturin side- rather, I intend this issue to be a note for anyone else who encountered this situation. If this is inappropriate, please feel free to close this.
Your maturin version (maturin --version)
1.7.6
Your Python version (python -V)
3.9.20
Your pip version (pip -V)
pip 23.0.1
What bindings you're using
pyo3
Does cargo build work?
Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?
Yes
Steps to Reproduce
Build PyO3 project with maturin 1.7.6
Bundle it with pip wheel
Feed it to twine@5.1.1 check, then it complains as follows:
Checking dist/my-package-cp39-cp39-macosx_11_0_arm64.whl: ERROR InvalidDistribution: Metadata is missing required fields: Name, Version.
Make sure the distribution includes the files where those fields are specified, and is using a supported Metadata-Version: 1.0, 1.1, 1.2, 2.0,
2.1, 2.2, 2.3.
The text was updated successfully, but these errors were encountered:
- Use twine 5.1.1 for validating wheels until
pypa/gh-action-pypi-publish#309 is merged.
- twine 5.1.1 does not supports metadata 2.4, thus fix `maturin ==
1.7.5` since it uses metadata 2.4 until 1.7.6
PyO3/maturin#2335
nikpau
added a commit
to nikpau/pytsa
that referenced
this issue
Dec 4, 2024
Bug Description
With maturin 1.7.6, the wheel file generated by
pip wheel
won't be validated withtwine check
with twine >= 5.1.1.The root cause seems that maturin 1.7.6 switched to metadata version to
2.4
, which is not yet supported by twine 5.1.1 - so this might have to be addressed on twine side and it seems that there is the PR for this.So,the reason I opened this issue is not to request fix this issue on maturin side- rather, I intend this issue to be a note for anyone else who encountered this situation. If this is inappropriate, please feel free to close this.
Your maturin version (
maturin --version
)1.7.6
Your Python version (
python -V
)3.9.20
Your pip version (
pip -V
)pip 23.0.1
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
pip wheel
twine@5.1.1 check
, then it complains as follows:The text was updated successfully, but these errors were encountered: