From cb17a44e6e59fadc5e496e031412ddcaaa51e05e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 11 May 2024 08:16:00 +0200 Subject: [PATCH 1/3] GitHub Actions: Test on Python 3.13 beta The Python 3.13 release notes mention `puremagic` as one of the alternatives for `imghdr` which was removed from the Standard Library so let's ensure that its tests pass on Python 3.13 beta. https://www.python.org/downloads/release/python-3130b1/ May raise `ModuleNotFoundError: No module named 'imghdr'` because Python 3.13 removes it from the Standard Library. * https://docs.python.org/3/library/imghdr.html > imghdr: use the projects [filetype](https://pypi.org/project/filetype/), [puremagic](https://pypi.org/project/puremagic/), or [python-magic](https://pypi.org/project/python-magic/) instead. (Contributed by Victor Stinner in [gh-104773](https://github.com/python/cpython/issues/104773).) https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-dead-batteries-and-other-module-removals --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6a32105..38935c7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -24,6 +24,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install dependencies run: | From 01196273a24bede29e624b420cda272bc1a618b4 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 11 May 2024 15:21:27 +0200 Subject: [PATCH 2/3] Test on macOS and Windows --- .github/workflows/tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 38935c7..98ddbed 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,11 +12,16 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: matrix: + os: [ubuntu-latest] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] - + include: + - os: macos-latest + python-version: '3.13' + - os: windows-latest + python-version: '3.13' + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 From c94c8e3ad0b14500be8dc6eba9ea78f984e7728d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 16 May 2024 18:41:14 +0200 Subject: [PATCH 3/3] shell: bash for `ls` on Windows --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 98ddbed..3e1c5f5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,6 +54,7 @@ jobs: coveralls || true - name: Check distribution log description + shell: bash run: | python setup.py sdist bdist_wheel twine check dist/*