A distribution package wraps a Python package for sharing. It carries author information, compatible versions, licensing, tests, dependencies, and installation instructions. Distinguish it from the Python package inside it: both commonly use the same name, but the outer directory contains the inner package directory. section 8.10
A minimal distribution workflow includes:
- Create the package metadata, traditionally in setup.py. section 8.10
- Use Poetry to create, build, and publish the distribution package. section 8.10
- Register for PyPI credentials before uploading there. section 8.10
$ poetry new mypackage #1 $ cd mypackage #2 $ cp -R ~/mypackage-code/* mypackage #3 $ poetry build #4 $ poetry publish #5
Follow the compact Poetry command sequence from project creation through building and publishing. section 8.10

