Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 84 additions & 50 deletions .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
workflow_dispatch:

jobs:
macos:
name: Build macOS
runs-on: macos-latest
windows:
name: Build Windows
runs-on: windows-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
python-version: [ '3.10' ] # TODO: Restore!
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -25,12 +25,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels (x86_64)
uses: messense/maturin-action@v1

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: x86_64
maturin-version: v0.10.6
args: --interpreter python${{ matrix.python-version }} --release --out dist
args: -i python --release --out dist
- name: Install built wheel (x86_64)
run: |
pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
Expand All @@ -41,44 +40,79 @@ jobs:
name: wheels
path: dist

linux:
name: Build Linux
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Build Wheels
uses: messense/maturin-action@v1
with:
target: x86_64
maturin-version: v0.10.6
manylinux: auto
args: --interpreter python${{ matrix.python-version }} --release --out dist
before-script-linux: |
# If we're running on rhel centos, install needed packages.
if command -v yum &> /dev/null; then
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
# If we're running on i686 we need to symlink libatomic
# in order to build openssl with -latomic flag.
if [[ ! -d "/usr/lib64" ]]; then
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
fi
else
# If we're running on debian-based system.
apt update -y && apt-get install -y libssl-dev openssl pkg-config
fi
- name: Install built wheel
run: |
pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
python -c "import pycoverm"
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
# macos:
# name: Build macOS
# runs-on: macos-latest
# strategy:
# matrix:
# python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: rust-toolchain
# uses: actions-rs/toolchain@v1.0.6
# with:
# profile: minimal
# toolchain: stable
# default: true
# - name: Setup Python ${{ matrix.python-version }} environment
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Build wheels (x86_64)
# uses: messense/maturin-action@v1
# with:
# target: x86_64
# maturin-version: v0.10.6
# args: --interpreter python${{ matrix.python-version }} --release --out dist
# - name: Install built wheel (x86_64)
# run: |
# pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
# python -c "import pycoverm"
# - name: Upload wheels
# uses: actions/upload-artifact@v2
# with:
# name: wheels
# path: dist
#
# linux:
# name: Build Linux
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# architecture: x64
# - name: Build Wheels
# uses: messense/maturin-action@v1
# with:
# target: x86_64
# maturin-version: v0.10.6
# manylinux: auto
# args: --interpreter python${{ matrix.python-version }} --release --out dist
# before-script-linux: |
# # If we're running on rhel centos, install needed packages.
# if command -v yum &> /dev/null; then
# yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
# # If we're running on i686 we need to symlink libatomic
# # in order to build openssl with -latomic flag.
# if [[ ! -d "/usr/lib64" ]]; then
# ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
# fi
# else
# # If we're running on debian-based system.
# apt update -y && apt-get install -y libssl-dev openssl pkg-config
# fi
# - name: Install built wheel
# run: |
# pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
# python -c "import pycoverm"
# - name: Upload wheels
# uses: actions/upload-artifact@v2
# with:
# name: wheels
# path: dist
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pycoverm"
version = "0.6.0"
version = "0.6.1"
authors = ["Antonio Camargo <antoniop.camargo@gmail.com>"]
edition = "2021"
readme = "README.md"
Expand All @@ -17,3 +17,4 @@ ndarray = "0.15.6"
numpy = "0.20.0"
pyo3 = { version = "0.20", features = ["extension-module"] }
rust-htslib = "0.45.0"
openssl = { version = "0.10", features = ["vendored"] }