Skip to content
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/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nonvendored_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- uses: pypa/cibuildwheel@v4.0.0
env:
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: pytest {project}/tests/api
CIBW_ENVIRONMENT: CMAKE_ARGS="-DMMU_ENABLE_ARCH_FLAGS=OFF -DMMU_DISABLE_OPENMP=ON -DMMU_CICD_MODE=ON"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
platform: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.9", "3.14"]
python-version: ["3.10", "3.14"]

steps:
- uses: actions/checkout@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_all_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
platform: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:

- uses: pypa/cibuildwheel@v4.0.0
env:
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
CIBW_ENVIRONMENT: CMAKE_ARGS="-DMMU_ENABLE_ARCH_FLAGS=OFF -DMMU_ENABLE_OPENMP=ON -DMMU_DISABLE_OPENMP=OFF -DMMU_CICD_MODE=ON"
CIBW_ENVIRONMENT_MACOS: PATH="$HOME/.local/:$PATH" MACOSX_DEPLOYMENT_TARGET=12.0 DYLD_LIBRARY_PATH="$HOME/.local/libomp/lib" CMAKE_ARGS="-DMMU_ENABLE_ARCH_FLAGS=OFF -DMMU_VENDOR_OPENMP=ON -DMMU_ENABLE_OPENMP=ON -DMMU_DISABLE_OPENMP=OFF -DMMU_CICD_MODE=ON -DOpenMP_ROOT=$HOME/.local/libomp"
CIBW_ARCHS_MACOS: "arm64"
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:

- uses: pypa/cibuildwheel@v4.0.0
env:
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
CIBW_ARCHS: "x86_64"
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=12.0 CMAKE_ARGS="-DMMU_ENABLE_ARCH_FLAGS=OFF -DMMU_VENDOR_OPENMP=ON -DMMU_ENABLE_OPENMP=ON -DMMU_DISABLE_OPENMP=OFF -DMMU_CICD_MODE=ON -DOpenMP_ROOT=/usr/local"
CIBW_TEST_EXTRAS: test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v6
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ build-backend = "scikit_build_core.build"

[project]
name = "mmu"
version = "0.2.0rc2"
version = "0.2.0rc3"
description = "Fast binary classification metrics with uncertainty quantification"
readme = "README.rst"
requires-python = ">=3.9"
requires-python = ">=3.10"
authors = [
{ name = "Ralph Urlus", email = "rurlus.dev@gmail.com" },
]
Expand Down Expand Up @@ -67,7 +67,7 @@ MMU_ENABLE_ARCH_FLAGS = "ON"
[tool.cibuildwheel]
archs = ["auto64"]
skip = ["*-win32", "*-manylinux_i686", "*-musllinux_x86_64"]
build = ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]

# make sure to build generic wheels
environment = {CMAKE_ARGS="-DMMU_ENABLE_ARCH_FLAGS=OFF -DMMU_DISABLE_OPENMP=ON"}
Expand Down
9 changes: 4 additions & 5 deletions src/mmu/commons/checks.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import multiprocessing

import numpy as np
from sklearn.utils import check_array as sk_check_array

from mmu.commons.types import _convert_to_ext_types
from mmu.commons.types import _is_ext_compat
from mmu.lib import _core
from mmu.lib import _MMU_MT_SUPPORT
from mmu.commons.types import _convert_to_ext_types, _is_ext_compat
from mmu.lib import _MMU_MT_SUPPORT, _core

_ORDER_SH = {"C_CONTIGUOUS": "C", 0: "C", "F_CONTIGUOUS": "F", 1: "F"}

Expand Down Expand Up @@ -110,7 +109,7 @@ def check_array(
keyword arguments passed to sklearn's check_array


Returns
Returns:
-------
np.ndarray
the input array or the input array with the correct properties
Expand Down
Loading
Loading