Debian Codegraph @

release-pypi-macos.sh

raw symbols SCIP
1 #!/bin/sh
2 set -e
3
4 python -m pip install --upgrade pip cibuildwheel twine
5
6 export CIBW_BUILD="cp310-* cp311-* cp312-* cp313-* cp314-*"
7 export CIBW_ENVIRONMENT="VERSION=\"${VERSION}\""
8 export CIBW_TEST_REQUIRES="pytest"
9 export CIBW_TEST_COMMAND="pytest {project}/python/tests"
10
11 python -m cibuildwheel --output-dir wheelhouse
12
13 if [ "$1" != "testonly" ]; then
14 # Upload to PyPI
15 python -m twine upload wheelhouse/*.whl
16 fi