英文:
I am getting an error when i run twine upload
问题
我运行了这个命令:
twine upload ./*
然后出现了这个错误:
Uploading distributions to https://upload.pypi.org/legacy/
ERROR InvalidDistribution: Unknown distribution format:
'dist'
编辑:我忘记在 dist 文件夹中运行它。
英文:
I ran this command:
twine upload ./*
and this error happened:
Uploading distributions to https://upload.pypi.org/legacy/
ERROR InvalidDistribution: Unknown distribution format:
'dist'
edit: I forgot to run it in the dist folder
答案1
得分: 0
./*
会扩展成什么?很有可能你已经以某种方式构建了你的软件包,现在有一个 dist/*
目录包含软件包文件,因此正确的命令应该是
twine upload dist/*
以上传 dist/
目录中的一个或两个文件。
英文:
Well, what does ./*
expand to? Chances are you've built your packages one way or another, and you now have a dist/*
directory with the package files, so the correct incantation would be
twine upload dist/*
to upload the one or two files in dist/
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论