Giter Site home page Giter Site logo

Comments (20)

messense avatar messense commented on June 18, 2024 4

I'll push a new release after work.

For now, if anyone is blocked by this, switch to twine for upload.

from maturin.

aseyboldt avatar aseyboldt commented on June 18, 2024 2

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.

messense avatar messense commented on June 18, 2024 1

@ion-elgreco Can you run twine check on that wheel file?

from maturin.

messense avatar messense commented on June 18, 2024

Sorry but you also need to share your binding code, at least pyproject.toml, Cargo.toml and readme file.

from maturin.

leeian1011 avatar leeian1011 commented on June 18, 2024

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.

tshauck avatar tshauck commented on June 18, 2024

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.

leeian1011 avatar leeian1011 commented on June 18, 2024

Decided to reopen as there are others facing the same issues

from maturin.

ion-elgreco avatar ion-elgreco commented on June 18, 2024

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.

messense avatar messense commented on June 18, 2024

@ion-elgreco Can you unpack the wheel that fails the upload and paste it's metadata content here?

from maturin.

ion-elgreco avatar ion-elgreco commented on June 18, 2024

@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: image-1.png

from maturin.

messense avatar messense commented on June 18, 2024

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.

ion-elgreco avatar ion-elgreco commented on June 18, 2024

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.

ion-elgreco avatar ion-elgreco commented on June 18, 2024

image-2.png

from maturin.

messense avatar messense commented on June 18, 2024

Maybe it's related to this pypi change: pypi/warehouse#15631

from maturin.

ion-elgreco avatar ion-elgreco commented on June 18, 2024

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.

aseyboldt avatar aseyboldt commented on June 18, 2024

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.

messense avatar messense commented on June 18, 2024

Can anyone try #2002? Clone this repo and switch to that branch and run cargo run upload ....

from maturin.

ion-elgreco avatar ion-elgreco commented on June 18, 2024

@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.

ion-elgreco avatar ion-elgreco commented on June 18, 2024

@messense Thankss!

from maturin.

ion-elgreco avatar ion-elgreco commented on June 18, 2024

@messense our releases are working again, thanks for the quick fix <3

from maturin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.