chiark / gitweb /
package/ci: pin to numpy and pybind11 that work together.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 21 Aug 2024 08:44:57 +0000 (10:44 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 21 Aug 2024 11:54:54 +0000 (13:54 +0200)
Without breaking my tests. Gah, I hate this pointless churn.

package/ci/circleci.yml

index 6679b19dfc45095aa3ea3b095e91fc67b62c1298..cdc3b5490e566825a96d65a5b1eaaf6197453e1e 100644 (file)
@@ -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