From 72028a1b5015b61cd5deb4073e7a2bcee864fe18 Mon Sep 17 00:00:00 2001 From: Mirko Galimberti Date: Sun, 15 Oct 2023 11:20:32 +0200 Subject: [PATCH] Add support for Python 3.12 (tests, wheel, docs) --- .github/workflows/deploy.yml | 4 ++-- .github/workflows/python-package.yml | 1 + setup.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 20cce6a..a77b1fa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ jobs: runs-on: macos-latest env: CIBW_BUILD_VERBOSITY: 3 - CIBW_BUILD: "cp37-macosx_x86_64 cp38-macosx_universal2 cp39-macosx_universal2 cp310-macosx_universal2 cp311-macosx_universal2" + CIBW_BUILD: "cp37-macosx_x86_64 cp38-macosx_universal2 cp39-macosx_universal2 cp310-macosx_universal2 cp311-macosx_universal2 cp312-macosx_universal2" CIBW_ARCHS_MACOS: "x86_64 universal2" CIBW_TEST_COMMAND: python -c "from pyobjus import autoclass, objc_str" CIBW_TEST_SKIP: "*arm64*" @@ -21,7 +21,7 @@ jobs: python-version: '3.x' - name: Install dependencies - run: python -m pip install --upgrade twine cibuildwheel cython + run: python -m pip install --upgrade twine cibuildwheel~=2.16.2 cython - name: Build sdist run: | diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 956bb28..749bb0a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -18,6 +18,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" cython: - "<3" - ">=3" diff --git a/setup.py b/setup.py index d34e39e..9f802c2 100644 --- a/setup.py +++ b/setup.py @@ -142,6 +142,7 @@ def tree(source, allowed_ext=data_allowed_ext, tree_name='share/pyobjus-'): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Software Development :: Libraries :: Application Frameworks' ], )