In last month I worked on a side project, which is Netbox dynamic inventory script for Ansible.
After I finished 85% of unittest coverage, I moved forward to create a package on PyPI (which is the official index of pip).
Nowadays the Internet is filled with a lot of resources, so actually I will not rewrite what is already done, but this post will be just a one-stop for what I used to create my first PyPI package.
How to submit a package to PyPI - Peter Downs.
That was my main resource to create all stuff related to PyPI.
A sample Python project - Python Packaging Authority.
It's good as kick-off template for setup.py file.
reStructuredText cheatsheet - Roberto Alsina.
PyPI uses reStructuredText by default, and if you use Markdown, then you need either to find a way to convert it to rst, or just move from md to rst. And that what I did, so I needed a quick cheatsheet for rst.
Less known packaging features and tricks - Ionel Cristian Mărieș.
Nice slides has many useful tips and tricks.
Introduction to Packaging - The Hitchhiker's Guide to Packaging 1.0 documentation.
Another good resource with many details.
Writing a Package in Python - Tarek Ziadé.
This page has many useful details about packaging, sdist, and bdist.
That were the main resources beside other stuff here and there.