See the tutorial [Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/)