Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions news/5648-regression-tests.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Enhancements

* Add regression tests for issues #5644 and #5645. (#5648)
103 changes: 103 additions & 0 deletions tests/test-recipes/metadata/_grpc/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
c_ares:
- '1'
c_compiler:
- conda-forge::gcc
c_compiler_version:
- '13'
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_name:
- conda
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- conda-forge::gxx
cxx_compiler_version:
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-x86_64:alma9
libabseil:
- '20250127'
libgrpc:
- '1.71'
libprotobuf:
- 5.29.3
openssl:
- '3'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython
- 3.13.* *_cp313
- 3.9.* *_cpython
re2:
- 2024.07.02
target_platform:
- linux-64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1'

# osx-arm64 version for local testing
# MACOSX_DEPLOYMENT_TARGET:
# - '11.0'
# MACOSX_SDK_VERSION:
# - '11.0'
# c_ares:
# - '1'
# c_compiler:
# - clang
# c_compiler_version:
# - '18'
# c_stdlib:
# - macosx_deployment_target
# c_stdlib_version:
# - '11.0'
# channel_sources:
# - conda-forge
# channel_targets:
# - conda-forge main
# cxx_compiler:
# - clangxx
# cxx_compiler_version:
# - '18'
# libabseil:
# - '20250127'
# libgrpc:
# - '1.71'
# libprotobuf:
# - 5.29.3
# macos_machine:
# - arm64-apple-darwin20.0.0
# openssl:
# - '3'
# pin_run_as_build:
# python:
# min_pin: x.x
# max_pin: x.x
# python:
# - 3.10.* *_cpython
# - 3.11.* *_cpython
# - 3.12.* *_cpython
# - 3.13.* *_cp313
# - 3.9.* *_cpython
# re2:
# - 2024.07.02
# target_platform:
# - osx-arm64
# zip_keys:
# - - c_compiler_version
# - cxx_compiler_version
# zlib:
# - '1'

151 changes: 151 additions & 0 deletions tests/test-recipes/metadata/_grpc/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
# extracted from bug report https://github.com/conda/conda-build/issues/5645
{% set version = "1.71.0" %}

# core package & vendored libs use different version scheme than CPP libs, see
# top of https://github.com/grpc/grpc/blob/v{{ version }}/CMakeLists.txt
# as of 1.67 the pattern is not trivially deducible from the version anymore
{% set core_version = "46.0.0" %}

{% set core_libs = ["gpr", "grpc", "grpc_unsecure"] %}
{% set core_cpp_libs = ["grpc++", "grpc++_unsecure"] %}
{% set vendored_libs = ["address_sorting"] %}
{% set binaries_plugin_langs = [
"cpp", "csharp", "node", "objective_c", "php", "python", "ruby"
] %}

package:
name: grpc-split
version: {{ version }}

source:
- url: https://github.com/grpc/grpc/archive/v{{ version.replace(".pre", "-pre") }}.tar.gz
sha256: 0d631419e54ec5b29def798623ee3bf5520dac77abeab3284ef7027ec2363f91

build:
number: 0

outputs:
- name: libgrpc
build:
script:
- echo "built it" > ${PREFIX}/grpc_build_libgrpc.txt
run_exports:
- {{ pin_subpackage('libgrpc', max_pin='x.x') }}
requirements:
build:
- {{ stdlib('c') }}
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake
- ninja
- python * # [win]
# for analysing total number of symbols in grpc.dll
- py-lief # [win]
# During cross-compilation, we need to build the grpc_cpp_plugin for the
# architecture of the build agent (where it will be executed afterwards),
# thus we need the respective host dependencies also in the build env.
- c-ares # [build_platform != target_platform]
- libabseil # [build_platform != target_platform]
- libprotobuf # [build_platform != target_platform]
- openssl # [build_platform != target_platform]
- re2 # [build_platform != target_platform]
- zlib # [build_platform != target_platform]
host:
- libabseil
- c-ares
- libprotobuf
- re2
- openssl
- zlib
run:
- ucrt # [win]
run_constrained:
# make sure we don't co-install with old version of previous package name
- grpc-cpp ={{ version }}
test:
commands:
- echo "it works!"

- name: grpcio
build:
script:
- echo "built it" > ${PREFIX}/grpc_build_grpcio.txt
requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- cython # [build_platform != target_platform]
- {{ stdlib('c') }}
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- python
- pip
- setuptools
- cython
- {{ pin_subpackage('libgrpc', exact=True) }}
- pthread-stubs # [linux]
- zlib
run:
- python
- {{ pin_subpackage('libgrpc', exact=True) }}
test:
commands:
- echo "it works!"

- name: grpcio-tools
build:
script:
- echo "built it" > ${PREFIX}/grpc_build_grpcio_tools.txt
requirements:
build:
- python # [build_platform != target_platform]
- cython # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- {{ stdlib('c') }}
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- grpcio {{ version }}.* *_{{ PKG_BUILDNUM }}
- python
- cython
- pip
- setuptools
- libabseil
- libprotobuf
run:
- grpcio {{ version }}.* *_{{ PKG_BUILDNUM }}
- python
- protobuf
- setuptools
test:
commands:
- echo "it works!"

about:
home: https://grpc.io/
license: Apache-2.0
license_family: APACHE
license_file: LICENSE
summary: gRPC - A high-performance, open-source universal RPC framework
description: |
gRPC is a modern, open source, high-performance remote procedure call
(RPC) framework that can run anywhere. gRPC enables client and server
applications to communicate transparently, and simplifies the building
of connected systems.

This package contains the gRPC C++ libraries and header files, as well
as the code generation plugins.
doc_url: https://grpc.io/docs/
dev_url: https://github.com/grpc/grpc

extra:
recipe-maintainers:
- pitrou
- xhochy
- wesm
- h-vetinari
- mariusvniekerk
- jjerphan
- JohanMabille
feedstock-name: grpc-cpp
71 changes: 71 additions & 0 deletions tests/test-recipes/metadata/_pytorch_cpu/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
MACOSX_SDK_VERSION:
- '13.3'
blas_impl:
- generic
c_compiler:
- conda-forge::clang
c_compiler_version:
- '18'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '11.0'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cuda_compiler:
- None
cuda_compiler_version:
- None
cxx_compiler:
- conda-forge::clangxx
cxx_compiler_version:
- '18'
is_rc:
- 'False'
libabseil:
- '20250127'
libblas:
- 3.9.* *netlib
libcblas:
- 3.9.* *netlib
liblapack:
- 3.9.* *netlib
libprotobuf:
- 5.29.3
libtorch:
- '2.5'
llvm_openmp:
- '18'
macos_machine:
- arm64-apple-darwin20.0.0
megabuild:
- 'false'
mkl:
- '2023'
numpy:
- '2.0'
orc:
- 2.1.1
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
pytorch:
- '2.5'
target_platform:
- osx-arm64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - channel_targets
- is_rc
- - python
- numpy
zlib:
- '1'
Loading
Loading