From 513200debc864ee8db657da7284e8e831e9d1de3 Mon Sep 17 00:00:00 2001 From: "conda-forge-webservices[bot]" <121827174+conda-forge-webservices[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 07:52:52 +0000 Subject: [PATCH 1/6] dummy commit for rerendering --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 0ecafd8..4aadf8a 100644 --- a/README.md +++ b/README.md @@ -146,3 +146,6 @@ Feedstock Maintainers * [@conda-forge/r](https://github.com/orgs/conda-forge/teams/r/) * [@sebastian-luna-valero](https://github.com/sebastian-luna-valero/) + + + From 9b022261899c042c55a49f9950cccb2f55839b68 Mon Sep 17 00:00:00 2001 From: "conda-forge-webservices[bot]" <91080706+conda-forge-webservices[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 07:54:55 +0000 Subject: [PATCH 2/6] MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.39.1, and conda-forge-pinning 2024.09.17.07.18.09 --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 4aadf8a..0ecafd8 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,3 @@ Feedstock Maintainers * [@conda-forge/r](https://github.com/orgs/conda-forge/teams/r/) * [@sebastian-luna-valero](https://github.com/sebastian-luna-valero/) - - - From 70b99807bc496e715007d305e1cd710a44b3e7b1 Mon Sep 17 00:00:00 2001 From: Mervin Fansler Date: Tue, 17 Sep 2024 09:56:47 +0200 Subject: [PATCH 3/6] convert to compiled --- recipe/meta.yaml | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 696c21c..7c0979f 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -12,15 +12,27 @@ source: sha256: bb26368297f396766ca4b6f4d723713b64223d7f6bb20110ea3c7e9da33df7c7 build: - number: 0 - noarch: generic + number: 1 rpaths: - lib/R/lib/ - lib/ + missing_dso_whitelist: + - '*/R.dll' # [win] + - '*/Rblas.dll' # [win] + - '*/Rlapack.dll' # [win] requirements: build: - - {{ posix }}zip # [win] + - cross-r-base {{ r_base }} # [build_platform != target_platform] + - {{ compiler('c') }} # [not win] + - {{ stdlib('c') }} # [not win] + - {{ compiler('m2w64_c') }} # [win] + - {{ stdlib('m2w64_c') }} # [win] + - {{ posix }}filesystem # [win] + - {{ posix }}make + - {{ posix }}sed # [win] + - {{ posix }}coreutils # [win] + - {{ posix }}zip # [win] host: - r-base - r-formula @@ -42,32 +54,21 @@ test: - "\"%R%\" -e \"library('betareg')\"" # [win] about: - home: https://betareg.R-Forge.R-project.org/ + home: https://topmodels.R-Forge.R-project.org/betareg/ license: GPL-2.0-or-later - summary: "Beta regression for modeling beta-distributed dependent variables on the open unit interval (0, 1), e.g., rates and proportions, see Cribari-Neto and Zeileis (2010) . Moreover, extended-support beta regression models can accommodate dependent variables with boundary observations at - 0 and/or 1. For the classical beta regression model, alternative specifications are provided: Bias-corrected and bias-reduced estimation, finite mixture models, and recursive partitioning for beta regression, see Grün, Kosmidis, and Zeileis (2012) ." + summary: "Beta regression for modeling beta-distributed dependent variables on the open unit + interval (0, 1), e.g., rates and proportions, see Cribari-Neto and Zeileis (2010) + . Moreover, extended-support beta regression models can + accommodate dependent variables with boundary observations at 0 and/or 1. For the + classical beta regression model, alternative specifications are provided: Bias-corrected + and bias-reduced estimation, finite mixture models, and recursive partitioning for + beta regression, see Gr\xFCn, Kosmidis, and Zeileis (2012) ." license_family: GPL3 license_file: - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2 + - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3 extra: recipe-maintainers: - conda-forge/r - sebastian-luna-valero - -# Package: betareg -# Version: 3.1-2 -# Date: 2018-05-16 -# Title: Beta Regression -# Authors@R: c(person(given = "Achim", family = "Zeileis", role = c("aut", "cre"), email = "Achim.Zeileis@R-project.org"), person(given = "Francisco", family = "Cribari-Neto", role = "aut", email = "cribari@ufpe.br"), person(given = "Bettina", family = "Gruen", role = "aut", email = "Bettina.Gruen@jku.at"), person(given = "Ioannis", family = "Kosmidis", role = "aut", email = "ioannis@stats.ucl.ac.uk"), person(given = c("Alexandre", "B."), family = "Simas", role = "ctb", comment = "earlier version by"), person(given = c("Andrea", "V."), family = "Rocha", role = "ctb", comment = "earlier version by")) -# Description: Beta regression for modeling beta-distributed dependent variables, e.g., rates and proportions. In addition to maximum likelihood regression (for both mean and precision of a beta-distributed response), bias-corrected and bias-reduced estimation as well as finite mixture models and recursive partitioning for beta regressions are provided. -# Depends: R (>= 3.0.0) -# Imports: graphics, grDevices, methods, stats, flexmix, Formula, lmtest, modeltools, sandwich -# Suggests: car, lattice, partykit, strucchange -# License: GPL-2 | GPL-3 -# NeedsCompilation: no -# Packaged: 2019-05-16 09:55:07 UTC; zeileis -# Author: Achim Zeileis [aut, cre], Francisco Cribari-Neto [aut], Bettina Gruen [aut], Ioannis Kosmidis [aut], Alexandre B. Simas [ctb] (earlier version by), Andrea V. Rocha [ctb] (earlier version by) -# Maintainer: Achim Zeileis -# Repository: CRAN -# Date/Publication: 2019-05-16 19:52:50 UTC From 51f3a78aeeead75eb71307d71b46f9ad7f0c596e Mon Sep 17 00:00:00 2001 From: Mervin Fansler Date: Tue, 17 Sep 2024 09:57:08 +0200 Subject: [PATCH 4/6] Update build.sh --- recipe/build.sh | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/recipe/build.sh b/recipe/build.sh index 0f9adb7..b8d2635 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -1,34 +1,3 @@ #!/bin/bash -if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then - export DISABLE_AUTOBREW=1 - $R CMD INSTALL --build . -else - mkdir -p $PREFIX/lib/R/library/betareg - mv * $PREFIX/lib/R/library/betareg - if [[ $target_platform == osx-64 ]]; then - pushd $PREFIX - for libdir in lib/R/lib lib/R/modules lib/R/library lib/R/bin/exec sysroot/usr/lib; do - pushd $libdir || exit 1 - for SHARED_LIB in $(find . -type f -iname "*.dylib" -or -iname "*.so" -or -iname "R"); do - echo "fixing SHARED_LIB $SHARED_LIB" - install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5.0-MRO/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true - install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true - install_name_tool -change /usr/local/clang4/lib/libomp.dylib "$PREFIX"/lib/libomp.dylib $SHARED_LIB || true - install_name_tool -change /usr/local/gfortran/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true - install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true - install_name_tool -change /usr/local/gfortran/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true - install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true - install_name_tool -change /usr/lib/libgcc_s.1.dylib "$PREFIX"/lib/libgcc_s.1.dylib $SHARED_LIB || true - install_name_tool -change /usr/lib/libiconv.2.dylib "$PREFIX"/sysroot/usr/lib/libiconv.2.dylib $SHARED_LIB || true - install_name_tool -change /usr/lib/libncurses.5.4.dylib "$PREFIX"/sysroot/usr/lib/libncurses.5.4.dylib $SHARED_LIB || true - install_name_tool -change /usr/lib/libicucore.A.dylib "$PREFIX"/sysroot/usr/lib/libicucore.A.dylib $SHARED_LIB || true - install_name_tool -change /usr/lib/libexpat.1.dylib "$PREFIX"/lib/libexpat.1.dylib $SHARED_LIB || true - install_name_tool -change /usr/lib/libcurl.4.dylib "$PREFIX"/lib/libcurl.4.dylib $SHARED_LIB || true - install_name_tool -change /usr/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true - install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true - done - popd - done - popd - fi -fi +export DISABLE_AUTOBREW=1 +${R} CMD INSTALL --build . ${R_ARGS} From cb8c1ee3876e7bfd325e2246cdf70a8d536e80c6 Mon Sep 17 00:00:00 2001 From: Mervin Fansler Date: Tue, 17 Sep 2024 09:57:25 +0200 Subject: [PATCH 5/6] Update bld.bat --- recipe/bld.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe/bld.bat b/recipe/bld.bat index b7e1203..01bc5ea 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -1,2 +1,2 @@ -"%R%" CMD INSTALL --build . -IF %ERRORLEVEL% NEQ 0 exit 1 +"%R%" CMD INSTALL --build . %R_ARGS% +IF %ERRORLEVEL% NEQ 0 exit /B 1 From 8e69a360c85bc5f64b61eb176b8cd11a2fda8066 Mon Sep 17 00:00:00 2001 From: "conda-forge-webservices[bot]" <91080706+conda-forge-webservices[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 08:02:12 +0000 Subject: [PATCH 6/6] MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.39.1, and conda-forge-pinning 2024.09.17.07.18.09 --- .azure-pipelines/azure-pipelines-osx.yml | 40 ++++++++ .azure-pipelines/azure-pipelines-win.yml | 55 ++++++++++ .ci_support/linux_64_r_base4.3.yaml | 11 ++ .ci_support/linux_64_r_base4.4.yaml | 11 ++ .ci_support/osx_64_r_base4.3.yaml | 28 +++++ .ci_support/osx_64_r_base4.4.yaml | 28 +++++ .ci_support/win_64_r_base4.3.yaml | 22 ++++ .ci_support/win_64_r_base4.4.yaml | 22 ++++ .scripts/run_osx_build.sh | 104 +++++++++++++++++++ .scripts/run_win_build.bat | 125 +++++++++++++++++++++++ README.md | 77 +++++++++++++- azure-pipelines.yml | 4 +- 12 files changed, 521 insertions(+), 6 deletions(-) create mode 100755 .azure-pipelines/azure-pipelines-osx.yml create mode 100755 .azure-pipelines/azure-pipelines-win.yml create mode 100644 .ci_support/osx_64_r_base4.3.yaml create mode 100644 .ci_support/osx_64_r_base4.4.yaml create mode 100644 .ci_support/win_64_r_base4.3.yaml create mode 100644 .ci_support/win_64_r_base4.4.yaml create mode 100755 .scripts/run_osx_build.sh create mode 100755 .scripts/run_win_build.bat diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml new file mode 100755 index 0000000..d69d55b --- /dev/null +++ b/.azure-pipelines/azure-pipelines-osx.yml @@ -0,0 +1,40 @@ +# This file was generated automatically from conda-smithy. To update this configuration, +# update the conda-forge.yml and/or the recipe/meta.yaml. +# -*- mode: yaml -*- + +jobs: +- job: osx + pool: + vmImage: macOS-12 + strategy: + matrix: + osx_64_r_base4.3: + CONFIG: osx_64_r_base4.3 + UPLOAD_PACKAGES: 'True' + osx_64_r_base4.4: + CONFIG: osx_64_r_base4.4 + UPLOAD_PACKAGES: 'True' + timeoutInMinutes: 360 + variables: {} + + steps: + # TODO: Fast finish on azure pipelines? + - script: | + export CI=azure + export flow_run_id=azure_$(Build.BuildNumber).$(System.JobAttempt) + export remote_url=$(Build.Repository.Uri) + export sha=$(Build.SourceVersion) + export OSX_FORCE_SDK_DOWNLOAD="1" + export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME + export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME}) + if [[ "${BUILD_REASON:-}" == "PullRequest" ]]; then + export IS_PR_BUILD="True" + else + export IS_PR_BUILD="False" + fi + ./.scripts/run_osx_build.sh + displayName: Run OSX build + env: + BINSTAR_TOKEN: $(BINSTAR_TOKEN) + FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) + STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) \ No newline at end of file diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml new file mode 100755 index 0000000..5a5c8ff --- /dev/null +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -0,0 +1,55 @@ +# This file was generated automatically from conda-smithy. To update this configuration, +# update the conda-forge.yml and/or the recipe/meta.yaml. +# -*- mode: yaml -*- + +jobs: +- job: win + pool: + vmImage: windows-2022 + strategy: + matrix: + win_64_r_base4.3: + CONFIG: win_64_r_base4.3 + UPLOAD_PACKAGES: 'True' + win_64_r_base4.4: + CONFIG: win_64_r_base4.4 + UPLOAD_PACKAGES: 'True' + timeoutInMinutes: 360 + variables: + CONDA_BLD_PATH: D:\\bld\\ + UPLOAD_TEMP: D:\\tmp + + steps: + + - task: PythonScript@0 + displayName: 'Download Miniforge' + inputs: + scriptSource: inline + script: | + import urllib.request + url = 'https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe' + path = r"$(Build.ArtifactStagingDirectory)/Miniforge.exe" + urllib.request.urlretrieve(url, path) + + - script: | + start /wait "" %BUILD_ARTIFACTSTAGINGDIRECTORY%\Miniforge.exe /InstallationType=JustMe /RegisterPython=0 /S /D=C:\Miniforge + displayName: Install Miniforge + + - powershell: Write-Host "##vso[task.prependpath]C:\Miniforge\Scripts" + displayName: Add conda to PATH + + - script: | + call ".scripts\run_win_build.bat" + displayName: Run Windows build + env: + PYTHONUNBUFFERED: 1 + CONFIG: $(CONFIG) + CI: azure + flow_run_id: azure_$(Build.BuildNumber).$(System.JobAttempt) + remote_url: $(Build.Repository.Uri) + sha: $(Build.SourceVersion) + UPLOAD_PACKAGES: $(UPLOAD_PACKAGES) + UPLOAD_TEMP: $(UPLOAD_TEMP) + BINSTAR_TOKEN: $(BINSTAR_TOKEN) + FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) + STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) \ No newline at end of file diff --git a/.ci_support/linux_64_r_base4.3.yaml b/.ci_support/linux_64_r_base4.3.yaml index aed26b6..4950290 100644 --- a/.ci_support/linux_64_r_base4.3.yaml +++ b/.ci_support/linux_64_r_base4.3.yaml @@ -1,3 +1,11 @@ +c_compiler: +- gcc +c_compiler_version: +- '13' +c_stdlib: +- sysroot +c_stdlib_version: +- '2.17' cdt_name: - cos7 channel_sources: @@ -16,3 +24,6 @@ r_base: - '4.3' target_platform: - linux-64 +zip_keys: +- - c_stdlib_version + - cdt_name diff --git a/.ci_support/linux_64_r_base4.4.yaml b/.ci_support/linux_64_r_base4.4.yaml index a9caf48..d6225d0 100644 --- a/.ci_support/linux_64_r_base4.4.yaml +++ b/.ci_support/linux_64_r_base4.4.yaml @@ -1,3 +1,11 @@ +c_compiler: +- gcc +c_compiler_version: +- '13' +c_stdlib: +- sysroot +c_stdlib_version: +- '2.17' cdt_name: - cos7 channel_sources: @@ -16,3 +24,6 @@ r_base: - '4.4' target_platform: - linux-64 +zip_keys: +- - c_stdlib_version + - cdt_name diff --git a/.ci_support/osx_64_r_base4.3.yaml b/.ci_support/osx_64_r_base4.3.yaml new file mode 100644 index 0000000..e1155ad --- /dev/null +++ b/.ci_support/osx_64_r_base4.3.yaml @@ -0,0 +1,28 @@ +MACOSX_DEPLOYMENT_TARGET: +- '10.13' +MACOSX_SDK_VERSION: +- '10.13' +c_compiler: +- clang +c_compiler_version: +- '17' +c_stdlib: +- macosx_deployment_target +c_stdlib_version: +- '10.13' +channel_sources: +- conda-forge +channel_targets: +- conda-forge main +cran_mirror: +- https://cran.r-project.org +macos_machine: +- x86_64-apple-darwin13.4.0 +pin_run_as_build: + r-base: + min_pin: x.x + max_pin: x.x +r_base: +- '4.3' +target_platform: +- osx-64 diff --git a/.ci_support/osx_64_r_base4.4.yaml b/.ci_support/osx_64_r_base4.4.yaml new file mode 100644 index 0000000..c030133 --- /dev/null +++ b/.ci_support/osx_64_r_base4.4.yaml @@ -0,0 +1,28 @@ +MACOSX_DEPLOYMENT_TARGET: +- '10.13' +MACOSX_SDK_VERSION: +- '10.13' +c_compiler: +- clang +c_compiler_version: +- '17' +c_stdlib: +- macosx_deployment_target +c_stdlib_version: +- '10.13' +channel_sources: +- conda-forge +channel_targets: +- conda-forge main +cran_mirror: +- https://cran.r-project.org +macos_machine: +- x86_64-apple-darwin13.4.0 +pin_run_as_build: + r-base: + min_pin: x.x + max_pin: x.x +r_base: +- '4.4' +target_platform: +- osx-64 diff --git a/.ci_support/win_64_r_base4.3.yaml b/.ci_support/win_64_r_base4.3.yaml new file mode 100644 index 0000000..d2c33e1 --- /dev/null +++ b/.ci_support/win_64_r_base4.3.yaml @@ -0,0 +1,22 @@ +channel_sources: +- conda-forge +channel_targets: +- conda-forge main +cran_mirror: +- https://cran.r-project.org +m2w64_c_compiler: +- gcc +m2w64_c_compiler_version: +- '13' +m2w64_c_stdlib: +- m2w64-sysroot +m2w64_c_stdlib_version: +- '12' +pin_run_as_build: + r-base: + min_pin: x.x + max_pin: x.x +r_base: +- '4.3' +target_platform: +- win-64 diff --git a/.ci_support/win_64_r_base4.4.yaml b/.ci_support/win_64_r_base4.4.yaml new file mode 100644 index 0000000..4c9d70a --- /dev/null +++ b/.ci_support/win_64_r_base4.4.yaml @@ -0,0 +1,22 @@ +channel_sources: +- conda-forge +channel_targets: +- conda-forge main +cran_mirror: +- https://cran.r-project.org +m2w64_c_compiler: +- gcc +m2w64_c_compiler_version: +- '13' +m2w64_c_stdlib: +- m2w64-sysroot +m2w64_c_stdlib_version: +- '12' +pin_run_as_build: + r-base: + min_pin: x.x + max_pin: x.x +r_base: +- '4.4' +target_platform: +- win-64 diff --git a/.scripts/run_osx_build.sh b/.scripts/run_osx_build.sh new file mode 100755 index 0000000..4ebc38f --- /dev/null +++ b/.scripts/run_osx_build.sh @@ -0,0 +1,104 @@ +#!/usr/bin/env bash + +# -*- mode: jinja-shell -*- + +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 + +( startgroup "Configuring conda" ) 2> /dev/null + +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" + + + +echo -e "\n\nSetting up the condarc and mangling the compiler." +setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml + +if [[ "${CI:-}" != "" ]]; then + mangle_compiler ./ ./recipe .ci_support/${CONFIG}.yaml +fi + +if [[ "${CI:-}" != "" ]]; then + echo -e "\n\nMangling homebrew in the CI to avoid conflicts." + /usr/bin/sudo mangle_homebrew + /usr/bin/sudo -k +else + echo -e "\n\nNot mangling homebrew as we are not running in CI" +fi + +if [[ "${sha:-}" == "" ]]; then + sha=$(git rev-parse HEAD) +fi + +echo -e "\n\nRunning the build setup script." +source run_conda_forge_build_setup + + + +( endgroup "Configuring conda" ) 2> /dev/null + +echo -e "\n\nMaking the build clobber file" +make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml + +if [[ -f LICENSE.txt ]]; then + cp LICENSE.txt "recipe/recipe-scripts-license.txt" +fi + +if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then + if [[ "x${BUILD_OUTPUT_ID:-}" != "x" ]]; then + EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --output-id ${BUILD_OUTPUT_ID}" + fi + conda debug ./recipe -m ./.ci_support/${CONFIG}.yaml \ + ${EXTRA_CB_OPTIONS:-} \ + --clobber-file ./.ci_support/clobber_${CONFIG}.yaml + + # Drop into an interactive shell + /bin/bash +else + + conda-build ./recipe -m ./.ci_support/${CONFIG}.yaml \ + --suppress-variables ${EXTRA_CB_OPTIONS:-} \ + --clobber-file ./.ci_support/clobber_${CONFIG}.yaml \ + --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" + + ( endgroup "Inspecting artifacts" ) 2> /dev/null + ( startgroup "Validating outputs" ) 2> /dev/null + + validate_recipe_outputs "${FEEDSTOCK_NAME}" + + ( endgroup "Validating outputs" ) 2> /dev/null + + ( startgroup "Uploading packages" ) 2> /dev/null + + if [[ "${UPLOAD_PACKAGES}" != "False" ]] && [[ "${IS_PR_BUILD}" == "False" ]]; then + upload_package --validate --feedstock-name="${FEEDSTOCK_NAME}" ./ ./recipe ./.ci_support/${CONFIG}.yaml + fi + + ( endgroup "Uploading packages" ) 2> /dev/null +fi \ No newline at end of file diff --git a/.scripts/run_win_build.bat b/.scripts/run_win_build.bat new file mode 100755 index 0000000..24ef201 --- /dev/null +++ b/.scripts/run_win_build.bat @@ -0,0 +1,125 @@ +:: 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 +:: Configure the solver +set "CONDA_SOLVER=libmamba" +if !errorlevel! neq 0 exit /b !errorlevel! +set "CONDA_LIBMAMBA_SOLVER_NO_CHANNELS_FROM_INSTALLED=1" + +:: Provision the necessary dependencies to build the recipe later +echo Installing dependencies +mamba.exe install "python=3.10" pip mamba conda-build conda-forge-ci-setup=4 "conda-build>=24.1" -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 [%flow_run_id%] == [] ( + set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --extra-meta flow_run_id=%flow_run_id% remote_url=%remote_url% sha=%sha%" +) + +call :end_group + +:: Build the recipe +echo Building recipe +conda-build.exe "recipe" -m .ci_support\%CONFIG%.yaml --suppress-variables %EXTRA_CB_OPTIONS% +if !errorlevel! neq 0 exit /b !errorlevel! + +call :start_group "Inspecting artifacts" +:: inspect_artifacts was only added in conda-forge-ci-setup 4.6.0 +WHERE inspect_artifacts >nul 2>nul && inspect_artifacts || echo "inspect_artifacts needs conda-forge-ci-setup >=4.6.0" +call :end_group + +:: 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 diff --git a/README.md b/README.md index 0ecafd8..82765ae 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,20 @@ About r-betareg-feedstock Feedstock license: [BSD-3-Clause](https://github.com/conda-forge/r-betareg-feedstock/blob/main/LICENSE.txt) -Home: https://betareg.R-Forge.R-project.org/ + +About r-betareg +--------------- + +Home: https://topmodels.R-Forge.R-project.org/betareg/ + +Package license: GPL-2.0-or-later + +Summary: Beta regression for modeling beta-distributed dependent variables on the open unit interval (0, 1), e.g., rates and proportions, see Cribari-Neto and Zeileis (2010) . Moreover, extended-support beta regression models can accommodate dependent variables with boundary observations at 0 and/or 1. For the classical beta regression model, alternative specifications are provided: Bias-corrected and bias-reduced estimation, finite mixture models, and recursive partitioning for beta regression, see Grün, Kosmidis, and Zeileis (2012) . + +About r-betareg +--------------- + +Home: https://topmodels.R-Forge.R-project.org/betareg/ Package license: GPL-2.0-or-later @@ -13,11 +26,65 @@ Current build status ==================== - +
All platforms:
+ + +
Azure - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariantStatus
linux_64_r_base4.3 + + variant + +
linux_64_r_base4.4 + + variant + +
osx_64_r_base4.3 + + variant + +
osx_64_r_base4.4 + + variant + +
win_64_r_base4.3 + + variant + +
win_64_r_base4.4 + + variant + +
+
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ad85a2c..e5306da 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,4 +3,6 @@ # -*- mode: yaml -*- jobs: - - template: ./.azure-pipelines/azure-pipelines-linux.yml \ No newline at end of file + - template: ./.azure-pipelines/azure-pipelines-linux.yml + - template: ./.azure-pipelines/azure-pipelines-osx.yml + - template: ./.azure-pipelines/azure-pipelines-win.yml \ No newline at end of file