I published my first python package Mitype.
pip have made it so easy to install software!
This is all it takes.
pip install package_name
It is equally easy to share and distribute your awesome program through PyPI. Or is it?
I tried and failed multiple times. Publishing the package is the easy part. Getting it working the way you want it to be is not.
Say you published version 0.1 for your project. And then when you tested it out you realized that you missed to include that important database file! You have no option other than re-publishing a later version. Be careful whenever you publish that version on pypi. The same version cannot be edited or reused. You can delete it, but you cannot reuse it, even when deleted.
2. TestPyPI is your best friend
I so badly wish that I knew this earlier. You can first publish your package to test pypi, without affecting the actual index. You can also test the package version by installing it just like a regular python package.
I would publish the version and get the success message. But then when I tried installing that version, I would get an error:
ERROR: Could not find a version that satisfies the requirement mitype
I'd get so upset thinking "What went wrong?!".
But then it would work! It just takes time, sometimes about 20 minutes. No need to worry!
I am just a beginner, and Mitype was my very first project on PyPI. It was one of my very proud moments!
All of you have your own different story! What is something that you wish you knew before publishing a python package?