I found this on my travels around the internet. Thought it would be worth looking into. https://github.com/hynek/build-and-inspect-python-package