blender/release/pypi
Campbell Barton 4f1817cc18 Cleanup: declare __all__ for Python scripts
Declare all to make public public API's explicit and
help detect unused code.
2025-01-06 16:45:36 +11:00
..
README.md
upload-release.py

PyPI Release Publishing

Setup

Install Twine.

pip3 install twine

Create ~/.pypirc with the following contents. Token is available in same place as other credentials used for publishing releases.

[distutils]
  index-servers =
    pypi
    bpy
[pypi]
  username = __token__
  password = <SECRET_PYPI_TOKEN>
[bpy]
  repository = https://upload.pypi.org/legacy/
  username = __token__
  password = <SECRET_PYPI_TOKEN>

Release

Trigger release buildbot build with Python Module and Package Delivery enabled. Check download page for Git hash.

Run checks:

./upload-release.py --version X.X.X --git-hash abcd1234 --check

Upload:

./upload-release.py --version X.X.X --git-hash abcd1234