(Mostly) Manually Building and Releasing python-easygraph

We choose to build Linux wheels on GitHub Actions because it’s reliable. For other platforms, we build manually on our machines, because we’ve yet to find a way to make it work on GitHub Actions.

Prerequisites

Install GitHub CLI

Please refer to GitHub CLI documentation for installation instructions.

Build for Linux x86_64

gh workflow run release-cibuildwheel.yaml -F upload=none

After the workflow finishes, download the artifacts from the workflow run page.

The artifact contains the built wheel file for Linux x86_64.

Unzip the artifact and remove anything but the .tgz source distribution and .whl wheel files with linux in the name (if applicable).

Build for other platforms

Do it manually on your machines:

python3.{7..10} setup.py build_ext # expand the command yourself, to python3.10 etc

Locate find the built .whl files.

Put all the wheel files and source distribution in a directory and upload to PyPI

Put all the wheel files and source distribution built in the previous 2 steps in a directory <your_directory>, and run

python3 -m twine upload <your_directory>/*