blender/release/pypi
Brecht Van Lommel 92334b94a6 Release: add script to automate publishing to PyPI
This is still manual now, but the script is ready to be used by the buildbot.

Pull Request: https://projects.blender.org/blender/blender/pulls/109653
2023-07-03 16:40:49 +02:00
..
README.md Release: add script to automate publishing to PyPI 2023-07-03 16:40:49 +02:00
upload-release.py Release: add script to automate publishing to PyPI 2023-07-03 16:40:49 +02:00

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 --hash abcd1234 --check

Upload:

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