避免将包重新上传到 PyPI

Avoid Package re-upload to PyPI

如果我已经在 GitHub 推送了最新版本,是否需要在 PyPI 重新上传我的包? 他们不能同步吗?

是的,你必须将它上传到 PyPI,但你可以使用 Github 操作来帮助你在推送较新版本时同步它。
我觉得this and this may help you, and if you just want an example, you can check this出来了。

您可以在发布较新版本时使用 Github 操作进行同步。 您还可以前往 this 了解更多有关 GitHub 操作的信息