diff --git a/.ci_support/linux_64_.yaml b/.ci_support/linux_64_.yaml index dc5f723..25cd41c 100644 --- a/.ci_support/linux_64_.yaml +++ b/.ci_support/linux_64_.yaml @@ -19,15 +19,15 @@ cxx_compiler_version: docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 libabseil: -- '20240722' +- '20250127' libcrc32c: - '1.1' libcurl: - '8' libgrpc: -- '1.67' +- '1.71' libprotobuf: -- 5.28.3 +- 5.29.3 openssl: - '3' target_platform: diff --git a/.ci_support/linux_aarch64_.yaml b/.ci_support/linux_aarch64_.yaml index 57ed592..5b5ff4b 100644 --- a/.ci_support/linux_aarch64_.yaml +++ b/.ci_support/linux_aarch64_.yaml @@ -19,15 +19,15 @@ cxx_compiler_version: docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 libabseil: -- '20240722' +- '20250127' libcrc32c: - '1.1' libcurl: - '8' libgrpc: -- '1.67' +- '1.71' libprotobuf: -- 5.28.3 +- 5.29.3 openssl: - '3' target_platform: diff --git a/.ci_support/linux_ppc64le_.yaml b/.ci_support/linux_ppc64le_.yaml index a50575c..14b9ed0 100644 --- a/.ci_support/linux_ppc64le_.yaml +++ b/.ci_support/linux_ppc64le_.yaml @@ -19,15 +19,15 @@ cxx_compiler_version: docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 libabseil: -- '20240722' +- '20250127' libcrc32c: - '1.1' libcurl: - '8' libgrpc: -- '1.67' +- '1.71' libprotobuf: -- 5.28.3 +- 5.29.3 openssl: - '3' target_platform: diff --git a/.ci_support/migrations/absl_grpc_proto.yaml b/.ci_support/migrations/absl_grpc_proto.yaml new file mode 100644 index 0000000..058ccee --- /dev/null +++ b/.ci_support/migrations/absl_grpc_proto.yaml @@ -0,0 +1,21 @@ +__migrator: + build_number: 1 + commit_message: Rebuild for libabseil 20250127, libgrpc 1.71 & libprotobuf 5.29.3 + kind: version + migration_number: 1 + exclude: + - abseil-cpp + - grpc-cpp + - libprotobuf + - protobuf + - re2 +libabseil: +- 20250127 +libgrpc: +- "1.71" +libprotobuf: +- 5.29.3 +# see https://github.com/grpc/grpc/commit/14ac94d923b80650e0df55bed17be5efa0e4becd +c_stdlib_version: # [osx and x86_64] + - 10.14 # [osx and x86_64] +migrator_ts: 1741118046.5882597 diff --git a/.ci_support/osx_64_.yaml b/.ci_support/osx_64_.yaml index f598988..17ea917 100644 --- a/.ci_support/osx_64_.yaml +++ b/.ci_support/osx_64_.yaml @@ -1,7 +1,7 @@ MACOSX_DEPLOYMENT_TARGET: -- '10.13' +- '10.14' MACOSX_SDK_VERSION: -- '10.13' +- '10.14' c_compiler: - clang c_compiler_version: @@ -9,7 +9,7 @@ c_compiler_version: c_stdlib: - macosx_deployment_target c_stdlib_version: -- '10.13' +- '10.14' channel_sources: - conda-forge channel_targets: @@ -19,15 +19,15 @@ cxx_compiler: cxx_compiler_version: - '18' libabseil: -- '20240722' +- '20250127' libcrc32c: - '1.1' libcurl: - '8' libgrpc: -- '1.67' +- '1.71' libprotobuf: -- 5.28.3 +- 5.29.3 macos_machine: - x86_64-apple-darwin13.4.0 openssl: diff --git a/.ci_support/osx_arm64_.yaml b/.ci_support/osx_arm64_.yaml index 536b4cd..822babf 100644 --- a/.ci_support/osx_arm64_.yaml +++ b/.ci_support/osx_arm64_.yaml @@ -19,15 +19,15 @@ cxx_compiler: cxx_compiler_version: - '18' libabseil: -- '20240722' +- '20250127' libcrc32c: - '1.1' libcurl: - '8' libgrpc: -- '1.67' +- '1.71' libprotobuf: -- 5.28.3 +- 5.29.3 macos_machine: - arm64-apple-darwin20.0.0 openssl: diff --git a/.ci_support/win_64_.yaml b/.ci_support/win_64_.yaml index b381f85..4fea85c 100644 --- a/.ci_support/win_64_.yaml +++ b/.ci_support/win_64_.yaml @@ -9,15 +9,15 @@ channel_targets: cxx_compiler: - vs2019 libabseil: -- '20240722' +- '20250127' libcrc32c: - '1.1' libcurl: - '8' libgrpc: -- '1.67' +- '1.71' libprotobuf: -- 5.28.3 +- 5.29.3 openssl: - '3' target_platform: diff --git a/.scripts/run_docker_build.sh b/.scripts/run_docker_build.sh index 00f377a..6ee04aa 100755 --- a/.scripts/run_docker_build.sh +++ b/.scripts/run_docker_build.sh @@ -12,7 +12,7 @@ source .scripts/logging_utils.sh set -xeo pipefail THISDIR="$( cd "$( dirname "$0" )" >/dev/null && pwd )" -PROVIDER_DIR="$(basename $THISDIR)" +PROVIDER_DIR="$(basename "$THISDIR")" FEEDSTOCK_ROOT="$( cd "$( dirname "$0" )/.." >/dev/null && pwd )" RECIPE_ROOT="${FEEDSTOCK_ROOT}/recipe" diff --git a/build-locally.py b/build-locally.py index c4a56c6..02c2374 100755 --- a/build-locally.py +++ b/build-locally.py @@ -10,6 +10,7 @@ import os import platform import subprocess +import sys from argparse import ArgumentParser @@ -44,10 +45,19 @@ def run_osx_build(ns): subprocess.check_call([script]) +def run_win_build(ns): + script = ".scripts/run_win_build.bat" + subprocess.check_call(["cmd", "/D", "/Q", "/C", f"CALL {script}"]) + + def verify_config(ns): + choices_filter = ns.filter or "*" valid_configs = { - os.path.basename(f)[:-5] for f in glob.glob(".ci_support/*.yaml") + os.path.basename(f)[:-5] + for f in glob.glob(f".ci_support/{choices_filter}.yaml") } + if choices_filter != "*": + print(f"filtering for '{choices_filter}.yaml' configs") print(f"valid configs are {valid_configs}") if ns.config in valid_configs: print("Using " + ns.config + " configuration") @@ -60,30 +70,37 @@ def verify_config(ns): selections = list(enumerate(sorted(valid_configs), 1)) for i, c in selections: print(f"{i}. {c}") - s = input("\n> ") + try: + s = input("\n> ") + except KeyboardInterrupt: + print("\nno option selected, bye!", file=sys.stderr) + sys.exit(1) idx = int(s) - 1 ns.config = selections[idx][1] print(f"selected {ns.config}") else: raise ValueError("config " + ns.config + " is not valid") - # Remove the following, as implemented - if ns.config.startswith("win"): - raise ValueError( - f"only Linux/macOS configs currently supported, got {ns.config}" + if ( + ns.config.startswith("osx") + and platform.system() == "Darwin" + and not os.environ.get("OSX_SDK_DIR") + ): + raise RuntimeError( + "Need OSX_SDK_DIR env variable set. Run 'export OSX_SDK_DIR=$PWD/SDKs' " + "to download the SDK automatically to '$PWD/SDKs/MacOSX.sdk'. " + "Note: OSX_SDK_DIR must be set to an absolute path. " + "Setting this variable implies agreement to the licensing terms of the SDK by Apple." ) - elif ns.config.startswith("osx"): - if "OSX_SDK_DIR" not in os.environ: - raise RuntimeError( - "Need OSX_SDK_DIR env variable set. Run 'export OSX_SDK_DIR=$PWD/SDKs' " - "to download the SDK automatically to '$PWD/SDKs/MacOSX.sdk'. " - "Note: OSX_SDK_DIR must be set to an absolute path. " - "Setting this variable implies agreement to the licensing terms of the SDK by Apple." - ) def main(args=None): p = ArgumentParser("build-locally") p.add_argument("config", default=None, nargs="?") + p.add_argument( + "--filter", + default=None, + help="Glob string to filter which build choices are presented in interactive mode.", + ) p.add_argument( "--debug", action="store_true", @@ -104,6 +121,8 @@ def main(args=None): run_docker_build(ns) elif ns.config.startswith("osx"): run_osx_build(ns) + elif ns.config.startswith("win"): + run_win_build(ns) finally: recipe_license_file = os.path.join( "recipe", "recipe-scripts-license.txt" diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 22e75a6..3690012 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -9,7 +9,7 @@ source: sha256: 9a6e182fd658ba114512cf21bd9f274a315830638f62f0b831113df9e674bea0 build: - number: 0 + number: 1 requirements: build: - {{ compiler('c') }}