Makefile: adjust PyPI packaging/upload
Since we favor the creation of a tarball with "git archive", PyPI gets
sensitive every now and then with our uploads. Since the 42.0
release, pushing the new packages to PyPI would result in Server
Errors.
This adds the PKG-INFO to the tarball that will be uploaded, which
seems to fix the current errors. Also, since it's now a single file,
it can be pushed with the "twine" command line application.
Alternatively, we could double check our file manifest, and rely
entirely on setuptools to generate the tarball. But, I'm not a big
fan of adding files to version control, and then to a manifest of any
sort.
Note: in the past, this was also necessary because of the tweaks to
the information inside the PKG-INFO file, namely the package name
(avocado -> avocado-framework).
Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
想要评论请 注册 或 登录