Python Packaging, the right way

Posted on February 20th, 2014


Last night I spent a 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, which covers getting your project setup right, making it easily testable, and getting it working on TravisCI.

So, my project is live on GitHub, 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.


comments powered by Disqus
Andrew Williams

Python developer, serial tinkerer, and committed geek.