From 918c4161fdcf42d1ff65c7a3be82eb9b62376fed Mon Sep 17 00:00:00 2001 From: regro-cf-autotick-bot <36490558+regro-cf-autotick-bot@users.noreply.github.com> Date: Tue, 31 Dec 2024 23:40:09 +0000 Subject: [PATCH 1/2] Rebuild for cfitsio 4.5.0 --- .ci_support/migrations/cfitsio450.yaml | 8 ++++++++ recipe/meta.yaml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .ci_support/migrations/cfitsio450.yaml diff --git a/.ci_support/migrations/cfitsio450.yaml b/.ci_support/migrations/cfitsio450.yaml new file mode 100644 index 0000000..bccee1c --- /dev/null +++ b/.ci_support/migrations/cfitsio450.yaml @@ -0,0 +1,8 @@ +__migrator: + build_number: 1 + commit_message: Rebuild for cfitsio 4.5.0 + kind: version + migration_number: 1 +cfitsio: +- 4.5.0 +migrator_ts: 1734919906.7875106 diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 547a51c..89730af 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -15,7 +15,7 @@ source: - 0005-ignore-jones.patch build: - number: 0 + number: 1 skip: true # [win or (python_impl == 'pypy')] requirements: From 46cd26d1a8835857356ed668a5935257bcc1de31 Mon Sep 17 00:00:00 2001 From: regro-cf-autotick-bot <36490558+regro-cf-autotick-bot@users.noreply.github.com> Date: Tue, 31 Dec 2024 23:40:46 +0000 Subject: [PATCH 2/2] MNT: Re-rendered with conda-build 24.11.2, conda-smithy 3.45.1, and conda-forge-pinning 2024.12.31.18.36.35 --- .azure-pipelines/azure-pipelines-linux.yml | 24 ++++----- .azure-pipelines/azure-pipelines-osx.yml | 18 +++---- ...x_64_numpy1.22python3.10.____cpython.yaml} | 8 ++- ...ux_64_numpy1.22python3.9.____cpython.yaml} | 8 ++- ...x_64_numpy1.23python3.11.____cpython.yaml} | 8 ++- ...x_64_numpy1.26python3.12.____cpython.yaml} | 8 ++- .ci_support/migrations/pypy38.yaml | 43 ---------------- .ci_support/migrations/python312.yaml | 38 -------------- ...x_64_numpy1.22python3.10.____cpython.yaml} | 6 +-- ...sx_64_numpy1.22python3.9.____cpython.yaml} | 6 +-- ...x_64_numpy1.23python3.11.____cpython.yaml} | 6 +-- ...x_64_numpy1.26python3.12.____cpython.yaml} | 6 +-- .scripts/build_steps.sh | 16 +++--- .scripts/run_osx_build.sh | 50 ++++++++++++------- README.md | 32 ++++++------ azure-pipelines.yml | 31 ++++++++++-- build-locally.py | 9 +++- 17 files changed, 137 insertions(+), 180 deletions(-) rename .ci_support/{linux_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml => linux_64_numpy1.22python3.10.____cpython.yaml} (87%) rename .ci_support/{linux_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml => linux_64_numpy1.22python3.9.____cpython.yaml} (87%) rename .ci_support/{linux_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml => linux_64_numpy1.23python3.11.____cpython.yaml} (87%) rename .ci_support/{linux_64_numpy1.26python3.12.____cpythonpython_implcpython.yaml => linux_64_numpy1.26python3.12.____cpython.yaml} (87%) delete mode 100644 .ci_support/migrations/pypy38.yaml delete mode 100644 .ci_support/migrations/python312.yaml rename .ci_support/{osx_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml => osx_64_numpy1.22python3.10.____cpython.yaml} (97%) rename .ci_support/{osx_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml => osx_64_numpy1.22python3.9.____cpython.yaml} (97%) rename .ci_support/{osx_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml => osx_64_numpy1.23python3.11.____cpython.yaml} (97%) rename .ci_support/{osx_64_numpy1.26python3.12.____cpythonpython_implcpython.yaml => osx_64_numpy1.26python3.12.____cpython.yaml} (97%) diff --git a/.azure-pipelines/azure-pipelines-linux.yml b/.azure-pipelines/azure-pipelines-linux.yml index 10595af..7b2734b 100755 --- a/.azure-pipelines/azure-pipelines-linux.yml +++ b/.azure-pipelines/azure-pipelines-linux.yml @@ -8,22 +8,22 @@ jobs: vmImage: ubuntu-latest strategy: matrix: - linux_64_numpy1.22python3.10.____cpythonpython_implcpython: - CONFIG: linux_64_numpy1.22python3.10.____cpythonpython_implcpython + linux_64_numpy1.22python3.10.____cpython: + CONFIG: linux_64_numpy1.22python3.10.____cpython UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 - linux_64_numpy1.22python3.9.____cpythonpython_implcpython: - CONFIG: linux_64_numpy1.22python3.9.____cpythonpython_implcpython + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + linux_64_numpy1.22python3.9.____cpython: + CONFIG: linux_64_numpy1.22python3.9.____cpython UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 - linux_64_numpy1.23python3.11.____cpythonpython_implcpython: - CONFIG: linux_64_numpy1.23python3.11.____cpythonpython_implcpython + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + linux_64_numpy1.23python3.11.____cpython: + CONFIG: linux_64_numpy1.23python3.11.____cpython UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 - linux_64_numpy1.26python3.12.____cpythonpython_implcpython: - CONFIG: linux_64_numpy1.26python3.12.____cpythonpython_implcpython + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + linux_64_numpy1.26python3.12.____cpython: + CONFIG: linux_64_numpy1.26python3.12.____cpython UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 timeoutInMinutes: 360 variables: {} diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml index bb73ba4..f8c0353 100755 --- a/.azure-pipelines/azure-pipelines-osx.yml +++ b/.azure-pipelines/azure-pipelines-osx.yml @@ -5,20 +5,20 @@ jobs: - job: osx pool: - vmImage: macOS-12 + vmImage: macOS-13 strategy: matrix: - osx_64_numpy1.22python3.10.____cpythonpython_implcpython: - CONFIG: osx_64_numpy1.22python3.10.____cpythonpython_implcpython + osx_64_numpy1.22python3.10.____cpython: + CONFIG: osx_64_numpy1.22python3.10.____cpython UPLOAD_PACKAGES: 'True' - osx_64_numpy1.22python3.9.____cpythonpython_implcpython: - CONFIG: osx_64_numpy1.22python3.9.____cpythonpython_implcpython + osx_64_numpy1.22python3.9.____cpython: + CONFIG: osx_64_numpy1.22python3.9.____cpython UPLOAD_PACKAGES: 'True' - osx_64_numpy1.23python3.11.____cpythonpython_implcpython: - CONFIG: osx_64_numpy1.23python3.11.____cpythonpython_implcpython + osx_64_numpy1.23python3.11.____cpython: + CONFIG: osx_64_numpy1.23python3.11.____cpython UPLOAD_PACKAGES: 'True' - osx_64_numpy1.26python3.12.____cpythonpython_implcpython: - CONFIG: osx_64_numpy1.26python3.12.____cpythonpython_implcpython + osx_64_numpy1.26python3.12.____cpython: + CONFIG: osx_64_numpy1.26python3.12.____cpython UPLOAD_PACKAGES: 'True' timeoutInMinutes: 360 variables: {} diff --git a/.ci_support/linux_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml b/.ci_support/linux_64_numpy1.22python3.10.____cpython.yaml similarity index 87% rename from .ci_support/linux_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml rename to .ci_support/linux_64_numpy1.22python3.10.____cpython.yaml index 8f61577..383472a 100644 --- a/.ci_support/linux_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_64_numpy1.22python3.10.____cpython.yaml @@ -7,9 +7,9 @@ c_stdlib: c_stdlib_version: - '2.17' cdt_name: -- cos7 +- conda cfitsio: -- 4.4.1 +- 4.5.0 channel_sources: - conda-forge channel_targets: @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '13' docker_image: -- quay.io/condaforge/linux-anvil-cos7-x86_64 +- quay.io/condaforge/linux-anvil-x86_64:alma9 fftw: - '3' fortran_compiler: @@ -50,8 +50,6 @@ zip_keys: - - c_compiler_version - cxx_compiler_version - fortran_compiler_version -- - c_stdlib_version - - cdt_name - - python - numpy - python_impl diff --git a/.ci_support/linux_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml b/.ci_support/linux_64_numpy1.22python3.9.____cpython.yaml similarity index 87% rename from .ci_support/linux_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml rename to .ci_support/linux_64_numpy1.22python3.9.____cpython.yaml index 1ab4653..2dbd3d5 100644 --- a/.ci_support/linux_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_64_numpy1.22python3.9.____cpython.yaml @@ -7,9 +7,9 @@ c_stdlib: c_stdlib_version: - '2.17' cdt_name: -- cos7 +- conda cfitsio: -- 4.4.1 +- 4.5.0 channel_sources: - conda-forge channel_targets: @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '13' docker_image: -- quay.io/condaforge/linux-anvil-cos7-x86_64 +- quay.io/condaforge/linux-anvil-x86_64:alma9 fftw: - '3' fortran_compiler: @@ -50,8 +50,6 @@ zip_keys: - - c_compiler_version - cxx_compiler_version - fortran_compiler_version -- - c_stdlib_version - - cdt_name - - python - numpy - python_impl diff --git a/.ci_support/linux_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml b/.ci_support/linux_64_numpy1.23python3.11.____cpython.yaml similarity index 87% rename from .ci_support/linux_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml rename to .ci_support/linux_64_numpy1.23python3.11.____cpython.yaml index 0730176..9695a1b 100644 --- a/.ci_support/linux_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_64_numpy1.23python3.11.____cpython.yaml @@ -7,9 +7,9 @@ c_stdlib: c_stdlib_version: - '2.17' cdt_name: -- cos7 +- conda cfitsio: -- 4.4.1 +- 4.5.0 channel_sources: - conda-forge channel_targets: @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '13' docker_image: -- quay.io/condaforge/linux-anvil-cos7-x86_64 +- quay.io/condaforge/linux-anvil-x86_64:alma9 fftw: - '3' fortran_compiler: @@ -50,8 +50,6 @@ zip_keys: - - c_compiler_version - cxx_compiler_version - fortran_compiler_version -- - c_stdlib_version - - cdt_name - - python - numpy - python_impl diff --git a/.ci_support/linux_64_numpy1.26python3.12.____cpythonpython_implcpython.yaml b/.ci_support/linux_64_numpy1.26python3.12.____cpython.yaml similarity index 87% rename from .ci_support/linux_64_numpy1.26python3.12.____cpythonpython_implcpython.yaml rename to .ci_support/linux_64_numpy1.26python3.12.____cpython.yaml index 4af07df..70a9883 100644 --- a/.ci_support/linux_64_numpy1.26python3.12.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_64_numpy1.26python3.12.____cpython.yaml @@ -7,9 +7,9 @@ c_stdlib: c_stdlib_version: - '2.17' cdt_name: -- cos7 +- conda cfitsio: -- 4.4.1 +- 4.5.0 channel_sources: - conda-forge channel_targets: @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '13' docker_image: -- quay.io/condaforge/linux-anvil-cos7-x86_64 +- quay.io/condaforge/linux-anvil-x86_64:alma9 fftw: - '3' fortran_compiler: @@ -50,8 +50,6 @@ zip_keys: - - c_compiler_version - cxx_compiler_version - fortran_compiler_version -- - c_stdlib_version - - cdt_name - - python - numpy - python_impl diff --git a/.ci_support/migrations/pypy38.yaml b/.ci_support/migrations/pypy38.yaml deleted file mode 100644 index 2dd1ff4..0000000 --- a/.ci_support/migrations/pypy38.yaml +++ /dev/null @@ -1,43 +0,0 @@ -migrator_ts: 1647123563 -__migrator: - migration_number: 1 - operation: key_add - primary_key: python - ordering: - python: - - 3.6.* *_cpython - - 3.7.* *_cpython - - 3.8.* *_cpython - - 3.9.* *_cpython - - 3.10.* *_cpython - - 3.6.* *_73_pypy - - 3.7.* *_73_pypy - - 3.8.* *_73_pypy - - 3.9.* *_73_pypy - paused: False - longterm: True - use_local: False - check_solvable: True - exclude_pinned_pkgs: False - pr_limit: 10 - bump_number: 1 - commit_message: "Rebuild for PyPy3.8 and PyPy3.9" - exclude: - # this shouldn't attempt to modify the python feedstocks - - python - - pypy3.6 - - pypy-meta - ignored_deps_per_node: - matplotlib: - - pyqt - -python: - - 3.8.* *_73_pypy # [not (osx and arm64)] - - 3.9.* *_73_pypy # [not (osx and arm64)] -numpy: - # part of a zip_keys: python, python_impl, numpy - - 1.20 # [not (osx and arm64)] - - 1.20 # [not (osx and arm64)] -python_impl: - - pypy # [not (osx and arm64)] - - pypy # [not (osx and arm64)] diff --git a/.ci_support/migrations/python312.yaml b/.ci_support/migrations/python312.yaml deleted file mode 100644 index d4c1cd3..0000000 --- a/.ci_support/migrations/python312.yaml +++ /dev/null @@ -1,38 +0,0 @@ -migrator_ts: 1695046563 -__migrator: - migration_number: 1 - operation: key_add - primary_key: python - ordering: - python: - - 3.6.* *_cpython - - 3.7.* *_cpython - - 3.8.* *_cpython - - 3.9.* *_cpython - - 3.10.* *_cpython - - 3.11.* *_cpython - - 3.12.* *_cpython # new entry - - 3.6.* *_73_pypy - - 3.7.* *_73_pypy - - 3.8.* *_73_pypy - - 3.9.* *_73_pypy - paused: false - longterm: True - pr_limit: 30 - max_solver_attempts: 5 # this will make the bot retry "not solvable" stuff 5 times - exclude: - # this shouldn't attempt to modify the python feedstocks - - python - - pypy3.6 - - pypy-meta - - cross-python - - python_abi - exclude_pinned_pkgs: false - -python: - - 3.12.* *_cpython -# additional entries to add for zip_keys -numpy: - - 1.26 -python_impl: - - cpython diff --git a/.ci_support/osx_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml b/.ci_support/osx_64_numpy1.22python3.10.____cpython.yaml similarity index 97% rename from .ci_support/osx_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml rename to .ci_support/osx_64_numpy1.22python3.10.____cpython.yaml index b92caab..5b138b2 100644 --- a/.ci_support/osx_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml +++ b/.ci_support/osx_64_numpy1.22python3.10.____cpython.yaml @@ -5,13 +5,13 @@ MACOSX_SDK_VERSION: c_compiler: - clang c_compiler_version: -- '17' +- '18' c_stdlib: - macosx_deployment_target c_stdlib_version: - '10.13' cfitsio: -- 4.4.1 +- 4.5.0 channel_sources: - conda-forge channel_targets: @@ -19,7 +19,7 @@ channel_targets: cxx_compiler: - clangxx cxx_compiler_version: -- '17' +- '18' fftw: - '3' fortran_compiler: diff --git a/.ci_support/osx_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml b/.ci_support/osx_64_numpy1.22python3.9.____cpython.yaml similarity index 97% rename from .ci_support/osx_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml rename to .ci_support/osx_64_numpy1.22python3.9.____cpython.yaml index 8592ae3..120ece4 100644 --- a/.ci_support/osx_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml +++ b/.ci_support/osx_64_numpy1.22python3.9.____cpython.yaml @@ -5,13 +5,13 @@ MACOSX_SDK_VERSION: c_compiler: - clang c_compiler_version: -- '17' +- '18' c_stdlib: - macosx_deployment_target c_stdlib_version: - '10.13' cfitsio: -- 4.4.1 +- 4.5.0 channel_sources: - conda-forge channel_targets: @@ -19,7 +19,7 @@ channel_targets: cxx_compiler: - clangxx cxx_compiler_version: -- '17' +- '18' fftw: - '3' fortran_compiler: diff --git a/.ci_support/osx_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml b/.ci_support/osx_64_numpy1.23python3.11.____cpython.yaml similarity index 97% rename from .ci_support/osx_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml rename to .ci_support/osx_64_numpy1.23python3.11.____cpython.yaml index f692918..dad0f5b 100644 --- a/.ci_support/osx_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml +++ b/.ci_support/osx_64_numpy1.23python3.11.____cpython.yaml @@ -5,13 +5,13 @@ MACOSX_SDK_VERSION: c_compiler: - clang c_compiler_version: -- '17' +- '18' c_stdlib: - macosx_deployment_target c_stdlib_version: - '10.13' cfitsio: -- 4.4.1 +- 4.5.0 channel_sources: - conda-forge channel_targets: @@ -19,7 +19,7 @@ channel_targets: cxx_compiler: - clangxx cxx_compiler_version: -- '17' +- '18' fftw: - '3' fortran_compiler: diff --git a/.ci_support/osx_64_numpy1.26python3.12.____cpythonpython_implcpython.yaml b/.ci_support/osx_64_numpy1.26python3.12.____cpython.yaml similarity index 97% rename from .ci_support/osx_64_numpy1.26python3.12.____cpythonpython_implcpython.yaml rename to .ci_support/osx_64_numpy1.26python3.12.____cpython.yaml index c54b735..f3f1ac6 100644 --- a/.ci_support/osx_64_numpy1.26python3.12.____cpythonpython_implcpython.yaml +++ b/.ci_support/osx_64_numpy1.26python3.12.____cpython.yaml @@ -5,13 +5,13 @@ MACOSX_SDK_VERSION: c_compiler: - clang c_compiler_version: -- '17' +- '18' c_stdlib: - macosx_deployment_target c_stdlib_version: - '10.13' cfitsio: -- 4.4.1 +- 4.5.0 channel_sources: - conda-forge channel_targets: @@ -19,7 +19,7 @@ channel_targets: cxx_compiler: - clangxx cxx_compiler_version: -- '17' +- '18' fftw: - '3' fortran_compiler: diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index 6c805a9..f8051ab 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -31,18 +31,20 @@ pkgs_dirs: solver: libmamba CONDARC +mv /opt/conda/conda-meta/history /opt/conda/conda-meta/history.$(date +%Y-%m-%d-%H-%M-%S) +echo > /opt/conda/conda-meta/history +micromamba install --root-prefix ~/.conda --prefix /opt/conda \ + --yes --override-channels --channel conda-forge --strict-channel-priority \ + pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" export CONDA_LIBMAMBA_SOLVER_NO_CHANNELS_FROM_INSTALLED=1 -mamba install --update-specs --yes --quiet --channel conda-forge --strict-channel-priority \ - pip mamba conda-build conda-forge-ci-setup=4 "conda-build>=24.1" -mamba update --update-specs --yes --quiet --channel conda-forge --strict-channel-priority \ - pip mamba conda-build conda-forge-ci-setup=4 "conda-build>=24.1" - # set up the condarc setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" source run_conda_forge_build_setup + + # make the build number clobber make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" @@ -71,8 +73,8 @@ else --extra-meta flow_run_id="${flow_run_id:-}" remote_url="${remote_url:-}" sha="${sha:-}" ( startgroup "Inspecting artifacts" ) 2> /dev/null - # inspect_artifacts was only added in conda-forge-ci-setup 4.6.0 - command -v inspect_artifacts >/dev/null 2>&1 && inspect_artifacts || echo "inspect_artifacts needs conda-forge-ci-setup >=4.6.0" + # inspect_artifacts was only added in conda-forge-ci-setup 4.9.4 + command -v inspect_artifacts >/dev/null 2>&1 && inspect_artifacts --recipe-dir "${RECIPE_ROOT}" -m "${CONFIG_FILE}" || echo "inspect_artifacts needs conda-forge-ci-setup >=4.9.4" ( endgroup "Inspecting artifacts" ) 2> /dev/null ( startgroup "Validating outputs" ) 2> /dev/null diff --git a/.scripts/run_osx_build.sh b/.scripts/run_osx_build.sh index 4ebc38f..ee996f4 100755 --- a/.scripts/run_osx_build.sh +++ b/.scripts/run_osx_build.sh @@ -6,29 +6,41 @@ source .scripts/logging_utils.sh set -xe -MINIFORGE_HOME=${MINIFORGE_HOME:-${HOME}/miniforge3} - -( startgroup "Installing a fresh version of Miniforge" ) 2> /dev/null - -MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/latest/download" -MINIFORGE_FILE="Miniforge3-MacOSX-$(uname -m).sh" -curl -L -O "${MINIFORGE_URL}/${MINIFORGE_FILE}" -rm -rf ${MINIFORGE_HOME} -bash $MINIFORGE_FILE -b -p ${MINIFORGE_HOME} - -( endgroup "Installing a fresh version of Miniforge" ) 2> /dev/null +MINIFORGE_HOME="${MINIFORGE_HOME:-${HOME}/miniforge3}" +MINIFORGE_HOME="${MINIFORGE_HOME%/}" # remove trailing slash +export CONDA_BLD_PATH="${CONDA_BLD_PATH:-${MINIFORGE_HOME}/conda-bld}" + +( startgroup "Provisioning base env with micromamba" ) 2> /dev/null +MICROMAMBA_VERSION="1.5.10-0" +if [[ "$(uname -m)" == "arm64" ]]; then + osx_arch="osx-arm64" +else + osx_arch="osx-64" +fi +MICROMAMBA_URL="https://github.com/mamba-org/micromamba-releases/releases/download/${MICROMAMBA_VERSION}/micromamba-${osx_arch}" +MAMBA_ROOT_PREFIX="${MINIFORGE_HOME}-micromamba-$(date +%s)" +echo "Downloading micromamba ${MICROMAMBA_VERSION}" +micromamba_exe="$(mktemp -d)/micromamba" +curl -L -o "${micromamba_exe}" "${MICROMAMBA_URL}" +chmod +x "${micromamba_exe}" +echo "Creating environment" +"${micromamba_exe}" create --yes --root-prefix "${MAMBA_ROOT_PREFIX}" --prefix "${MINIFORGE_HOME}" \ + --channel conda-forge \ + pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" +echo "Moving pkgs cache from ${MAMBA_ROOT_PREFIX} to ${MINIFORGE_HOME}" +mv "${MAMBA_ROOT_PREFIX}/pkgs" "${MINIFORGE_HOME}" +echo "Cleaning up micromamba" +rm -rf "${MAMBA_ROOT_PREFIX}" "${micromamba_exe}" || true +( endgroup "Provisioning base env with micromamba" ) 2> /dev/null ( startgroup "Configuring conda" ) 2> /dev/null - -source ${MINIFORGE_HOME}/etc/profile.d/conda.sh +echo "Activating environment" +source "${MINIFORGE_HOME}/etc/profile.d/conda.sh" conda activate base export CONDA_SOLVER="libmamba" export CONDA_LIBMAMBA_SOLVER_NO_CHANNELS_FROM_INSTALLED=1 -mamba install --update-specs --quiet --yes --channel conda-forge --strict-channel-priority \ - pip mamba conda-build conda-forge-ci-setup=4 "conda-build>=24.1" -mamba update --update-specs --yes --quiet --channel conda-forge --strict-channel-priority \ - pip mamba conda-build conda-forge-ci-setup=4 "conda-build>=24.1" + @@ -84,8 +96,8 @@ else ( startgroup "Inspecting artifacts" ) 2> /dev/null - # inspect_artifacts was only added in conda-forge-ci-setup 4.6.0 - command -v inspect_artifacts >/dev/null 2>&1 && inspect_artifacts || echo "inspect_artifacts needs conda-forge-ci-setup >=4.6.0" + # inspect_artifacts was only added in conda-forge-ci-setup 4.9.4 + command -v inspect_artifacts >/dev/null 2>&1 && inspect_artifacts --recipe-dir ./recipe -m ./.ci_support/${CONFIG}.yaml || echo "inspect_artifacts needs conda-forge-ci-setup >=4.9.4" ( endgroup "Inspecting artifacts" ) 2> /dev/null ( startgroup "Validating outputs" ) 2> /dev/null diff --git a/README.md b/README.md index ab83b1f..fa21a0f 100644 --- a/README.md +++ b/README.md @@ -29,59 +29,59 @@ Current build status - + - + - + - + - + - + - + - + diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 33a441c..013bdc1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -2,6 +2,31 @@ # update the conda-forge.yml and/or the recipe/meta.yaml. # -*- mode: yaml -*- -jobs: - - template: ./.azure-pipelines/azure-pipelines-linux.yml - - template: ./.azure-pipelines/azure-pipelines-osx.yml \ No newline at end of file +stages: +- stage: Check + jobs: + - job: Skip + pool: + vmImage: 'ubuntu-22.04' + variables: + DECODE_PERCENTS: 'false' + RET: 'true' + steps: + - checkout: self + fetchDepth: '2' + - bash: | + git_log=`git log --max-count=1 --skip=1 --pretty=format:"%B" | tr "\n" " "` + echo "##vso[task.setvariable variable=log]$git_log" + displayName: Obtain commit message + - bash: echo "##vso[task.setvariable variable=RET]false" + condition: and(eq(variables['Build.Reason'], 'PullRequest'), or(contains(variables.log, '[skip azp]'), contains(variables.log, '[azp skip]'), contains(variables.log, '[skip ci]'), contains(variables.log, '[ci skip]'))) + displayName: Skip build? + - bash: echo "##vso[task.setvariable variable=start_main;isOutput=true]$RET" + name: result + displayName: Export result +- stage: Build + condition: and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true')) + dependsOn: Check + jobs: + - template: ./.azure-pipelines/azure-pipelines-linux.yml + - template: ./.azure-pipelines/azure-pipelines-osx.yml \ No newline at end of file diff --git a/build-locally.py b/build-locally.py index 8ac9b84..c4a56c6 100755 --- a/build-locally.py +++ b/build-locally.py @@ -1,5 +1,5 @@ #!/bin/sh -"""exec' "python3" "$0" "$@" #""" # fmt: off # fmt: on +"""exec" "python3" "$0" "$@" #""" # fmt: off # fmt: on # # This file has been generated by conda-smithy in order to build the recipe # locally. @@ -26,6 +26,13 @@ def setup_environment(ns): os.path.dirname(__file__), "miniforge3" ) + # The default cache location might not be writable using docker on macOS. + if ns.config.startswith("linux") and platform.system() == "Darwin": + os.environ["CONDA_FORGE_DOCKER_RUN_ARGS"] = ( + os.environ.get("CONDA_FORGE_DOCKER_RUN_ARGS", "") + + " -e RATTLER_CACHE_DIR=/tmp/rattler_cache" + ) + def run_docker_build(ns): script = ".scripts/run_docker_build.sh"
VariantStatus
linux_64_numpy1.22python3.10.____cpythonpython_implcpythonlinux_64_numpy1.22python3.10.____cpython - variant + variant
linux_64_numpy1.22python3.9.____cpythonpython_implcpythonlinux_64_numpy1.22python3.9.____cpython - variant + variant
linux_64_numpy1.23python3.11.____cpythonpython_implcpythonlinux_64_numpy1.23python3.11.____cpython - variant + variant
linux_64_numpy1.26python3.12.____cpythonpython_implcpythonlinux_64_numpy1.26python3.12.____cpython - variant + variant
osx_64_numpy1.22python3.10.____cpythonpython_implcpythonosx_64_numpy1.22python3.10.____cpython - variant + variant
osx_64_numpy1.22python3.9.____cpythonpython_implcpythonosx_64_numpy1.22python3.9.____cpython - variant + variant
osx_64_numpy1.23python3.11.____cpythonpython_implcpythonosx_64_numpy1.23python3.11.____cpython - variant + variant
osx_64_numpy1.26python3.12.____cpythonpython_implcpythonosx_64_numpy1.26python3.12.____cpython - variant + variant