Comments (20)
I'll push a new release after work.
For now, if anyone is blocked by this, switch to twine for upload.
from maturin.
I'm also running into this issue, but it seems to me that the correct key in pyproject.toml is in fact description
, not summary
: https://packaging.python.org/en/latest/specifications/pyproject-toml/#description
It mentions that this should be exported as summary
in the metadata of the wheel however.
Here is a log from such an upload
https://github.com/pymc-devs/nutpie/actions/runs/8360753012/job/22888798313
And the corresponding pyproject file:
https://github.com/pymc-devs/nutpie/blob/8fdb3b69a672a08cb1cf71d9bd6f2fc79b6d3cdd/pyproject.toml
from maturin.
@ion-elgreco Can you run twine check
on that wheel file?
from maturin.
Sorry but you also need to share your binding code, at least pyproject.toml
, Cargo.toml
and readme file.
from maturin.
Hi sorry for the slow reply, after making some assumptions as to what summary
exactly is, I managed to solve the issue by changing my pyproject.toml
's description
key to summary
, everything else stayed the same. I am not very well-versed with the Python standard for metadata so I'd assume a revision was made recently? I've had this pyproject.toml set up since the beginning of the project. Thanks for the prompt reply @messense!
from maturin.
I'm also facing this issue, and it's also my understanding that description
should be the correct key.
E.x. from my project: https://github.com/wheretrue/biobear/actions/runs/8368683483/job/22915105523
from maturin.
Decided to reopen as there are others facing the same issues
from maturin.
Our releases at Delta-rs are also failing suddenly: https://github.com/delta-io/delta-rs/actions/runs/8365191045/job/22918909428#step:3:1
from maturin.
@ion-elgreco Can you unpack the wheel that fails the upload and paste it's metadata content here?
from maturin.
@messense not sure how to download the wheel from the failed action, if you have some pointers?
But from a locally built release with maturin, the description looks fine:
from maturin.
That Summary
looks fine to me?
https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata-summary
A one-line summary of what the distribution does.
from maturin.
That
Summary
looks fine to me?https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata-summary
A one-line summary of what the distribution does.
That's the confusing part, nothing changed on our side in the description between 0.16.1 and 0.16.2. Both were built with maturin 1.5.
@messense I did yesterday, twine check passed on that wheel
from maturin.
from maturin.
Maybe it's related to this pypi change: pypi/warehouse#15631
from maturin.
Looks to be re raised from there: https://github.com/pypi/warehouse/pull/15631/files#diff-631b24361675bcbc0f1aa65df703ce99f10d505f6d95a067c7e1f33fd961ee86R327
So for some reason summaries are not parsed anymore?
from maturin.
Here is a metadata file from one of the wheels that showed this error. I could upload the file using twine without issues.
Metadata-Version: 2.3
Name: nutpie
Version: 0.10.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: pyarrow >=12.0.0
Requires-Dist: pandas >=2.0
Requires-Dist: xarray >=2023.6.0
Requires-Dist: arviz >=0.15.0
Requires-Dist: fastprogress >=1.0.3
Requires-Dist: bridgestan >=2.1.2 ; extra == 'stan'
Requires-Dist: pymc >=5.5.0 ; extra == 'pymc'
Requires-Dist: numba >=0.57.1 ; extra == 'pymc'
Requires-Dist: bridgestan >=2.1.2 ; extra == 'all'
Requires-Dist: pymc >=5.5.0 ; extra == 'all'
Requires-Dist: numba >=0.57.1 ; extra == 'all'
Provides-Extra: stan
Provides-Extra: pymc
Provides-Extra: all
License-File: LICENSE
Summary: Sample Stan or PyMC models
Keywords: statistics,bayes
Author: Adrian Seyboldt <[email protected]>, PyMC Developers <[email protected]>
Author-email: PyMC Developers <[email protected]>
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Source Code, https://github.com/pymc-devs/nutpie
# nutpie: A fast sampler for Bayesian posteriors
## Installation
...
from maturin.
Can anyone try #2002? Clone this repo and switch to that branch and run cargo run upload ...
.
from maturin.
@messense I am at work atm, I can trigger a new CI though if you already push a release, since it will automatically pick up the new version; p
from maturin.
@messense Thankss!
from maturin.
@messense our releases are working again, thanks for the quick fix <3
from maturin.
Related Issues (20)
- option to use uv HOT 4
- error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported HOT 14
- pytest-step in provided GitHub action prefers remote package over local HOT 1
- `maturin generate-ci github` still generates `upload-artifact@v3`, which is deprecated HOT 2
- build meta wheel does not respect `metadata_directory` per PEP-517 HOT 2
- idea: "import hook" automatically installed with editable builds HOT 1
- Make `--find-interpreter` require opt-in to prereleases HOT 2
- Cannot run maturin
- InvalidDistribution due ot `maturin 1.5`? HOT 2
- Fails to build on LoongArch due to rustix-0.38.30 bump HOT 2
- build-backend - build-wheel - interpreter path - when cross-compiling, got path to interpreter HOT 1
- Generated wheel try to load wrong lib name (using uniffi generated bindings) HOT 1
- maturin 1.5 as backend breaks poetry add HOT 2
- Switch to `Metadata-Version: 2.3` breaks wheel upload to Azure Artifacts HOT 2
- Add JSON schema generation for pyproject.toml with schemars for SchemaStore HOT 1
- [Feature request] Add llvm tools in maturin image HOT 1
- Unable to release with crate meta description HOT 4
- Add pypy and maybe graalpy support to `generate-ci`
- Add gitlab ci support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maturin.