Pypi:是否可以设置 git 以在 PyPi 上自动更新我的包?

Pypi: Is it possible to set up git to auto update my package on PyPi?

例如,如果我有一个已经在 Pypi 上的包 foo。我希望能够 git push origin master 在我的 setup.py 中使用新版本号,然后 Pypi 以某种方式自动更新他们的 version/source 代码。这可能吗?如果没有,是否有人可以分享一些类似的工作流程?这是我第一次为 Pypi 做贡献,我想让体验尽可能简单。

我认为如果您有兴趣,最好使用 git hooks. I'm not entirely sure that's the best rabbit hole to go down though, but here's 一些信息来开发您想要的行为。 (在没有额外检查的情况下自动发布到 Pypi 可能会导致您的包对其他用户不可靠!)

如果你正在推动 PyPI,我假设你正在开发一个开源包?如果是,为什么不在成功的新构建中使用免费的 CI 工具 Travis to run your tests and other CI tasks. One of your tasks could be to automatically upload your package to PyPI