-
Notifications
You must be signed in to change notification settings - Fork 308
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
Invalid distribution metadata; UNKNOWN
package name
#853
Comments
Hm. I agree that the error message could be more helpful, but I'm guessing the root cause is something in your package configuration that's resulting in Are you able to share the source code for your project? Or the contents of files like |
Thank you for the fast reply. |
UNKNOWN
package name
Thanks for sharing. I don't entirely understand what's going on, but when I ran A quick resolution seems to be adding @@ -1,6 +1,7 @@
include LICENSE.txt
include README.md
+include setup.py
include pyproject.toml
include pytest.ini
include .coverage.rc I confirmed that it's included in the sdist, and that the wheel is So, ultimately, I think this needs to be fixed in the ipypetrinet repo. Also, when I ran All that said, I do think the |
Okay, that totally makes sense, but i don't understand why Checking dist/ipypetrinet-1.0.0-py2.py3-none-any.whl: PASSED
Checking dist/index.js: InvalidDistribution: Unknown distribution format: 'index.js' So i totally get the error this time, because twine only accepts Highly appreciate your help! Thank you so much! |
Why do you want |
Well I don't really care about the folder I am wondering if the "Releasing your initial packages" part at the bottom of their |
Yeah, it looks like it is expecting a different behaviour and/or those docs were added by someone who didn't properly test the changes to the docs. Personally, for something that involved, I'd have made a .PHONY: publish clean
clean:
@rm -rf dist/ build/ **/*.pyc
publish: clean
@echo "Publishing JS assets..."
@npm login
@npm publish
@rm -rf dist/
@python -m build . >/dev/null
@echo "Checking Python metadata..."
@twine check dist/*
@echo "Publishing Python assets..."
@twine upload dist/* It does look like the JS portions care about |
Thanks for your effort! Anyways big up to you guys and thanks for your help! |
@LordHeImchen if you're satisfied, feel free to close this |
@LordHeImchen Instead of moving the
|
Alternatively, if there's a conflict between the JS and the Python use of
In that case, you'd want to add |
Well I am satisfied and publishing worked, so that's great.
However, I'll leave the issue open for @bhrutledge in order to have a look at the error message. |
Hey guys,
i have a problem when executing
twine check dist/*
. Since I am completely new to publishing packages I cannot fix this error.But one by one:
pypi
The Issue
Please describe the issue that you are experiencing.
After building the package with
python3 -m build .
aMANIFEST
,ipypetrinet-1.0.0.tar.gz
andUNKNOWN-0.0.0-py2.py3-none-any.whl
file is successfully created. After that i triedtwine check dist/*
which throws the following error:But when I unzip
UNKNOWN-0.0.0-py2.py3-none-any.whl
and look into the files, the only file containing the keywordMetadata-Version
has an appropriate Metadata-Version of2.1
. To visualize thisMETADATA
-file I will paste the first few lines below:Does anyone know how to deal with this?
Any help is appreciated! Thanks in advance.
The text was updated successfully, but these errors were encountered: