Skip to content

Commit

Permalink
Try Pillow wheel-building machinery
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Nov 8, 2023
1 parent 3c54a0b commit 37f4c84
Show file tree
Hide file tree
Showing 9 changed files with 247 additions and 331 deletions.
144 changes: 0 additions & 144 deletions .github/workflows/build-wheels-windows.yml

This file was deleted.

171 changes: 0 additions & 171 deletions .github/workflows/build-wheels.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# curl from brew requires zstd, use system curl
# if php is installed, brew tries to reinstall these after installing openblas
brew remove --ignore-dependencies curl php

brew install pkg-config

if [[ "$PLAT" == "arm64" ]]; then
export MACOSX_DEPLOYMENT_TARGET="11.0"
else
export MACOSX_DEPLOYMENT_TARGET="10.10"
fi
fi

if [[ "$MB_PYTHON_VERSION" == pypy3* ]]; then
MB_PYTHON_OSX_VER="10.9"
fi

echo "::group::Install a virtualenv"
source multibuild/common_utils.sh
source multibuild/travis_steps.sh
python3 -m pip install virtualenv
before_install
echo "::endgroup::"

echo "::group::Build wheel"
clean_code
build_wheel
ls -l "${GITHUB_WORKSPACE}/${WHEEL_SDIR}/"
echo "::endgroup::"

if [[ $MACOSX_DEPLOYMENT_TARGET != "11.0" ]]; then
echo "::group::Test wheel"
install_run
echo "::endgroup::"
fi
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint

on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest

name: Lint

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- uses: pre-commit/action@v3.0.0
Loading

0 comments on commit 37f4c84

Please sign in to comment.