Skip to content

Commit

Permalink
Merge pull request #1469 from mabel-dev/#1468
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Feb 23, 2024
2 parents 98d8598 + 7a42ffd commit 9747481
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 6 deletions.
57 changes: 53 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,43 @@ jobs:
name: dist-linux-3.11
path: dist

build-linux-cp312:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/checkout@v3.5.3

- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install Python package dependencies
run: /opt/python/cp312-cp312/bin/python -m pip install --upgrade cython wheel numpy setuptools_rust

- name: Build binary wheel
run: /opt/python/cp312-cp312/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*

- name: Remove linux wheel
run: rm dist/*-linux_x86_64.whl

- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.12
path: dist

build-macos:
runs-on: macos-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@master
Expand Down Expand Up @@ -148,7 +179,7 @@ jobs:
strategy:
max-parallel: 3
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@master
Expand Down Expand Up @@ -178,7 +209,7 @@ jobs:
path: dist

upload:
needs: [build-linux-cp39, build-linux-cp310, build-linux-cp311, build-macos, build-windows]
needs: [build-linux-cp39, build-linux-cp310, build-linux-cp311, build-linux-cp312, build-macos, build-windows]
runs-on: ubuntu-latest

steps:
Expand All @@ -187,7 +218,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11

- name: Install dependencies
run: |
Expand Down Expand Up @@ -216,6 +247,12 @@ jobs:
name: dist-linux-3.11
- run: mv -v dist-linux-3.11/* dist/

- name: Stage linux 3.12
uses: actions/download-artifact@v1
with:
name: dist-linux-3.12
- run: mv -v dist-linux-3.12/* dist/

- name: Stage macos 3.9
uses: actions/download-artifact@v1
with:
Expand All @@ -234,6 +271,12 @@ jobs:
name: dist-macos-3.11
- run: mv -v dist-macos-3.11/* dist/

- name: Stage macos 3.12
uses: actions/download-artifact@v1
with:
name: dist-macos-3.12
- run: mv -v dist-macos-3.12/* dist/

- name: Stage windows 3.9
uses: actions/download-artifact@v1
with:
Expand All @@ -252,6 +295,12 @@ jobs:
name: dist-windows-3.11
- run: mv -v dist-windows-3.11/* dist/

- name: Stage windows 3.12
uses: actions/download-artifact@v1
with:
name: dist-windows-3.12
- run: mv -v dist-windows-3.12/* dist/

- name: Publish distribution 馃摝 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release_arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
MACOSX_DEPLOYMENT_TARGET: "10.12"
MPL_DISABLE_FH4: "yes"
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
Expand All @@ -37,6 +38,12 @@ jobs:
with:
fetch-depth: 0

- name: Build wheels for CPython 3.12
uses: pypa/cibuildwheel@v2.12.1
env:
CIBW_BUILD: "cp312-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}

- name: Build wheels for CPython 3.11
uses: pypa/cibuildwheel@v2.12.1
env:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _A unified SQL interface to unlock insights across your diverse data sources, fr
[![PyPI Latest Release](https://img.shields.io/pypi/v/opteryx.svg)](https://pypi.org/project/opteryx/)
[![Downloads](https://static.pepy.tech/badge/opteryx)](https://pepy.tech/project/opteryx)
[![codecov](https://codecov.io/gh/mabel-dev/opteryx/branch/main/graph/badge.svg?token=sIgKpzzd95)](https://codecov.io/gh/mabel-dev/opteryx)
[![PyPI Latest Release](https://img.shields.io/badge/Python-3.9%20%7C%203.10%20%7C%203.11-blue?logo=python)](https://pypi.org/project/opteryx/)
[![PyPI Latest Release](https://img.shields.io/badge/Python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue?logo=python)](https://pypi.org/project/opteryx/)

</div>

Expand Down
2 changes: 1 addition & 1 deletion opteryx/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__build__ = 316
__build__ = 319

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 9747481

Please sign in to comment.