PyPI Pitfalls
Say you just wrote a shining new Python package that you would like to submit to PyPI. Here are some pitfalls you might step on.
-
There is a testing repository you may try before submitting to the real repository.
-
No Markdown for now. Stick with reStructuredText for your README instead.
-
I accidentally put a comma at the end of
__author_email__
and turned it into atuple
. Anddistutils.command.upload
was quite upset by this. -
You must chain
upload
with a distribution command (sdist
, etc.). Yup, you cannot execute them separately. You must execute them together. -
Unlike standard commands, extra commands of
setuptools
don’t seem to be chain-able?