Skip to content

Commit ff86d50

Browse files
committed
Update dependencies and relicense as MIT/Apache2.0
1 parent 663b285 commit ff86d50

25 files changed

+595
-198
lines changed

.github/workflows/build_linux_v3.yml .github/workflows/build_linux.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Build Wheels (Linux v3)
1+
name: Build Wheels (Linux)
22

33
on:
44
workflow_dispatch:
55
inputs:
6-
platform:
6+
archs:
77
required: true
88
default: x86_64 i686 aarch64 ppc64le s390x armv7l
99

@@ -27,11 +27,12 @@ jobs:
2727

2828
- id: set-matrix
2929
run: |
30-
TARGETS="$(python -m cibuildwheel --archs "${{ github.event.inputs.platform }}" --print-build-identifiers)"
30+
TARGETS="$(python -m cibuildwheel --archs "${{ github.event.inputs.archs }}" --print-build-identifiers)"
3131
echo 'matrix=["'$(echo $TARGETS | sed -e 's/ /","/g')'"]' >> $GITHUB_OUTPUT
32+
shell: bash
3233
env:
3334
CIBW_BUILD_FRONTEND: build
34-
CIBW_SKIP: 'cp27-* pp*'
35+
CIBW_SKIP: 'cp27-* cp36-* pp*'
3536
CIBW_DEPENDENCY_VERSIONS: pinned
3637
CIBW_PLATFORM: linux
3738

@@ -57,7 +58,7 @@ jobs:
5758
- name: Cache pip
5859
uses: actions/cache@v4
5960
with:
60-
key: cache--${{ hashFiles('./requirements-dev.txt') }}
61+
key: linux--${{ hashFiles('./requirements-dev.txt') }}
6162
path: ~/.cache/pip
6263

6364
- name: Setup python
@@ -99,6 +100,7 @@ jobs:
99100
find -name '*.zip' -exec rm '{}' +
100101
find -name '*.whl' -exec mv -t. '{}' +
101102
find -type d -delete
103+
shell: bash
102104
working-directory: ./wheelhouse
103105
- uses: actions/upload-artifact@v4
104106
with:

.github/workflows/build_macos.yml

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: Build Wheels (MacOS)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
archs:
7+
required: true
8+
default: x86_64 arm64 universal2
9+
10+
jobs:
11+
define-matrix:
12+
runs-on: macos-13
13+
outputs:
14+
matrix: ${{ steps.set-matrix.outputs.matrix }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: true
19+
20+
- name: Setup python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.13'
24+
25+
- run: python -m pip install -U pip wheel setuptools
26+
- run: python -m pip install -U 'cibuildwheel==2.*'
27+
28+
- id: set-matrix
29+
run: |
30+
TARGETS="$(python -m cibuildwheel --archs "${{ github.event.inputs.archs }}" --print-build-identifiers)"
31+
echo 'matrix=["'$(echo $TARGETS | sed -e 's/ /","/g')'"]' >> $GITHUB_OUTPUT
32+
shell: bash
33+
env:
34+
CIBW_BUILD_FRONTEND: build
35+
CIBW_SKIP: 'cp27-* cp36-* pp*'
36+
CIBW_DEPENDENCY_VERSIONS: pinned
37+
CIBW_PLATFORM: macos
38+
39+
build:
40+
runs-on: macos-13
41+
42+
needs:
43+
- define-matrix
44+
strategy:
45+
matrix:
46+
only: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
47+
48+
steps:
49+
- uses: actions/checkout@v4
50+
with:
51+
submodules: true
52+
53+
- name: Cache pip
54+
uses: actions/cache@v4
55+
with:
56+
key: windows--${{ hashFiles('./requirements-dev.txt') }}
57+
path: ~/.cache/pip
58+
59+
- name: Setup python
60+
uses: actions/setup-python@v5
61+
with:
62+
python-version: '3.13'
63+
64+
- run: python -m pip install -U pip wheel setuptools
65+
- run: python -m pip install -Ur requirements-dev.txt
66+
- run: python -m pip install -U 'cibuildwheel==2.*'
67+
68+
- run: make prepare
69+
70+
- run: python -m cibuildwheel --output-dir wheelhouse --only ${{ matrix.only }}
71+
env:
72+
CIBW_BUILD_FRONTEND: build
73+
CIBW_SKIP: 'cp27-* pp*'
74+
CIBW_DEPENDENCY_VERSIONS: pinned
75+
CIBW_PLATFORM: linux
76+
CIBW_TEST_COMMAND: python {project}/scripts/run-tests.py
77+
78+
- uses: actions/upload-artifact@v4
79+
with:
80+
name: ${{ matrix.only }}
81+
path: ./wheelhouse
82+
retention-days: 1
83+
84+
combine:
85+
runs-on: ubuntu-latest
86+
needs:
87+
- define-matrix
88+
- build
89+
steps:
90+
- uses: actions/download-artifact@v4
91+
with:
92+
path: ./wheelhouse
93+
- run: |
94+
find -name '*.zip' -exec unzip '{}' ';'
95+
find -name '*.zip' -exec rm '{}' +
96+
find -name '*.whl' -exec mv -t. '{}' +
97+
find -type d -delete
98+
shell: bash
99+
working-directory: ./wheelhouse
100+
- uses: actions/upload-artifact@v4
101+
with:
102+
name: wheelhouse
103+
path: ./wheelhouse

.github/workflows/build_wheels_windows.yml

-68
This file was deleted.

.github/workflows/build_windows.yml

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: Build Wheels (Windows)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
archs:
7+
required: true
8+
default: AMD64 x86 ARM64
9+
10+
jobs:
11+
define-matrix:
12+
runs-on: windows-2022
13+
outputs:
14+
matrix: ${{ steps.set-matrix.outputs.matrix }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: true
19+
20+
- name: Setup python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.13'
24+
25+
- run: python -m pip install -U pip wheel setuptools
26+
- run: python -m pip install -U 'cibuildwheel==2.*'
27+
28+
- id: set-matrix
29+
run: |
30+
TARGETS="$(python -m cibuildwheel --archs "${{ github.event.inputs.archs }}" --print-build-identifiers)"
31+
echo 'matrix=["'$(echo $TARGETS | sed -e 's/ /","/g')'"]' >> $GITHUB_OUTPUT
32+
shell: bash
33+
env:
34+
CIBW_BUILD_FRONTEND: build
35+
CIBW_SKIP: 'cp27-* cp36-* pp*'
36+
CIBW_DEPENDENCY_VERSIONS: pinned
37+
CIBW_PLATFORM: windows
38+
39+
build:
40+
runs-on: windows-2022
41+
42+
needs:
43+
- define-matrix
44+
strategy:
45+
matrix:
46+
only: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
47+
48+
steps:
49+
- uses: actions/checkout@v4
50+
with:
51+
submodules: true
52+
53+
- name: Cache pip
54+
uses: actions/cache@v4
55+
with:
56+
key: windows--${{ hashFiles('./requirements-dev.txt') }}
57+
path: ~/.cache/pip
58+
59+
- name: Setup python
60+
uses: actions/setup-python@v5
61+
with:
62+
python-version: '3.13'
63+
64+
- run: python -m pip install -U pip wheel setuptools
65+
- run: python -m pip install -Ur requirements-dev.txt
66+
- run: python -m pip install -U 'cibuildwheel==2.*'
67+
68+
- run: make prepare
69+
70+
- run: python -m cibuildwheel --output-dir wheelhouse --only ${{ matrix.only }}
71+
env:
72+
CIBW_BUILD_FRONTEND: build
73+
CIBW_SKIP: 'cp27-* pp*'
74+
CIBW_DEPENDENCY_VERSIONS: pinned
75+
CIBW_PLATFORM: linux
76+
CIBW_TEST_COMMAND: python {project}/scripts/run-tests.py
77+
78+
- uses: actions/upload-artifact@v4
79+
with:
80+
name: ${{ matrix.only }}
81+
path: ./wheelhouse
82+
retention-days: 1
83+
84+
combine:
85+
runs-on: ubuntu-latest
86+
needs:
87+
- define-matrix
88+
- build
89+
steps:
90+
- uses: actions/download-artifact@v4
91+
with:
92+
path: ./wheelhouse
93+
- run: |
94+
find -name '*.zip' -exec unzip '{}' ';'
95+
find -name '*.zip' -exec rm '{}' +
96+
find -name '*.whl' -exec mv -t. '{}' +
97+
find -type d -delete
98+
shell: bash
99+
working-directory: ./wheelhouse
100+
- uses: actions/upload-artifact@v4
101+
with:
102+
name: wheelhouse
103+
path: ./wheelhouse

.github/workflows/ci.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ jobs:
1212
- macos-latest
1313
- windows-latest
1414
python:
15-
- '3.8'
16-
- '3.11'
15+
- '3.10'
1716
- '3.13'
1817

1918
steps:
@@ -69,7 +68,7 @@ jobs:
6968
- name: Setup python
7069
uses: actions/setup-python@v5
7170
with:
72-
python-version: '3.11'
71+
python-version: '3.13'
7372

7473
- name: Display Python version
7574
run: python -c 'import sys; print(sys.version)'
@@ -82,6 +81,3 @@ jobs:
8281

8382
- name: Compile project
8483
run: make install
85-
86-
- name: Run black
87-
run: python -m black --check ./*.py ./src/

0 commit comments

Comments
 (0)