From 5735b1a35726aebdbf010d347db0101e360f9b42 Mon Sep 17 00:00:00 2001 From: Nicklas Larsson Date: Fri, 2 Feb 2024 11:19:11 +0100 Subject: [PATCH] py-threadpoolctl: add py312; drop py37; enable tests --- python/py-threadpoolctl/Portfile | 9 ++++----- python/py-threadpoolctl/files/patch-test.diff | 12 ++++++++++++ 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 python/py-threadpoolctl/files/patch-test.diff diff --git a/python/py-threadpoolctl/Portfile b/python/py-threadpoolctl/Portfile index b8001a873958d..eeb6a5b74e99d 100644 --- a/python/py-threadpoolctl/Portfile +++ b/python/py-threadpoolctl/Portfile @@ -11,7 +11,7 @@ supported_archs noarch platforms {darwin any} license BSD -python.versions 37 38 39 310 311 +python.versions 38 39 310 311 312 maintainers {stromnov @stromnov} openmaintainer @@ -24,9 +24,8 @@ checksums rmd160 bc71e6ea121d307c1dcc2619ee2763a945838817 \ sha256 c96a0ba3bdddeaca37dc4cc7344aafad41cdb8c313f74fdfe387a867bba93355 \ size 36266 -python.pep517 yes +patchfiles-append patch-test.diff + python.pep517_backend flit -if {${name} ne ${subport}} { - livecheck.type none -} +test.run yes diff --git a/python/py-threadpoolctl/files/patch-test.diff b/python/py-threadpoolctl/files/patch-test.diff new file mode 100644 index 0000000000000..b8312c36c8fea --- /dev/null +++ b/python/py-threadpoolctl/files/patch-test.diff @@ -0,0 +1,12 @@ +Addressed upstream https://github.com/joblib/threadpoolctl/issues/162 + +--- tests/test_threadpoolctl.py.orig ++++ tests/test_threadpoolctl.py +@@ -600,6 +600,7 @@ + expected_openblas_architectures = ( + # XXX: add more as needed by CI or developer laptops + "armv8", ++ "ARMV8", + "Haswell", + "Prescott", # see: https://github.com/xianyi/OpenBLAS/pull/3485 + "SkylakeX",