Skip to content

Commit 09368f6

Browse files
committed
Add wheels for Linux aarch64 architecture
- see #56
1 parent eedae86 commit 09368f6

File tree

5 files changed

+54
-15
lines changed

5 files changed

+54
-15
lines changed

.github/workflows/pytest-builds.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
arch: ['x64', 'x86']
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
with:
2121
submodules: true
2222

2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
architecture: ${{ matrix.arch }}
@@ -51,12 +51,12 @@ jobs:
5151
python-version: ['3.7', '3.8', '3.9', '3.10']
5252

5353
steps:
54-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
5555
with:
5656
submodules: true
5757

5858
- name: Set up Python ${{ matrix.python-version }}
59-
uses: actions/setup-python@v2
59+
uses: actions/setup-python@v4
6060
with:
6161
python-version: ${{ matrix.python-version }}
6262

@@ -85,12 +85,12 @@ jobs:
8585
python-version: ['3.7', '3.8', '3.9', '3.10']
8686

8787
steps:
88-
- uses: actions/checkout@v2
88+
- uses: actions/checkout@v3
8989
with:
9090
submodules: true
9191

9292
- name: Set up Python ${{ matrix.python-version }}
93-
uses: actions/setup-python@v2
93+
uses: actions/setup-python@v4
9494
with:
9595
python-version: ${{ matrix.python-version }}
9696

.github/workflows/release-wheels.yml

+29-8
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
timeout-minutes: 10
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
submodules: true
1616

17-
- uses: actions/setup-python@v2
17+
- uses: actions/setup-python@v4
1818
name: Install Python
1919
with:
2020
python-version: '3.10'
@@ -25,7 +25,7 @@ jobs:
2525
python setup.py sdist
2626
2727
- name: Store artifacts
28-
uses: actions/upload-artifact@v2
28+
uses: actions/upload-artifact@v3
2929
with:
3030
name: wheels
3131
path: ./dist
@@ -97,6 +97,20 @@ jobs:
9797
platform_id: manylinux_x86_64
9898
manylinux_image: manylinux2014
9999

100+
# Linux aarch64
101+
- os: ubuntu-latest
102+
python: 37
103+
platform_id: manylinux_aarch64
104+
- os: ubuntu-latest
105+
python: 38
106+
platform_id: manylinux_aarch64
107+
- os: ubuntu-latest
108+
python: 39
109+
platform_id: manylinux_aarch64
110+
- os: ubuntu-latest
111+
python: 310
112+
platform_id: manylinux_aarch64
113+
100114
# MacOS x86_64
101115
- os: macos-latest
102116
python: 37
@@ -123,11 +137,17 @@ jobs:
123137
platform_id: macosx_arm64
124138

125139
steps:
126-
- uses: actions/checkout@v2
140+
- uses: actions/checkout@v3
127141
with:
128142
submodules: true
129143

130-
- uses: actions/setup-python@v2
144+
- name: Set up QEMU
145+
if: ${{ matrix.platform_id == 'manylinux_aarch64' }}
146+
uses: docker/setup-qemu-action@v2
147+
with:
148+
platforms: arm64
149+
150+
- uses: actions/setup-python@v4
131151
name: Install Python
132152
with:
133153
python-version: '3.9'
@@ -143,13 +163,14 @@ jobs:
143163
CIBW_ARCHS: all
144164
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
145165
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }}
166+
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux_image }}
146167
CIBW_BUILD_VERBOSITY: 1
147168
run: |
148169
python --version
149170
python -m cibuildwheel --output-dir dist
150171
151172
- name: Store artifacts
152-
uses: actions/upload-artifact@v2
173+
uses: actions/upload-artifact@v3
153174
with:
154175
name: wheels
155176
path: ./dist
@@ -166,7 +187,7 @@ jobs:
166187

167188
steps:
168189
- name: Set up Python ${{ matrix.python-version }}
169-
uses: actions/setup-python@v2
190+
uses: actions/setup-python@v4
170191
with:
171192
python-version: ${{ matrix.python-version }}
172193

@@ -212,7 +233,7 @@ jobs:
212233

213234
steps:
214235
- name: Download the wheels
215-
uses: actions/download-artifact@v2
236+
uses: actions/download-artifact@v3
216237
with:
217238
name: wheels
218239
path: dist/

docs/changes/v1.3.0.rst

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _v1.3.0:
2+
3+
1.3.0
4+
=====
5+
6+
Changes
7+
.......
8+
9+
* Updated OpenJPEG version to 2.5.0

docs/changes/v1.3.1.rst

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _v1.3.1:
2+
3+
1.3.1
4+
=====
5+
6+
Changes
7+
.......
8+
9+
* Added wheels for Linux aarch64 architecture

openjpeg/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44

55

6-
__version__ = '1.3.0'
6+
__version__ = '1.3.1'
77

88

99
VERSION_PATTERN = r"""

0 commit comments

Comments
 (0)