Skip to content

Bump version: 0.6.0 → 0.6.1 #243

Bump version: 0.6.0 → 0.6.1

Bump version: 0.6.0 → 0.6.1 #243

name: Python packages linux
on:
release:
types: [published]
push:
jobs:
build:
name: build python packages
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux_2_28_x86_64
strategy:
fail-fast: false
matrix:
python-version: ['cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312']
pyside_ver: ['6.6.1']
steps:
- name: add Python and qt dir to path
run: |
echo "/opt/python/${{ matrix.python-version }}/bin" >> $GITHUB_PATH
echo "/Qt/${{ matrix.pyside_ver }}/gcc_64/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
with:
submodules: true
- name: Build for Python ${{ matrix.python-version }}
run: |
dnf install -y /usr/lib64/libxkbcommon.so.0 /usr/lib64/libxslt.so.1 /usr/bin/llvm-config clang
git config --global --add safe.directory '*'
python -m pip install --upgrade "pip" "meson" "ninja" "numpy" "meson-python>=0.14.0" "build" "wheel" "twine" "auditwheel" "aqtinstall"
python -m pip install "PySide6==${{ matrix.pyside_ver }}"
python -m pip install \
--index-url=http://download.qt.io/official_releases/QtForPython/ \
--trusted-host download.qt.io \
"shiboken6_generator==${{ matrix.pyside_ver }}"
aqt install-qt -O /Qt linux desktop ${{ matrix.pyside_ver }}
LD_LIBRARY_PATH=/Qt/${{ matrix.pyside_ver }}/gcc_64/lib python3 -m build --wheel --no-isolation .
rename 'linux_x86_64' 'manylinux_2_28_x86_64' dist/*.whl
- name: Save packages as artifacts
uses: actions/upload-artifact@v3
with:
name: sciqlopplots-linux-${{ matrix.python-version }}
path: dist/*
- name: Publish on PyPi
if: github.event.release
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload --skip-existing dist/*
- name: Publish on PyPi (test)
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }}
run: twine upload --repository testpypi --skip-existing dist/*