How to use a private PyPI index: from install to twine upload and pip install

After self-hosting, wire PyPI: create HOSTED/PROXY/GROUP, configure .pypirc and pip.conf, smoke-test with a minimal package, and fix 401 and No matching distribution.