Pypi bundle package distribution
In order to create a new version,
-
Modify the version number in setup.py and CMakeList.txt
-
Create a release on GitHub, and give it a new tag (e.g.
v0.8.3
) Wheels will be uploaded to pypi -
Manually build and upload the macOS_arm64 wheel:
Note
|
the wheel build on an Intel Mac may try and fail to load Intel iPPIcv), this is why it shall be built on an M1 Mac. |
Build / Mac arm64 via cibuildwheel
rm -rf _skbuild
CIBW_ARCHS_MACOS="arm64" pipx run cibuildwheel --platform=macos && say "wheel build finished"
twine upload wheelhouse/*
or
CIBW_ARCHS_MACOS="arm64" CIBW_BUILD="cp311-* cp312-*" pipx run cibuildwheel --platform=macos
Build and deploy to pypi via twine (obsolete)
python3 -m build --wheel --sdist .
python3 -m build --sdist .
# or
python3 -m build .
# then
twine upload dist/*
login = token password = …api_token…