Skip to content

fix error for 32bit systems #95

fix error for 32bit systems

fix error for 32bit systems #95

Workflow file for this run

name: Deploy
on: [push, pull_request]
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wheels:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
archs: auto
- os: macos-latest
archs: x86_64 arm64
- os: ubuntu-latest
archs: aarch64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Set up QEMU to build non-native architectures
if: ${{ matrix.archs == 'aarch64' }}
uses: docker/setup-qemu-action@v3
- name: Install required Python packages
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install 'cibuildwheel>=2.2.0' twine
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
env:
CIBW_ARCHS: ${{ matrix.archs }}
# Skip building musllinux wheels for the CPython versions for which the
# numpy version we build against doesn't have musllinux wheels on PyPI.
# Skip building for PyPy 3.8, which is deprecated upstream.
# Skip building for PyPy on i686 since NumPy 2.0 fails to build on it.
CIBW_SKIP: "cp38-musllinux_* pp38-* pp*-manylinux_i686"
- name: Check packages
run: twine check dist/*
- uses: actions/upload-artifact@v4
with:
name: "packages-${{ matrix.os }}-${{ matrix.archs }}"
path: dist/
build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install required Python packages
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install build twine
- name: Build sdist
run: |
python -m build --sdist
python -m venv test_venv
. test_venv/bin/activate
python -m pip install dist/*.tar.gz
# Test with the same command specified for cibuildwheel in pyproject.toml
python -c 'import bx, bx.align, bx.align.sitemask, bx.align.tools, bx.arrays, bx.bbi, bx.cookbook, bx.intervals, bx.intervals.operations, bx.intseq, bx.misc, bx.motif, bx.motif.io, bx.motif.logo, bx.phylo, bx.pwm, bx.seq, bx.tabular, bx_extras'
- name: Check packages
run: twine check dist/*
- uses: actions/upload-artifact@v4
with:
name: packages-sdist
path: dist/
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
path: dist
pattern: packages-*
- name: Display structure of downloaded files
run: ls -R dist/
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && github.repository_owner == 'bxlab'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}