Skip to content

Commit 7b78587

Browse files
Merge branch 'letmaik:main' into matt-imageio-imwrite
2 parents 3b3c2ea + da5ad74 commit 7b78587

File tree

4 files changed

+31
-34
lines changed

4 files changed

+31
-34
lines changed

.github/scripts/build-linux.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ CHECK_SHA256=.github/scripts/check_sha256.sh
1010
# List python versions
1111
ls /opt/python
1212

13-
if [ $PYTHON_VERSION == "3.8" ]; then
14-
PYBIN="/opt/python/cp38-cp38/bin"
15-
elif [ $PYTHON_VERSION == "3.9" ]; then
13+
if [ $PYTHON_VERSION == "3.9" ]; then
1614
PYBIN="/opt/python/cp39-cp39/bin"
1715
elif [ $PYTHON_VERSION == "3.10" ]; then
1816
PYBIN="/opt/python/cp310-cp310/bin"

.github/scripts/test-linux.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ cd /io
66
# List python versions
77
ls /opt/python
88

9-
if [ $PYTHON_VERSION == "3.8" ]; then
10-
PYBIN="/opt/python/cp38-cp38/bin"
11-
elif [ $PYTHON_VERSION == "3.9" ]; then
9+
if [ $PYTHON_VERSION == "3.9" ]; then
1210
PYBIN="/opt/python/cp39-cp39/bin"
1311
elif [ $PYTHON_VERSION == "3.10" ]; then
1412
PYBIN="/opt/python/cp310-cp310/bin"

.github/workflows/ci.yml

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
runs-on: ${{ matrix.config.os-image }}
162162

163163
steps:
164-
- uses: actions/checkout@v3
164+
- uses: actions/checkout@v4
165165
with:
166166
submodules: true
167167

@@ -202,9 +202,9 @@ jobs:
202202
NUMPY_VERSION: ${{ matrix.config.numpy-version }}
203203

204204
- name: Store wheels as artifacts
205-
uses: actions/upload-artifact@v3
205+
uses: actions/upload-artifact@v4
206206
with:
207-
name: wheels
207+
name: wheel-${{ matrix.config.os-name }}-${{ matrix.config.python-arch }}-${{ matrix.config.python-version }}
208208
path: dist
209209

210210
test:
@@ -340,14 +340,15 @@ jobs:
340340
needs: build
341341

342342
steps:
343-
- uses: actions/checkout@v3
343+
- uses: actions/checkout@v4
344344
with:
345345
submodules: true
346346

347347
- name: Download wheels from artifact storage
348-
uses: actions/download-artifact@v3
348+
uses: actions/download-artifact@v4
349349
with:
350-
name: wheels
350+
pattern: wheel-*
351+
merge-multiple: true
351352
path: dist
352353

353354
- name: Set up QEMU
@@ -394,17 +395,18 @@ jobs:
394395
needs: build
395396

396397
steps:
397-
- uses: actions/checkout@v3
398+
- uses: actions/checkout@v4
398399

399400
- name: Setup Python
400401
uses: actions/setup-python@v1
401402
with:
402403
python-version: '3.9'
403404

404405
- name: Download wheels from artifact storage
405-
uses: actions/download-artifact@v3
406+
uses: actions/download-artifact@v4
406407
with:
407-
name: wheels
408+
pattern: wheel-*
409+
merge-multiple: true
408410
path: dist
409411

410412
- name: Install from wheel
@@ -416,10 +418,9 @@ jobs:
416418
run: sphinx-build -b html docs dist-docs
417419

418420
- name: Store docs HTML as artifact
419-
uses: actions/upload-artifact@v3
421+
uses: actions/upload-pages-artifact@v3
420422
with:
421-
name: docs
422-
path: dist-docs
423+
path: dist-docs/
423424

424425
publish-wheels:
425426
runs-on: ubuntu-latest
@@ -430,9 +431,10 @@ jobs:
430431

431432
steps:
432433
- name: Download wheels from artifact storage
433-
uses: actions/download-artifact@v3
434+
uses: actions/download-artifact@v4
434435
with:
435-
name: wheels
436+
pattern: wheel-*
437+
merge-multiple: true
436438
path: dist
437439

438440
- name: Setup Python
@@ -449,19 +451,14 @@ jobs:
449451
needs: [publish-wheels]
450452

451453
permissions:
452-
contents: write
454+
pages: write # to deploy to Pages
455+
id-token: write # to verify the deployment originates from an appropriate source
453456

454-
steps:
455-
- name: Download docs HTML from artifact storage
456-
uses: actions/download-artifact@v1
457-
with:
458-
name: docs
459-
path: dist-docs
457+
environment:
458+
name: github-pages
459+
url: ${{ steps.deployment.outputs.page_url }}
460460

461-
# TODO replace with https://github.com/actions/deploy-pages once out of beta
462-
- name: Upload docs to GitHub Pages
463-
uses: peaceiris/actions-gh-pages@47a6d63ea8b47b19328e258563aa1fbe224c0a23
464-
env:
465-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
466-
PUBLISH_BRANCH: gh-pages
467-
PUBLISH_DIR: ./dist-docs
461+
steps:
462+
- name: Deploy to GitHub Pages
463+
id: deployment
464+
uses: actions/deploy-pages@v4

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ def mac_libraw_compile():
298298
'License :: OSI Approved :: MIT License',
299299
'Programming Language :: Cython',
300300
'Programming Language :: Python :: 3',
301+
'Programming Language :: Python :: 3.9',
302+
'Programming Language :: Python :: 3.10',
303+
'Programming Language :: Python :: 3.11',
304+
'Programming Language :: Python :: 3.12',
301305
'Operating System :: MacOS',
302306
'Operating System :: Microsoft :: Windows',
303307
'Operating System :: POSIX',

0 commit comments

Comments
 (0)