Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding VersionStream for grpc-1.68 #35286

Merged
merged 2 commits into from
Nov 27, 2024
Merged
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
165 changes: 165 additions & 0 deletions grpc-1.68.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
package:
name: grpc-1.68
version: 1.68.0
epoch: 0
description: The C based gRPC
copyright:
- license: Apache-2.0 AND BSD-3-Clause AND MIT
resources:
cpu: 24
memory: 24Gi
dependencies:
provides:
- grpc=${{package.full-version}}

var-transforms:
- from: ${{package.version}}
match: ^(\d+\.\d+)\.\d+$
replace: "$1"
to: major-minor-version

vars:
pypi-package: grpcio
import: grpc

data:
- name: py-versions
items:
3.10: '310'
3.11: '311'
3.12: '312'
3.13: '300'

environment:
contents:
packages:
- abseil-cpp-dev
- autoconf
- automake
- benchmark-dev
- build-base
- busybox
- c-ares-dev
- ca-certificates-bundle
- chrpath
- cmake
- curl
- icu-dev
- libstdc++-dev
- libsystemd
- libtool
- linux-headers
- openssl-dev
- protobuf-dev
- py3-supported-build-base
- py3-supported-cython
- py3-supported-python-dev
- python3
- re2
- re2-dev
- samurai
- systemd-dev
- wolfi-base
- xxhash-dev
- yaml-dev
- zlib-dev
environment:
# https://github.com/wolfi-dev/os/issues/34568
GCC_SPEC_FILE: /dev/null

pipeline:
- uses: git-checkout
with:
repository: https://github.com/grpc/grpc
tag: v${{package.version}}
expected-commit: 6b49ae626bc9cd7033e062f89dbe0e0576b1110e

- runs: |
cd third_party
git submodule update --init --recursive

- runs: |
mkdir -p "${{targets.destdir}}"/usr/share/doc/grpc
cmake -B _build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_STANDARD=17 \
-DBUILD_SHARED_LIBS=True \
-DgRPC_INSTALL=ON \
-DgRPC_CARES_PROVIDER=package \
-DgRPC_SSL_PROVIDER=package \
-DgRPC_ZLIB_PROVIDER=package \
-DgRPC_PROTOBUF_PROVIDER=package \
-DgRPC_ABSL_PROVIDER=package \
-DgRPC_RE2_PROVIDER=package \
-DgRPC_BENCHMARK_PROVIDER=package \
-DgRPC_BACKWARDS_COMPATIBILITY_MODE=OFF \
-DgRPC_BUILD_TESTS=OFF
cmake --build _build

- runs: |
DESTDIR="${{targets.destdir}}" cmake --install _build
python3 setup.py install --skip-build --root="${{targets.destdir}}"
cd doc
find ./ -type f -print -exec install -Dm644 {} "${{targets.destdir}}"/usr/share/doc/grpc/{} \;
rm "${{targets.destdir}}"/usr/share/doc/grpc/.gitignore
find "${{targets.destdir}}" -type f -name roots.pem -exec \
sh -c 'rm $0 && ln -s /etc/ssl/certs/ca-certificates.crt $0' "{}" \;

subpackages:
- range: py-versions
name: py${{range.key}}-grpcio-${{vars.major-minor-version}}
description: python${{range.key}} version of grpcio
dependencies:
provider-priority: ${{range.value}}
provides:
- py3-grpcio-${{vars.major-minor-version}}
- py3-grpcio
- py${{range.key}}-grpcio
pipeline:
- uses: py/pip-build-install
environment:
GRPC_PYTHON_CFLAGS: "-std=c++17"
GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY: "1"
GRPC_PYTHON_BUILD_SYSTEM_CARES: "1"
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL: "1"
GRPC_PYTHON_BUILD_SYSTEM_ZLIB: "1"
GRPC_PYTHON_BUILD_SYSTEM_RE2: "1"
GRPC_PYTHON_BUILD_SYSTEM_ABSL: "1"
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}

- name: py3-supported-grpcio-${{vars.major-minor-version}}
description: meta package providing ${{vars.pypi-package}} for supported python versions.
dependencies:
runtime:
- py3.10-grpcio-${{vars.major-minor-version}}
- py3.11-grpcio-${{vars.major-minor-version}}
- py3.12-grpcio-${{vars.major-minor-version}}
- py3.13-grpcio-${{vars.major-minor-version}}

- name: ${{package.name}}-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- ${{package.name}}
provides:
- grpc-dev=${{package.full-version}}
description: grpc dev

update:
enabled: true
github:
identifier: grpc/grpc
strip-prefix: v
use-tag: true
tag-filter-prefix: v1.68.
Loading