Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.12 support #214

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_flake_pytest_ubuntu2004.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["2.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7"
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-*
# exclude 312 as no numba. Put back on prev line : cp312-*
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*
# Do not build for pypy, muslinux and python3.12 on ppc64le
CIBW_SKIP: pp* *-musllinux_*
# exclude 312 as no numba. Put back on prev line : cp312-*linux_ppc64le
CIBW_SKIP: pp* *-musllinux_* cp312-*linux_ppc64le
CIBW_ARCHS: ${{ matrix.cibw_archs }}

# Use silx wheelhouse: needed for ppc64le
Expand All @@ -56,8 +54,7 @@ jobs:
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest {project}/test
# Skip tests for 32bits and emulated architectures, arm64 macos and on Windows
# Skip cp312 tests for now: not all dependencies are available.
CIBW_TEST_SKIP: "*cp312-* *-*linux_i686 *-*linux_{aarch64,ppc64le,s390x} *-macosx_arm64 *-macosx_universal2:arm64 *-win32 *-win_amd64"
CIBW_TEST_SKIP: "*-*linux_i686 *-*linux_{aarch64,ppc64le,s390x} *-macosx_arm64 *-macosx_universal2:arm64 *-win32 *-win_amd64"

- uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def build_extension(self, ext):
cmdclass={ 'build_ext' : build_ext_subclass },
description='ImageD11',
license = "GPL",
python_requires='<3.12', # Numba still not working for 3.12
# python_requires='<3.12', # Numba still not working for 3.12
ext_package = "ImageD11", # Puts extensions in the ImageD11 directory
ext_modules = [extension,],
setup_requires = minimal, # to compile
Expand Down
Loading