- bump version in
setup.py
python3 setup.py sdist bdist_wheel
auditwheel repair dist/minari-*-cp39-cp39-linux_x86_64.whl --plat manylinux_2_34_x86_64
mv wheelhouse/* dist
rm dist/minari-*-cp39-cp39-linux_x86_64.whl
twine upload --repository pypi dist/*
rm -r build dist wheelhouse minari.egg-info
On Ubuntu 22.04, you can follow https://levelup.gitconnected.com/how-to-deploy-a-cython-package-to-pypi-8217a6581f09 but using auditwheel repair dist/minari-0.2.0-cp39-cp39-linux_x86_64.whl --plat manylinux_2_34_x86_64
.
Ideally we'd use a Docker container to avoid OS x toolchain compatibility issues, see pypa/auditwheel#291 (comment)