我运行twine upload时遇到错误。

huangapple go评论57阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年3月7日 23:44:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/75664153.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定