(Mostly) Manually Building and Releasing python-easygraph#
We build Linux wheels on GitHub Actions due to its reliability. For other platforms, we manually build on our local machines, as we haven’t yet found a way to automate this process 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
Once the workflow completes, download the artifacts from the workflow run page.
The artifact contains the built wheel file for Linux x86_64.
Unzip the artifact and retain only the .tgz
source
distribution and .whl
wheel files with linux
in their names (if
applicable), discarding anything else.
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#
Place all the wheel files and source distributions generated in the previous two steps
in one directory <your_directory>
and run
python3 -m twine upload <your_directory>/*