- Go to https://pypi.org/manage/account/
- Scroll down to "API tokens" section
- Click "Add API token"
- Give it a name like "PyInterpret Upload"
- Set scope to "Entire account" (or create project-specific after first upload)
- Copy the token (starts with
pypi-)
For safety, test on Test PyPI first:
- Get Test PyPI token: https://test.pypi.org/manage/account/
- Upload to test:
python -m twine upload --repository testpypi dist/*- Username:
__token__ - Password: Your Test PyPI token
- Test install:
pip install -i https://test.pypi.org/simple/ pyinterpretOnce test works:
python -m twine upload dist/*- Username:
__token__ - Password: Your PyPI token
Your package files are ready:
- pyinterpret-0.1.0.tar.gz (350KB)
- pyinterpret-0.1.0-py3-none-any.whl (32KB)
All validation checks passed!