From dcf2af6a4b5401b4f8099373e53dc704bc79b864 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 21 Aug 2024 10:44:57 +0200 Subject: [PATCH] package/ci: pin to numpy and pybind11 that work together. Without breaking my tests. Gah, I hate this pointless churn. --- package/ci/circleci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/package/ci/circleci.yml b/package/ci/circleci.yml index 6679b19d..cdc3b549 100644 --- a/package/ci/circleci.yml +++ b/package/ci/circleci.yml @@ -54,6 +54,9 @@ commands: matplotlib-version: type: string default: "" + numpy-version: + type: string + default: "" pelican-version: type: string default: "" @@ -66,7 +69,7 @@ commands: # Pygments 2.11 (and apparently 2.10 as well) treats certain whitespace # differently, I have to update the expected output first. command: | - pip install jinja2 docutils<< parameters.docutils-version >> pygments==2.9.0 pelican<< parameters.pelican-version >> Pyphen Pillow coverage codecov qrcode<< parameters.qrcode-version >> matplotlib<< parameters.matplotlib-version >> attrs<< parameters.attrs-version >> + pip install jinja2 docutils<< parameters.docutils-version >> pygments==2.9.0 pelican<< parameters.pelican-version >> Pyphen Pillow coverage codecov qrcode<< parameters.qrcode-version >> matplotlib<< parameters.matplotlib-version >> attrs<< parameters.attrs-version >> numpy<< parameters.numpy-version >> - run: name: Fix unheard-of cursed issues # otherwise i get Error: unsupported locale setting @@ -267,6 +270,8 @@ jobs: # Matplotlib 3.8+ has significantly different output AGAIN, pin on 3.7 # until I can be bothered testing yet again matplotlib-version: ==3.7.4 + # NumPy 2.0 only works with pybind 2.12+ + numpy-version: ==1.26.4 - checkout - test-theme - test-plugins @@ -288,14 +293,17 @@ jobs: # Matplotlib 3.8+ has significantly different output AGAIN, pin on 3.7 # until I can be bothered testing yet again matplotlib-version: ==3.7.4 + # NumPy 2.0 doesn't work with pybind 2.11, see below + numpy-version: ==1.26.4 - checkout - test-theme - test-plugins - test-documentation-themes: python-version: "3.10" - # Python 3.10 and Pybind 2.8 were both released on 2021-10-04, so - # assume anything older won't really work there. - pybind-version: "2.8.0" + # 2.12.0 is the first that works with NumPy 2.0, unfortunately it has + # different docstring typing annotations to which I need to adapt tests + # first. Pinning to a version before together with NumPy 1. + pybind-version: "2.11.1" doxygen-version: "1.8.18" - coverage -- 2.30.2