Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twine reports "InvalidDistribution: Metadata is missing required fields: Name, Version." #68

Closed
psychemedia opened this issue May 7, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@psychemedia
Copy link

Using the template, a build seems to work fine, except for when I try to push to pypi with twine:

python -m build
twine upload dist/*

gives:

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.    

The package.json file has name and version both set.

@psychemedia psychemedia added the bug Something isn't working label May 7, 2024
Copy link

welcome bot commented May 7, 2024

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@krassowski
Copy link
Member

I do not see this problem. pypi/warehouse#15611 suggests that this may happen when an outdated pkginfo is installed. Can you check it you have the latest version of it and twine?

@psychemedia
Copy link
Author

pkginfo, twine and hatchling were all latest releases. Downgrading to hatchling==1.21.1 gives a build that twine seems to be happy with.

@psychemedia
Copy link
Author

Ah... seems like pkginfo in was outdated in the env twine was calling from...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants