From bd402c45a5c2638ab70d60da9198bb7ed3189738 Mon Sep 17 00:00:00 2001 From: Lukas Hergt Date: Wed, 24 Apr 2024 13:26:01 -0700 Subject: [PATCH] Fix macOS CI (#385) * attempt at fixing macOS CI by brew installing hdf5 * update from `miniconda@v2` to `miniconda@v3` * bump version to 2.8.11 * try newer `tables` version, which was previously restricted to 3.8.0 in #379 * Revert "attempt at fixing macOS CI by brew installing hdf5" This reverts commit 968bdb34e53bb50f524ac561be285412496ec53f. * Reapply "attempt at fixing macOS CI by brew installing hdf5" This reverts commit 204014ab3c10264a32ce2dfa37d239730c8249c5. Seems like this is needed after all, otherwise macOS is struggling to find a local HDF5. --------- Co-authored-by: Will Handley --- .github/workflows/CI.yaml | 8 +++++++- README.rst | 2 +- anesthetic/_version.py | 2 +- pyproject.toml | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 01a690e1..a662ba6a 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -72,6 +72,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install hdf5 for macOS + if: ${{ matrix.os == 'macos-latest' }} + run: brew install hdf5 c-blosc - name: Install dependencies run: | @@ -107,9 +110,12 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: python-version: ${{ matrix.python-version }} + - name: Install hdf5 for macOS + if: ${{ matrix.os == 'macos-latest' }} + run: brew install hdf5 c-blosc - name: Install dependencies shell: bash -l {0} diff --git a/README.rst b/README.rst index e8fd0bc6..1c16e388 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ anesthetic: nested sampling post-processing =========================================== :Authors: Will Handley and Lukas Hergt -:Version: 2.8.10 +:Version: 2.8.11 :Homepage: https://github.com/handley-lab/anesthetic :Documentation: http://anesthetic.readthedocs.io/ diff --git a/anesthetic/_version.py b/anesthetic/_version.py index 8728008c..9a2e0c8b 100644 --- a/anesthetic/_version.py +++ b/anesthetic/_version.py @@ -1 +1 @@ -__version__ = '2.8.10' +__version__ = '2.8.11' diff --git a/pyproject.toml b/pyproject.toml index ff1d6db3..94caa394 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,7 @@ astropy = ["astropy"] fastkde = ["fastkde"] getdist = ["getdist"] hdf5 = ["tables==3.8.0"] -all = ["h5py", "astropy", "fastkde", "getdist", "tables==3.8.0"] +all = ["h5py", "astropy", "fastkde", "getdist", "tables"] [project.scripts] anesthetic = "anesthetic.scripts:gui"