你可以如何重命名我的PyPI项目以修复其大小写问题?

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

How can I rename my project on PyPI to fix its capitalization?

问题

我的PyPI项目名称有错误。具体来说,它的大小写不正确。例如,我使用了名字Project,而不是project

我该如何在PyPI上更改名称以纠正这个错误?

英文:

My PyPI project has an error in its name. Concretely, it has the wrong capitalization. So, e.g., instead of project I used the name Project.

How can I change the name on PyPI to fix this mistake?

答案1

得分: 0

A) 更改大写形式

如果只是大小写错误,请在项目的 pyproject.toml 中修复它,使用 发布后标识符 更新版本,然后重新构建并再次发布。

B) 重命名项目

不支持在Web界面中重命名项目。相反,您需要以不同的名称重新发布项目。这将创建一个新项目,具有正确的名称,与您的帐户关联。与A)不同,您无需增加项目版本,否则步骤相同。

注意:如果名称已经使用了一段时间,您可能希望显式标记旧的软件包名称为过时。请参阅在PyPI上重命名软件包的推荐方法pypi-rename cookiecutter模板

英文:

How to change the name of a project depends on what kind of change is made:

A) Changing the capitalization

If only the capitalization is wrong, simply fix it in your project's pyproject.toml, update the version with a post release signifier, rebuild, and publish again.

B) Renaming the project

Renaming projects in the web interface is not supported. Instead, you need to publish the project again, under a different name. This will create a new project with the correct name, associated to your account. Contrary to A), you do not need to increment the project version, otherwise the steps are identical.

Note: You may want to explicitly mark the old package name as obsolete if the name was in use for a longer time. See the recommended way to rename a package on PyPI and the pypi-rename cookiecutter template.

huangapple
  • 本文由 发表于 2023年7月17日 22:54:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76705698.html
匿名

发表评论

匿名网友

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

确定