add python 3.10 to pypi builds

This commit is contained in:
Arne Morten Kvarving 2022-03-07 12:23:58 +01:00
parent 617e34fbbb
commit 302e7e7d41
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,7 @@ export PYTHON36=/opt/python/cp36-cp36m/bin/python
export PYTHON37=/opt/python/cp37-cp37m/bin/python
export PYTHON38=/opt/python/cp38-cp38/bin/python
export PYTHON39=/opt/python/cp39-cp39/bin/python
export PYTHON310=/opt/python/cp310-cp310/bin/python
/bin/bash /tmp/opm-common/python/setup-docker-image.sh
@ -46,5 +47,10 @@ cmake3 -DPYTHON_EXECUTABLE=${PYTHON39} -DBOOST_INCLUDEDIR=/usr/include/boost169
./setup-package.sh
${PYTHON39} -m auditwheel repair python/dist/*cp39*.whl
cmake3 -DPYTHON_EXECUTABLE=${PYTHON310} -DBOOST_INCLUDEDIR=/usr/include/boost169 -DBOOST_LIBRARYDIR=/usr/lib64/boost169 \
-DOPM_ENABLE_PYTHON=ON -DOPM_PYTHON_PACKAGE_VERSION_TAG=${VERSION_TAG} ..
./setup-package.sh
${PYTHON310} -m auditwheel repair python/dist/*cp310*.whl
# Example of upload
# /usr/bin/python3 -m twine upload --repository testpypi wheelhouse/*

View File

@ -21,3 +21,5 @@ ${PYTHON38} -m pip install pip --upgrade
${PYTHON38} -m pip install wheel setuptools twine pytest-runner auditwheel
${PYTHON39} -m pip install pip --upgrade
${PYTHON39} -m pip install wheel setuptools twine pytest-runner auditwheel
${PYTHON310} -m pip install pip --upgrade
${PYTHON310} -m pip install wheel setuptools twine pytest-runner auditwheel