-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and relicense as MIT/Apache2.0
- Loading branch information
Showing
25 changed files
with
595 additions
and
198 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
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,103 @@ | ||
name: Build Wheels (MacOS) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
archs: | ||
required: true | ||
default: x86_64 arm64 universal2 | ||
|
||
jobs: | ||
define-matrix: | ||
runs-on: macos-13 | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
|
||
- run: python -m pip install -U pip wheel setuptools | ||
- run: python -m pip install -U 'cibuildwheel==2.*' | ||
|
||
- id: set-matrix | ||
run: | | ||
TARGETS="$(python -m cibuildwheel --archs "${{ github.event.inputs.archs }}" --print-build-identifiers)" | ||
echo 'matrix=["'$(echo $TARGETS | sed -e 's/ /","/g')'"]' >> $GITHUB_OUTPUT | ||
shell: bash | ||
env: | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_SKIP: 'cp27-* cp36-* pp*' | ||
CIBW_DEPENDENCY_VERSIONS: pinned | ||
CIBW_PLATFORM: macos | ||
|
||
build: | ||
runs-on: macos-13 | ||
|
||
needs: | ||
- define-matrix | ||
strategy: | ||
matrix: | ||
only: ${{ fromJSON(needs.define-matrix.outputs.matrix) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v4 | ||
with: | ||
key: windows--${{ hashFiles('./requirements-dev.txt') }} | ||
path: ~/.cache/pip | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
|
||
- run: python -m pip install -U pip wheel setuptools | ||
- run: python -m pip install -Ur requirements-dev.txt | ||
- run: python -m pip install -U 'cibuildwheel==2.*' | ||
|
||
- run: make prepare | ||
|
||
- run: python -m cibuildwheel --output-dir wheelhouse --only ${{ matrix.only }} | ||
env: | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_SKIP: 'cp27-* pp*' | ||
CIBW_DEPENDENCY_VERSIONS: pinned | ||
CIBW_PLATFORM: linux | ||
CIBW_TEST_COMMAND: python {project}/scripts/run-tests.py | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.only }} | ||
path: ./wheelhouse | ||
retention-days: 1 | ||
|
||
combine: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- define-matrix | ||
- build | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: ./wheelhouse | ||
- run: | | ||
find -name '*.zip' -exec unzip '{}' ';' | ||
find -name '*.zip' -exec rm '{}' + | ||
find -name '*.whl' -exec mv -t. '{}' + | ||
find -type d -delete | ||
shell: bash | ||
working-directory: ./wheelhouse | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheelhouse | ||
path: ./wheelhouse |
This file was deleted.
Oops, something went wrong.
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,103 @@ | ||
name: Build Wheels (Windows) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
archs: | ||
required: true | ||
default: AMD64 x86 ARM64 | ||
|
||
jobs: | ||
define-matrix: | ||
runs-on: windows-2022 | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
|
||
- run: python -m pip install -U pip wheel setuptools | ||
- run: python -m pip install -U 'cibuildwheel==2.*' | ||
|
||
- id: set-matrix | ||
run: | | ||
TARGETS="$(python -m cibuildwheel --archs "${{ github.event.inputs.archs }}" --print-build-identifiers)" | ||
echo 'matrix=["'$(echo $TARGETS | sed -e 's/ /","/g')'"]' >> $GITHUB_OUTPUT | ||
shell: bash | ||
env: | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_SKIP: 'cp27-* cp36-* pp*' | ||
CIBW_DEPENDENCY_VERSIONS: pinned | ||
CIBW_PLATFORM: windows | ||
|
||
build: | ||
runs-on: windows-2022 | ||
|
||
needs: | ||
- define-matrix | ||
strategy: | ||
matrix: | ||
only: ${{ fromJSON(needs.define-matrix.outputs.matrix) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v4 | ||
with: | ||
key: windows--${{ hashFiles('./requirements-dev.txt') }} | ||
path: ~/.cache/pip | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
|
||
- run: python -m pip install -U pip wheel setuptools | ||
- run: python -m pip install -Ur requirements-dev.txt | ||
- run: python -m pip install -U 'cibuildwheel==2.*' | ||
|
||
- run: make prepare | ||
|
||
- run: python -m cibuildwheel --output-dir wheelhouse --only ${{ matrix.only }} | ||
env: | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_SKIP: 'cp27-* pp*' | ||
CIBW_DEPENDENCY_VERSIONS: pinned | ||
CIBW_PLATFORM: linux | ||
CIBW_TEST_COMMAND: python {project}/scripts/run-tests.py | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.only }} | ||
path: ./wheelhouse | ||
retention-days: 1 | ||
|
||
combine: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- define-matrix | ||
- build | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: ./wheelhouse | ||
- run: | | ||
find -name '*.zip' -exec unzip '{}' ';' | ||
find -name '*.zip' -exec rm '{}' + | ||
find -name '*.whl' -exec mv -t. '{}' + | ||
find -type d -delete | ||
shell: bash | ||
working-directory: ./wheelhouse | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheelhouse | ||
path: ./wheelhouse |
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
Oops, something went wrong.