This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
650 additions
and
376 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
# Unix-style newlines with a newline ending every file | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
|
||
# Four-space indentation | ||
indent_size = 4 | ||
indent_style = space | ||
|
||
trim_trailing_whitespace = true | ||
|
||
[*.yml] | ||
# Two-space indentation | ||
indent_size = 2 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:base" | ||
], | ||
"packageRules": [ | ||
{ | ||
"groupName": "github-actions", | ||
"matchManagers": ["github-actions"], | ||
"separateMajorMinor": "false" | ||
} | ||
], | ||
"schedule": ["on the 4th day of the month"] | ||
} |
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 |
---|---|---|
@@ -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@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- uses: pre-commit/[email protected] |
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,78 @@ | ||
name: Build Linux wheels | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
build-commit: | ||
required: true | ||
type: string | ||
artifacts-name: | ||
required: true | ||
type: string | ||
|
||
env: | ||
REPO_DIR: Pillow | ||
TEST_DEPENDS: "pytest pytest-timeout" | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.python }} ${{ matrix.mb-ml-libc }}${{ matrix.mb-ml-ver }} ${{ matrix.platform }} | ||
runs-on: "ubuntu-20.04" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: [ | ||
"pypy3.8-7.3.10", | ||
"pypy3.9-7.3.10", | ||
"3.7", | ||
"3.8", | ||
"3.9", | ||
"3.10", | ||
"3.11", | ||
] | ||
platform: [ "i686", "x86_64" ] | ||
mb-ml-libc: [ "manylinux" ] | ||
mb-ml-ver: [ 2014, "_2_28" ] | ||
exclude: | ||
- platform: "i686" | ||
mb-ml-ver: "_2_28" | ||
include: | ||
- python: "3.8" | ||
platform: "x86_64" | ||
mb-ml-libc: "musllinux" | ||
mb-ml-ver: "_1_1" | ||
- python: "3.9" | ||
platform: "x86_64" | ||
mb-ml-libc: "musllinux" | ||
mb-ml-ver: "_1_1" | ||
- python: "3.10" | ||
platform: "x86_64" | ||
mb-ml-libc: "musllinux" | ||
mb-ml-ver: "_1_1" | ||
- python: "3.11" | ||
platform: "x86_64" | ||
mb-ml-libc: "musllinux" | ||
mb-ml-ver: "_1_1" | ||
env: | ||
BUILD_COMMIT: ${{ inputs.build-commit }} | ||
PLAT: ${{ matrix.platform }} | ||
MB_PYTHON_VERSION: ${{ matrix.python }} | ||
MB_ML_LIBC: ${{ matrix.mb-ml-libc }} | ||
MB_ML_VER: ${{ matrix.mb-ml-ver }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Build Wheel | ||
run: .github/workflows/build.sh | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.artifacts-name }} | ||
path: wheelhouse/*.whl | ||
# Uncomment to get SSH access for testing | ||
# - name: Setup tmate session | ||
# if: failure() | ||
# uses: mxschmitt/action-tmate@v3 |
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,62 @@ | ||
name: Build macOS wheels | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
build-commit: | ||
required: true | ||
type: string | ||
artifacts-name: | ||
required: true | ||
type: string | ||
|
||
env: | ||
REPO_DIR: Pillow | ||
TEST_DEPENDS: "pytest pytest-timeout" | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.python }} ${{ matrix.platform }} | ||
runs-on: "macos-latest" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: [ | ||
"pypy3.8-7.3.10", | ||
"pypy3.9-7.3.10", | ||
"3.7", | ||
"3.8", | ||
"3.9", | ||
"3.10", | ||
"3.11", | ||
] | ||
platform: [ "x86_64", "arm64" ] | ||
exclude: | ||
- python: "3.7" | ||
platform: "arm64" | ||
- python: "pypy3.8-7.3.10" | ||
platform: "arm64" | ||
- python: "pypy3.9-7.3.10" | ||
platform: "arm64" | ||
env: | ||
BUILD_COMMIT: ${{ inputs.build-commit }} | ||
PLAT: ${{ matrix.platform }} | ||
MB_PYTHON_VERSION: ${{ matrix.python }} | ||
TRAVIS_OS_NAME: "osx" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Build Wheel | ||
run: .github/workflows/build.sh | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.artifacts-name }} | ||
path: wheelhouse/*.whl | ||
# Uncomment to get SSH access for testing | ||
# - name: Setup tmate session | ||
# if: failure() | ||
# uses: mxschmitt/action-tmate@v3 |
Oops, something went wrong.