Put A Bow On It
I spent a bunch of time over the holiday cleaning up some Python tools I’ve written, and packaging them up for easy distribution via an internal PyPI repository.
The endless list of things to learn never ceases to amaze me, in this case I got to play with tox
for matrix testing/packaging, and twine
for publishing. Also got a lot better at writing setup.py
files and integrating quality tools like flake8
and safety
.
Here’s a couple helpful write-ups that I found when researching best practices for Python packaging:
Packaging a Python library
Python packaging pitfalls
In the course of the above, I also found it necessary to inquire about modifying an open-source tool for measuring code coverage. Turns out it was easy enough to make the modification and submit a PR to the maintainer. If you’ve never contributed to an open-source project, I highly recommend it!