nikdoof.com

/posts/ 2014/python-packaging-the-right-way

Python packaging the right way

Feb 20, 2014

#python

Warning: This post was written 3927 days ago, and may contain incorrect information, outdated opinions, and incorrect language due to my age at the time. Opinions in this post are not representative of who I am as a person today.

Last night I spent an hour or so packaging up some Python I made to scratch an itch into a distributable module. Packaging has never been my strong point and I always ended up making a fiddly setup.py that had some minor problems or didn’t work as expected. This time was especially noteworthy as I had a product that was both Python 2.7 and Python 3.3 compatible.

Thankfully Jeff Knupp posted about open sourcing a python project the right way (archive.org), which covers getting your project setup right, making it easily testable, and getting it working on TravisCI.

So, my project is live on GitHub (archive.org), is it useful? Probably not, but at least i’ve put it out there incase people want to use it or improve on it. Next on the todo list is some better documentation and more tests.