Resources on Python Packaging
01 Jul 2018On my way figuring out how to properly write unit test for my python package, I have come across the useful pages below:
- Python Packaging (official page) (comprehensive manual)
- SetupTools (official page): I read about how to use the development mode here.
- Testing Your Code from the Hitchhiker’s Guide to Python (introductory)
- Good Integration Practices from pytest
- (more to update)
Unit tests are worth the time writing to make sure your package works as you expected. I also found some commercial packages using unit tests as sample script for user to refer to (e.g. AllenNLP).