DEV Community

Discussion on: 3 Things I Wish I Knew Before Publishing My First Python Package on PyPi

Collapse
 
dmerejkowsky profile image
Dimitri Merejkowsky

Other tips I whish I knew:

  • Check that your long_description renders without warnings by using a README.rst file and checking it with rst2html5.py (from the docutils package)

  • Take the time to create a release on github too, because downstream users may try and find the sources there and not on pypi

  • Use setup.cfg, poetry or flint instead of actual python code in setup.py if you can

Collapse
 
mithil467 profile image
Mithil Poojary

I can totally relate with these points. Especially the first one. Rst format can get so tricky. I had to spend a good amount of time understanding it and getting it working. Even today I have some problems with it. Like for example, centering text in Rst seems impossible!

Thanks for adding these points!