From ac2dbf2a2062b01a593d57c94f8c1ba309572e06 Mon Sep 17 00:00:00 2001 From: regro-cf-autotick-bot <36490558+regro-cf-autotick-bot@users.noreply.github.com> Date: Sat, 30 Sep 2023 08:42:08 +0000 Subject: [PATCH 1/2] Rebuild for libboost 1.82 --- .../migrations/boost_cpp_to_libboost.yaml | 20 +++++++++++++++++++ conda-forge.yml | 4 ++-- recipe/meta.yaml | 5 ++--- 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 .ci_support/migrations/boost_cpp_to_libboost.yaml diff --git a/.ci_support/migrations/boost_cpp_to_libboost.yaml b/.ci_support/migrations/boost_cpp_to_libboost.yaml new file mode 100644 index 0000000..5e0e2c2 --- /dev/null +++ b/.ci_support/migrations/boost_cpp_to_libboost.yaml @@ -0,0 +1,20 @@ +migrator_ts: 1695775149 +__migrator: + kind: version + migration_number: 1 + bump_number: 1 + commit_message: "Rebuild for libboost 1.82" + # limit the number of prs for ramp-up + pr_limit: 10 +libboost_devel: + - 1.82 +# This migration is matched with a piggy-back migrator +# (see https://github.com/regro/cf-scripts/pull/1668) +# that will replace boost-cpp with libboost-devel +boost_cpp: + - 1.82 +# same for boost -> libboost-python-devel +libboost_python_devel: + - 1.82 +boost: + - 1.82 diff --git a/conda-forge.yml b/conda-forge.yml index b192a05..9f93f71 100644 --- a/conda-forge.yml +++ b/conda-forge.yml @@ -8,6 +8,8 @@ build_platform: linux_aarch64: linux_64 linux_ppc64le: linux_64 osx_arm64: osx_64 +conda_build: + pkg_format: '2' conda_forge_output_validation: true github: branch_name: main @@ -16,5 +18,3 @@ provider: linux_aarch64: default linux_ppc64le: default test: native_and_emulated -conda_build: - pkg_format: '2' diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 51bef30..ee0ca75 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -17,7 +17,7 @@ source: - 0006-lib-types-Declare-types-used-with-digital_filter_-ba.patch build: - number: 0 + number: 1 run_exports: - {{ pin_subpackage('uhd', min_pin='x.x.x', max_pin='x.x.x') }} entry_points: # [not linux] @@ -36,7 +36,7 @@ requirements: - pkg-config host: - - boost-cpp + - libboost-devel - libusb - mako >=0.5.0 - ncurses # [not win] @@ -48,7 +48,6 @@ requirements: - setuptools run: - - boost-cpp - ncurses # [not win] - {{ pin_compatible('numpy') }} - python From 5d53ea7c4876681c13da38d07c846ce39d81ad71 Mon Sep 17 00:00:00 2001 From: regro-cf-autotick-bot <36490558+regro-cf-autotick-bot@users.noreply.github.com> Date: Sat, 30 Sep 2023 08:42:37 +0000 Subject: [PATCH 2/2] MNT: Re-rendered with conda-build 3.26.1, conda-smithy 3.26.3, and conda-forge-pinning 2023.09.30.00.39.51 --- .azure-pipelines/azure-pipelines-win.yml | 62 ++-------- ...hon3.10.____cpythonpython_implcpython.yaml | 8 +- ...thon3.8.____cpythonpython_implcpython.yaml | 8 +- ...2python3.9.____73_pypypython_implpypy.yaml | 8 +- ...thon3.9.____cpythonpython_implcpython.yaml | 8 +- ...hon3.11.____cpythonpython_implcpython.yaml | 8 +- ...hon3.10.____cpythonpython_implcpython.yaml | 8 +- ...thon3.8.____cpythonpython_implcpython.yaml | 8 +- ...2python3.9.____73_pypypython_implpypy.yaml | 8 +- ...thon3.9.____cpythonpython_implcpython.yaml | 8 +- ...hon3.11.____cpythonpython_implcpython.yaml | 8 +- ...hon3.10.____cpythonpython_implcpython.yaml | 8 +- ...thon3.8.____cpythonpython_implcpython.yaml | 8 +- ...2python3.9.____73_pypypython_implpypy.yaml | 8 +- ...thon3.9.____cpythonpython_implcpython.yaml | 8 +- ...hon3.11.____cpythonpython_implcpython.yaml | 8 +- .ci_support/migrations/python311.yaml | 37 ------ ...hon3.10.____cpythonpython_implcpython.yaml | 8 +- ...thon3.8.____cpythonpython_implcpython.yaml | 8 +- ...2python3.9.____73_pypypython_implpypy.yaml | 8 +- ...thon3.9.____cpythonpython_implcpython.yaml | 8 +- ...hon3.11.____cpythonpython_implcpython.yaml | 8 +- ...arm64_numpy1.22python3.10.____cpython.yaml | 8 +- ..._arm64_numpy1.22python3.8.____cpython.yaml | 8 +- ..._arm64_numpy1.22python3.9.____cpython.yaml | 8 +- ...arm64_numpy1.23python3.11.____cpython.yaml | 8 +- ...hon3.10.____cpythonpython_implcpython.yaml | 8 +- ...thon3.8.____cpythonpython_implcpython.yaml | 8 +- ...2python3.9.____73_pypypython_implpypy.yaml | 8 +- ...thon3.9.____cpythonpython_implcpython.yaml | 8 +- ...hon3.11.____cpythonpython_implcpython.yaml | 8 +- .scripts/build_steps.sh | 9 +- .scripts/logging_utils.sh | 4 +- .scripts/run_osx_build.sh | 8 +- .scripts/run_win_build.bat | 115 ++++++++++++++++++ 35 files changed, 223 insertions(+), 244 deletions(-) delete mode 100644 .ci_support/migrations/python311.yaml create mode 100755 .scripts/run_win_build.bat diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 0cc6f73..bf93e02 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -34,6 +34,7 @@ jobs: UPLOAD_TEMP: D:\\tmp steps: + - task: PythonScript@0 displayName: 'Download Miniforge' inputs: @@ -52,38 +53,17 @@ jobs: displayName: Add conda to PATH - script: | - call activate base - mamba.exe install "python=3.10" conda-build conda pip boa conda-forge-ci-setup=3 -c conda-forge --strict-channel-priority --yes - displayName: Install conda-build - - - script: set PYTHONUNBUFFERED=1 - displayName: Set PYTHONUNBUFFERED - - # Configure the VM - - script: | - call activate base - setup_conda_rc .\ ".\recipe" .\.ci_support\%CONFIG%.yaml - displayName: conda-forge CI setup - - # Configure the VM. - - script: | - set "CI=azure" - call activate base - run_conda_forge_build_setup - displayName: conda-forge build setup - - - script: | - call activate base - if EXIST LICENSE.txt ( - copy LICENSE.txt "recipe\\recipe-scripts-license.txt" - ) - if NOT [%HOST_PLATFORM%] == [%BUILD_PLATFORM%] ( - set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --no-test" - ) - conda.exe mambabuild "recipe" -m .ci_support\%CONFIG%.yaml --suppress-variables %EXTRA_CB_OPTIONS% - displayName: Build recipe + call ".scripts\run_win_build.bat" + displayName: Run Windows build env: PYTHONUNBUFFERED: 1 + CONFIG: $(CONFIG) + CI: azure + UPLOAD_PACKAGES: $(UPLOAD_PACKAGES) + UPLOAD_TEMP: $(UPLOAD_TEMP) + BINSTAR_TOKEN: $(BINSTAR_TOKEN) + FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) + STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) - script: | set CI=azure set CI_RUN_ID=$(build.BuildNumber).$(system.JobAttempt) @@ -110,24 +90,4 @@ jobs: condition: not(eq(variables.ENV_ARTIFACT_PATH, '')) inputs: targetPath: $(ENV_ARTIFACT_PATH) - artifactName: $(ENV_ARTIFACT_NAME) - - script: | - set "FEEDSTOCK_NAME=%BUILD_REPOSITORY_NAME:*/=%" - call activate base - validate_recipe_outputs "%FEEDSTOCK_NAME%" - displayName: Validate Recipe Outputs - - - script: | - set "GIT_BRANCH=%BUILD_SOURCEBRANCHNAME%" - set "FEEDSTOCK_NAME=%BUILD_REPOSITORY_NAME:*/=%" - set "TEMP=$(UPLOAD_TEMP)" - if not exist "%TEMP%\" md "%TEMP%" - set "TMP=%TEMP%" - call activate base - upload_package --validate --feedstock-name="%FEEDSTOCK_NAME%" .\ ".\recipe" .ci_support\%CONFIG%.yaml - displayName: Upload package - env: - BINSTAR_TOKEN: $(BINSTAR_TOKEN) - FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) - STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) - condition: and(succeeded(), not(eq(variables['UPLOAD_PACKAGES'], 'False')), not(eq(variables['Build.Reason'], 'PullRequest'))) \ No newline at end of file + artifactName: $(ENV_ARTIFACT_NAME) \ No newline at end of file diff --git a/.ci_support/linux_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml b/.ci_support/linux_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml index 38b066e..97c60c5 100644 --- a/.ci_support/linux_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml b/.ci_support/linux_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml index c79e939..aba1a2e 100644 --- a/.ci_support/linux_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml b/.ci_support/linux_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml index ceff028..ec6b3d6 100644 --- a/.ci_support/linux_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml +++ b/.ci_support/linux_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml b/.ci_support/linux_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml index c1bbe4c..3e5197b 100644 --- a/.ci_support/linux_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml b/.ci_support/linux_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml index 9e421f7..8e08a77 100644 --- a/.ci_support/linux_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.23' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_aarch64_numpy1.22python3.10.____cpythonpython_implcpython.yaml b/.ci_support/linux_aarch64_numpy1.22python3.10.____cpythonpython_implcpython.yaml index 2b0334b..1a45ad3 100644 --- a/.ci_support/linux_aarch64_numpy1.22python3.10.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_aarch64_numpy1.22python3.10.____cpythonpython_implcpython.yaml @@ -1,7 +1,5 @@ BUILD: - aarch64-conda_cos7-linux-gnu -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -20,13 +18,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -37,7 +35,7 @@ python_impl: target_platform: - linux-aarch64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_aarch64_numpy1.22python3.8.____cpythonpython_implcpython.yaml b/.ci_support/linux_aarch64_numpy1.22python3.8.____cpythonpython_implcpython.yaml index 9a9ce4d..183c964 100644 --- a/.ci_support/linux_aarch64_numpy1.22python3.8.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_aarch64_numpy1.22python3.8.____cpythonpython_implcpython.yaml @@ -1,7 +1,5 @@ BUILD: - aarch64-conda_cos7-linux-gnu -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -20,13 +18,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -37,7 +35,7 @@ python_impl: target_platform: - linux-aarch64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_aarch64_numpy1.22python3.9.____73_pypypython_implpypy.yaml b/.ci_support/linux_aarch64_numpy1.22python3.9.____73_pypypython_implpypy.yaml index 7262bcb..fe3799d 100644 --- a/.ci_support/linux_aarch64_numpy1.22python3.9.____73_pypypython_implpypy.yaml +++ b/.ci_support/linux_aarch64_numpy1.22python3.9.____73_pypypython_implpypy.yaml @@ -1,7 +1,5 @@ BUILD: - aarch64-conda_cos7-linux-gnu -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -20,13 +18,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -37,7 +35,7 @@ python_impl: target_platform: - linux-aarch64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_aarch64_numpy1.22python3.9.____cpythonpython_implcpython.yaml b/.ci_support/linux_aarch64_numpy1.22python3.9.____cpythonpython_implcpython.yaml index 2754609..c531f8f 100644 --- a/.ci_support/linux_aarch64_numpy1.22python3.9.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_aarch64_numpy1.22python3.9.____cpythonpython_implcpython.yaml @@ -1,7 +1,5 @@ BUILD: - aarch64-conda_cos7-linux-gnu -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -20,13 +18,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -37,7 +35,7 @@ python_impl: target_platform: - linux-aarch64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_aarch64_numpy1.23python3.11.____cpythonpython_implcpython.yaml b/.ci_support/linux_aarch64_numpy1.23python3.11.____cpythonpython_implcpython.yaml index 846c20c..5d3efae 100644 --- a/.ci_support/linux_aarch64_numpy1.23python3.11.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_aarch64_numpy1.23python3.11.____cpythonpython_implcpython.yaml @@ -1,7 +1,5 @@ BUILD: - aarch64-conda_cos7-linux-gnu -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -20,13 +18,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.23' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -37,7 +35,7 @@ python_impl: target_platform: - linux-aarch64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_ppc64le_numpy1.22python3.10.____cpythonpython_implcpython.yaml b/.ci_support/linux_ppc64le_numpy1.22python3.10.____cpythonpython_implcpython.yaml index 48c1f81..c14affb 100644 --- a/.ci_support/linux_ppc64le_numpy1.22python3.10.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_ppc64le_numpy1.22python3.10.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-ppc64le uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_ppc64le_numpy1.22python3.8.____cpythonpython_implcpython.yaml b/.ci_support/linux_ppc64le_numpy1.22python3.8.____cpythonpython_implcpython.yaml index 51de8c1..257b2e4 100644 --- a/.ci_support/linux_ppc64le_numpy1.22python3.8.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_ppc64le_numpy1.22python3.8.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-ppc64le uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_ppc64le_numpy1.22python3.9.____73_pypypython_implpypy.yaml b/.ci_support/linux_ppc64le_numpy1.22python3.9.____73_pypypython_implpypy.yaml index 725767a..69fb812 100644 --- a/.ci_support/linux_ppc64le_numpy1.22python3.9.____73_pypypython_implpypy.yaml +++ b/.ci_support/linux_ppc64le_numpy1.22python3.9.____73_pypypython_implpypy.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-ppc64le uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_ppc64le_numpy1.22python3.9.____cpythonpython_implcpython.yaml b/.ci_support/linux_ppc64le_numpy1.22python3.9.____cpythonpython_implcpython.yaml index b3e40db..7c46958 100644 --- a/.ci_support/linux_ppc64le_numpy1.22python3.9.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_ppc64le_numpy1.22python3.9.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-ppc64le uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/linux_ppc64le_numpy1.23python3.11.____cpythonpython_implcpython.yaml b/.ci_support/linux_ppc64le_numpy1.23python3.11.____cpythonpython_implcpython.yaml index f8a3595..ff55b32 100644 --- a/.ci_support/linux_ppc64le_numpy1.23python3.11.____cpythonpython_implcpython.yaml +++ b/.ci_support/linux_ppc64le_numpy1.23python3.11.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - gcc c_compiler_version: @@ -16,13 +14,13 @@ cxx_compiler_version: - '12' docker_image: - quay.io/condaforge/linux-anvil-cos7-x86_64 +libboost_devel: +- '1.82' ncurses: - '6' numpy: - '1.23' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - linux-ppc64le uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/migrations/python311.yaml b/.ci_support/migrations/python311.yaml deleted file mode 100644 index 2715ab2..0000000 --- a/.ci_support/migrations/python311.yaml +++ /dev/null @@ -1,37 +0,0 @@ -migrator_ts: 1666686085 -__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 # 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: 10 # this will make the bot retry "not solvable" stuff 10 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.11.* *_cpython -# additional entries to add for zip_keys -numpy: - - 1.23 -python_impl: - - cpython diff --git a/.ci_support/osx_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml b/.ci_support/osx_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml index 2a6e921..16923a5 100644 --- a/.ci_support/osx_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml +++ b/.ci_support/osx_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml @@ -1,7 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: - '10.9' -boost_cpp: -- 1.78.0 c_compiler: - clang c_compiler_version: @@ -14,6 +12,8 @@ cxx_compiler: - clangxx cxx_compiler_version: - '15' +libboost_devel: +- '1.82' macos_machine: - x86_64-apple-darwin13.4.0 ncurses: @@ -21,8 +21,6 @@ ncurses: numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - osx-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/osx_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml b/.ci_support/osx_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml index 9dab80e..ee0ca04 100644 --- a/.ci_support/osx_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml +++ b/.ci_support/osx_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml @@ -1,7 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: - '10.9' -boost_cpp: -- 1.78.0 c_compiler: - clang c_compiler_version: @@ -14,6 +12,8 @@ cxx_compiler: - clangxx cxx_compiler_version: - '15' +libboost_devel: +- '1.82' macos_machine: - x86_64-apple-darwin13.4.0 ncurses: @@ -21,8 +21,6 @@ ncurses: numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - osx-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/osx_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml b/.ci_support/osx_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml index 7bc2831..5964cd4 100644 --- a/.ci_support/osx_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml +++ b/.ci_support/osx_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml @@ -1,7 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: - '10.9' -boost_cpp: -- 1.78.0 c_compiler: - clang c_compiler_version: @@ -14,6 +12,8 @@ cxx_compiler: - clangxx cxx_compiler_version: - '15' +libboost_devel: +- '1.82' macos_machine: - x86_64-apple-darwin13.4.0 ncurses: @@ -21,8 +21,6 @@ ncurses: numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - osx-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/osx_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml b/.ci_support/osx_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml index 4621e76..3281f3f 100644 --- a/.ci_support/osx_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml +++ b/.ci_support/osx_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml @@ -1,7 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: - '10.9' -boost_cpp: -- 1.78.0 c_compiler: - clang c_compiler_version: @@ -14,6 +12,8 @@ cxx_compiler: - clangxx cxx_compiler_version: - '15' +libboost_devel: +- '1.82' macos_machine: - x86_64-apple-darwin13.4.0 ncurses: @@ -21,8 +21,6 @@ ncurses: numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - osx-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/osx_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml b/.ci_support/osx_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml index eab67e7..2caaa57 100644 --- a/.ci_support/osx_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml +++ b/.ci_support/osx_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml @@ -1,7 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: - '10.9' -boost_cpp: -- 1.78.0 c_compiler: - clang c_compiler_version: @@ -14,6 +12,8 @@ cxx_compiler: - clangxx cxx_compiler_version: - '15' +libboost_devel: +- '1.82' macos_machine: - x86_64-apple-darwin13.4.0 ncurses: @@ -21,8 +21,6 @@ ncurses: numpy: - '1.23' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - osx-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/osx_arm64_numpy1.22python3.10.____cpython.yaml b/.ci_support/osx_arm64_numpy1.22python3.10.____cpython.yaml index 9e66be4..b6f4bdb 100644 --- a/.ci_support/osx_arm64_numpy1.22python3.10.____cpython.yaml +++ b/.ci_support/osx_arm64_numpy1.22python3.10.____cpython.yaml @@ -1,7 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: - '11.0' -boost_cpp: -- 1.78.0 c_compiler: - clang c_compiler_version: @@ -14,6 +12,8 @@ cxx_compiler: - clangxx cxx_compiler_version: - '15' +libboost_devel: +- '1.82' macos_machine: - arm64-apple-darwin20.0.0 ncurses: @@ -21,8 +21,6 @@ ncurses: numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - osx-arm64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/osx_arm64_numpy1.22python3.8.____cpython.yaml b/.ci_support/osx_arm64_numpy1.22python3.8.____cpython.yaml index 91ba0db..39d9ea3 100644 --- a/.ci_support/osx_arm64_numpy1.22python3.8.____cpython.yaml +++ b/.ci_support/osx_arm64_numpy1.22python3.8.____cpython.yaml @@ -1,7 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: - '11.0' -boost_cpp: -- 1.78.0 c_compiler: - clang c_compiler_version: @@ -14,6 +12,8 @@ cxx_compiler: - clangxx cxx_compiler_version: - '15' +libboost_devel: +- '1.82' macos_machine: - arm64-apple-darwin20.0.0 ncurses: @@ -21,8 +21,6 @@ ncurses: numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - osx-arm64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/osx_arm64_numpy1.22python3.9.____cpython.yaml b/.ci_support/osx_arm64_numpy1.22python3.9.____cpython.yaml index e5c5012..3a27f26 100644 --- a/.ci_support/osx_arm64_numpy1.22python3.9.____cpython.yaml +++ b/.ci_support/osx_arm64_numpy1.22python3.9.____cpython.yaml @@ -1,7 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: - '11.0' -boost_cpp: -- 1.78.0 c_compiler: - clang c_compiler_version: @@ -14,6 +12,8 @@ cxx_compiler: - clangxx cxx_compiler_version: - '15' +libboost_devel: +- '1.82' macos_machine: - arm64-apple-darwin20.0.0 ncurses: @@ -21,8 +21,6 @@ ncurses: numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - osx-arm64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/osx_arm64_numpy1.23python3.11.____cpython.yaml b/.ci_support/osx_arm64_numpy1.23python3.11.____cpython.yaml index bc0146f..9dcacf5 100644 --- a/.ci_support/osx_arm64_numpy1.23python3.11.____cpython.yaml +++ b/.ci_support/osx_arm64_numpy1.23python3.11.____cpython.yaml @@ -1,7 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: - '11.0' -boost_cpp: -- 1.78.0 c_compiler: - clang c_compiler_version: @@ -14,6 +12,8 @@ cxx_compiler: - clangxx cxx_compiler_version: - '15' +libboost_devel: +- '1.82' macos_machine: - arm64-apple-darwin20.0.0 ncurses: @@ -21,8 +21,6 @@ ncurses: numpy: - '1.23' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -33,7 +31,7 @@ python_impl: target_platform: - osx-arm64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - c_compiler_version - cxx_compiler_version diff --git a/.ci_support/win_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml b/.ci_support/win_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml index 132eab4..79f82cf 100644 --- a/.ci_support/win_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml +++ b/.ci_support/win_64_numpy1.22python3.10.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - vs2019 channel_sources: @@ -8,11 +6,11 @@ channel_targets: - conda-forge main cxx_compiler: - vs2019 +libboost_devel: +- '1.82' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -23,7 +21,7 @@ python_impl: target_platform: - win-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - python - numpy diff --git a/.ci_support/win_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml b/.ci_support/win_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml index 3a6f2fd..1bc9368 100644 --- a/.ci_support/win_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml +++ b/.ci_support/win_64_numpy1.22python3.8.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - vs2019 channel_sources: @@ -8,11 +6,11 @@ channel_targets: - conda-forge main cxx_compiler: - vs2019 +libboost_devel: +- '1.82' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -23,7 +21,7 @@ python_impl: target_platform: - win-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - python - numpy diff --git a/.ci_support/win_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml b/.ci_support/win_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml index 79e30e5..032f821 100644 --- a/.ci_support/win_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml +++ b/.ci_support/win_64_numpy1.22python3.9.____73_pypypython_implpypy.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - vs2019 channel_sources: @@ -8,11 +6,11 @@ channel_targets: - conda-forge main cxx_compiler: - vs2019 +libboost_devel: +- '1.82' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -23,7 +21,7 @@ python_impl: target_platform: - win-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - python - numpy diff --git a/.ci_support/win_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml b/.ci_support/win_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml index e5f3414..24ff7f8 100644 --- a/.ci_support/win_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml +++ b/.ci_support/win_64_numpy1.22python3.9.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - vs2019 channel_sources: @@ -8,11 +6,11 @@ channel_targets: - conda-forge main cxx_compiler: - vs2019 +libboost_devel: +- '1.82' numpy: - '1.22' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -23,7 +21,7 @@ python_impl: target_platform: - win-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - python - numpy diff --git a/.ci_support/win_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml b/.ci_support/win_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml index 34c1c3d..0561f63 100644 --- a/.ci_support/win_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml +++ b/.ci_support/win_64_numpy1.23python3.11.____cpythonpython_implcpython.yaml @@ -1,5 +1,3 @@ -boost_cpp: -- 1.78.0 c_compiler: - vs2019 channel_sources: @@ -8,11 +6,11 @@ channel_targets: - conda-forge main cxx_compiler: - vs2019 +libboost_devel: +- '1.82' numpy: - '1.23' pin_run_as_build: - boost-cpp: - max_pin: x.x.x python: min_pin: x.x max_pin: x.x @@ -23,7 +21,7 @@ python_impl: target_platform: - win-64 uhd: -- 4.4.0 +- 4.5.0 zip_keys: - - python - numpy diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index a6b09f6..322832b 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -31,11 +31,10 @@ pkgs_dirs: CONDARC - -mamba install --update-specs --yes --quiet --channel conda-forge \ - conda-build pip boa conda-forge-ci-setup=3 -mamba update --update-specs --yes --quiet --channel conda-forge \ - conda-build pip boa conda-forge-ci-setup=3 +mamba install --update-specs --yes --quiet --channel conda-forge --strict-channel-priority \ + pip mamba conda-build boa conda-forge-ci-setup=3 +mamba update --update-specs --yes --quiet --channel conda-forge --strict-channel-priority \ + pip mamba conda-build boa conda-forge-ci-setup # set up the condarc setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" diff --git a/.scripts/logging_utils.sh b/.scripts/logging_utils.sh index 57bc95c..aff009f 100644 --- a/.scripts/logging_utils.sh +++ b/.scripts/logging_utils.sh @@ -12,7 +12,7 @@ function startgroup { echo "##[group]$1";; travis ) echo "$1" - echo -en 'travis_fold:start:'"${1// /}"'\\r';; + echo -en 'travis_fold:start:'"${1// /}"'\r';; github_actions ) echo "::group::$1";; * ) @@ -28,7 +28,7 @@ function endgroup { azure ) echo "##[endgroup]";; travis ) - echo -en 'travis_fold:end:'"${1// /}"'\\r';; + echo -en 'travis_fold:end:'"${1// /}"'\r';; github_actions ) echo "::endgroup::";; esac diff --git a/.scripts/run_osx_build.sh b/.scripts/run_osx_build.sh index 3969edf..cd9a88f 100755 --- a/.scripts/run_osx_build.sh +++ b/.scripts/run_osx_build.sh @@ -23,10 +23,10 @@ bash $MINIFORGE_FILE -b -p ${MINIFORGE_HOME} source ${MINIFORGE_HOME}/etc/profile.d/conda.sh conda activate base -mamba install --update-specs --quiet --yes --channel conda-forge \ - conda-build pip boa conda-forge-ci-setup=3 -mamba update --update-specs --yes --quiet --channel conda-forge \ - conda-build pip boa conda-forge-ci-setup=3 +mamba install --update-specs --quiet --yes --channel conda-forge --strict-channel-priority \ + pip mamba conda-build boa conda-forge-ci-setup=3 +mamba update --update-specs --yes --quiet --channel conda-forge --strict-channel-priority \ + pip mamba conda-build boa conda-forge-ci-setup diff --git a/.scripts/run_win_build.bat b/.scripts/run_win_build.bat new file mode 100755 index 0000000..07d3445 --- /dev/null +++ b/.scripts/run_win_build.bat @@ -0,0 +1,115 @@ +:: PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here +:: will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent +:: changes to this script, consider a proposal to conda-smithy so that other feedstocks can also +:: benefit from the improvement. + +:: Note: we assume a Miniforge installation is available + +:: INPUTS (required environment variables) +:: CONFIG: name of the .ci_support/*.yaml file for this job +:: CI: azure, github_actions, or unset +:: UPLOAD_PACKAGES: true or false +:: UPLOAD_ON_BRANCH: true or false + +setlocal enableextensions enabledelayedexpansion + +call :start_group "Configuring conda" + +:: Activate the base conda environment +call activate base + +:: Provision the necessary dependencies to build the recipe later +echo Installing dependencies +mamba.exe install "python=3.10" pip mamba conda-build boa conda-forge-ci-setup=3 -c conda-forge --strict-channel-priority --yes +if !errorlevel! neq 0 exit /b !errorlevel! + +:: Set basic configuration +echo Setting up configuration +setup_conda_rc .\ ".\recipe" .\.ci_support\%CONFIG%.yaml +if !errorlevel! neq 0 exit /b !errorlevel! +echo Running build setup +CALL run_conda_forge_build_setup + + +if !errorlevel! neq 0 exit /b !errorlevel! + +if EXIST LICENSE.txt ( + echo Copying feedstock license + copy LICENSE.txt "recipe\\recipe-scripts-license.txt" +) +if NOT [%HOST_PLATFORM%] == [%BUILD_PLATFORM%] ( + set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --no-test" +) + +call :end_group + +:: Build the recipe +echo Building recipe +conda.exe mambabuild "recipe" -m .ci_support\%CONFIG%.yaml --suppress-variables %EXTRA_CB_OPTIONS% +if !errorlevel! neq 0 exit /b !errorlevel! + +:: Prepare some environment variables for the upload step +if /i "%CI%" == "github_actions" ( + set "FEEDSTOCK_NAME=%GITHUB_REPOSITORY:*/=%" + set "GIT_BRANCH=%GITHUB_REF:refs/heads/=%" + if /i "%GITHUB_EVENT_NAME%" == "pull_request" ( + set "IS_PR_BUILD=True" + ) else ( + set "IS_PR_BUILD=False" + ) + set "TEMP=%RUNNER_TEMP%" +) +if /i "%CI%" == "azure" ( + set "FEEDSTOCK_NAME=%BUILD_REPOSITORY_NAME:*/=%" + set "GIT_BRANCH=%BUILD_SOURCEBRANCHNAME%" + if /i "%BUILD_REASON%" == "PullRequest" ( + set "IS_PR_BUILD=True" + ) else ( + set "IS_PR_BUILD=False" + ) + set "TEMP=%UPLOAD_TEMP%" +) + +:: Validate +call :start_group "Validating outputs" +validate_recipe_outputs "%FEEDSTOCK_NAME%" +if !errorlevel! neq 0 exit /b !errorlevel! +call :end_group + +if /i "%UPLOAD_PACKAGES%" == "true" ( + if /i "%IS_PR_BUILD%" == "false" ( + call :start_group "Uploading packages" + if not exist "%TEMP%\" md "%TEMP%" + set "TMP=%TEMP%" + upload_package --validate --feedstock-name="%FEEDSTOCK_NAME%" .\ ".\recipe" .ci_support\%CONFIG%.yaml + if !errorlevel! neq 0 exit /b !errorlevel! + call :end_group + ) +) + +exit + +:: Logging subroutines + +:start_group +if /i "%CI%" == "github_actions" ( + echo ::group::%~1 + exit /b +) +if /i "%CI%" == "azure" ( + echo ##[group]%~1 + exit /b +) +echo %~1 +exit /b + +:end_group +if /i "%CI%" == "github_actions" ( + echo ::endgroup:: + exit /b +) +if /i "%CI%" == "azure" ( + echo ##[endgroup] + exit /b +) +exit /b \ No newline at end of file