-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support arm64 linux & use maturin (#263)
* feat: python 3.12 support; switch to maturin
- Loading branch information
Showing
10 changed files
with
123 additions
and
820 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.1.47 | ||
current_version = 0.1.48 | ||
commit = True | ||
tag = True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
for PYBIN in /opt/python/cp3[5678]*/bin; do | ||
"${PYBIN}/pip" install maturin | ||
"${PYBIN}/maturin" build -i "${PYBIN}/python" --release | ||
done | ||
|
||
for wheel in target/wheels/*.whl; do | ||
auditwheel repair "${wheel}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: publish-pypi | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
linux-wheels: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [x86_64, i686, aarch64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
maturin-version: latest | ||
command: build | ||
manylinux: auto | ||
args: --release --sdist -i 3.8 3.9 3.10 3.11 3.12 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux-wheels-${{ matrix.target }} | ||
path: target/wheels/ | ||
|
||
osx-wheels: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
default: true | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build wheels | ||
run: | | ||
python3 -m pip install maturin | ||
maturin build --release | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: osx-${{ matrix.python-version }}-wheel | ||
path: target/wheels | ||
|
||
windows-wheels: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
default: true | ||
- uses: actions/setup-python@v2 | ||
- name: Build wheels | ||
run: | | ||
python -m pip install maturin | ||
maturin build --release | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: windows-wheels | ||
path: target/wheels | ||
|
||
push: | ||
needs: [osx-wheels, windows-wheels, linux-wheels] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v4 | ||
|
||
- name: Display structure of downloaded files | ||
run: ls -R | ||
|
||
- run: mkdir wheels | ||
- run: mv ./linux-wheels-x86_64/* wheels | ||
- run: mv ./linux-wheels-i686/* wheels | ||
- run: mv ./linux-wheels-aarch64/* wheels | ||
- run: mv ./osx-3.12-wheel/* wheels | ||
- run: mv ./osx-3.11-wheel/* wheels | ||
- run: mv ./osx-3.10-wheel/* wheels | ||
- run: mv ./osx-3.9-wheel/* wheels | ||
- run: mv ./osx-3.8-wheel/* wheels | ||
- run: mv ./windows-wheels/* wheels | ||
|
||
|
||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI }} | ||
packages_dir: wheels/ | ||
verify_metadata: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[package] | ||
name = "sqloxide" | ||
version = "0.1.47" | ||
version = "0.1.48" | ||
authors = ["Will Eaton <[email protected]>"] | ||
edition = "2018" | ||
edition = "2021" | ||
|
||
[lib] | ||
name = "sqloxide" | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.