-
Install build tools:
pip install build twine
-
Build the package:
python -m build
-
Upload to PyPI (requires PyPI account and API token):
twine upload dist/*Or use Test PyPI first:
twine upload --repository testpypi dist/* -
Create API token at pypi.org/manage/account/token/.