Visit https://test.pypi.org/account/register/ and complete the steps
Visit https://test.pypi.org/manage/account/#api-tokens and create a new API token. Don’t limit the token scope to a particular project, since you are creating a new project. Copy your token before closing the page, as you won’t be able to retrieve it again.
Upload your wheel to Test PyPI. twine will prompt you for a username and password. For the username, use token. For the password, use your token value from the previous step, including the pypi- prefix:
shell
   python3 -m twine upload --repository testpypi dist/*
Install your newly-uploaded package in a new Python project to make sure it works:
shell
    python -m pip install --index-url https://test.pypi.org/simple/ --no-deps example-pkg-YOUR-USERNAME-HERE
If all goes well, you're ready to upload your library to PyPI by following the instructions at https://packaging.python.org/tutorials/packaging-projects/#next-steps.
