From e5f5a5298dee1b76ede85887e9cf37cd08698070 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Fri, 25 Feb 2022 10:38:31 -0800 Subject: [PATCH 1/3] Include more debug info This is often needed when filling out issues in conda-forge. So just provide this in the CI logs so it is easy to find and share --- .github/workflows/ci-osx.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci-osx.yaml b/.github/workflows/ci-osx.yaml index a62ffdfa..d6d1dfdd 100644 --- a/.github/workflows/ci-osx.yaml +++ b/.github/workflows/ci-osx.yaml @@ -24,6 +24,13 @@ jobs: env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true + - name: Show info about `base` environment + shell: "bash -l {0}" + run: | + conda info + conda config --show-sources + conda list --show-channel-urls + - name: Set up env shell: "bash -l {0}" run: | @@ -33,6 +40,11 @@ jobs: pip install -r requirements_test.txt -r requirements.txt conda env export + - name: Show info about `env` environment + shell: "bash -l {0}" + run: | + conda list --show-channel-urls -n env + - name: Install numcodecs shell: "bash -l {0}" run: | From 8f6bb976e807d36f333b8fef222deb82625e931c Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Fri, 25 Feb 2022 10:38:32 -0800 Subject: [PATCH 2/3] Require at least `clang` version `12.0.1` on macOS If `clang` version `12.0.0` is picked up, we encounter issues with TAPI on macOS. For some reason this happens with Python 3.10 and not other Pythons. In any event requiring `12.0.1`+ ensures TAPI support is working correctly, so just apply that constraint when installing `compilers` to avoid issues. --- .github/workflows/ci-osx.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-osx.yaml b/.github/workflows/ci-osx.yaml index d6d1dfdd..e49c7320 100644 --- a/.github/workflows/ci-osx.yaml +++ b/.github/workflows/ci-osx.yaml @@ -34,7 +34,7 @@ jobs: - name: Set up env shell: "bash -l {0}" run: | - conda create -n env python==${{matrix.python-version}} wheel pip compilers + conda create -n env python==${{matrix.python-version}} wheel pip compilers 'clang>=12.0.1' conda activate env which pip pip install -r requirements_test.txt -r requirements.txt From 00482027596454cf8c0f45a0c14961ef047fd803 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Fri, 25 Feb 2022 10:52:40 -0800 Subject: [PATCH 3/3] Drop `==` from `python` version requirement This behaves as exactly equals, which means we don't get patch version updates (like 3.10.2) instead we get (3.10.0). So this relaxes that to allow patch version fixes. --- .github/workflows/ci-osx.yaml | 2 +- .github/workflows/ci-windows.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-osx.yaml b/.github/workflows/ci-osx.yaml index e49c7320..5e11791c 100644 --- a/.github/workflows/ci-osx.yaml +++ b/.github/workflows/ci-osx.yaml @@ -34,7 +34,7 @@ jobs: - name: Set up env shell: "bash -l {0}" run: | - conda create -n env python==${{matrix.python-version}} wheel pip compilers 'clang>=12.0.1' + conda create -n env python=${{matrix.python-version}} wheel pip compilers 'clang>=12.0.1' conda activate env which pip pip install -r requirements_test.txt -r requirements.txt diff --git a/.github/workflows/ci-windows.yaml b/.github/workflows/ci-windows.yaml index 487fcb45..8f38b3ec 100644 --- a/.github/workflows/ci-windows.yaml +++ b/.github/workflows/ci-windows.yaml @@ -27,7 +27,7 @@ jobs: - name: Set up env shell: "bash -l {0}" run: | - conda create -n env python==${{matrix.python-version}} wheel pip compilers + conda create -n env python=${{matrix.python-version}} wheel pip compilers conda activate env which pip pip install -r requirements_test.txt -r requirements.txt