From 9985516f800ba163e2f47c22b80e1d0aab711732 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 16 Apr 2023 22:30:22 -1000 Subject: [PATCH] Build protobuf upb wheels (#90812) --- .github/workflows/wheels.yml | 4 ++-- homeassistant/package_constraints.txt | 4 ++++ script/gen_requirements_all.py | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 0c60fdd17af..00728e7748b 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -179,7 +179,7 @@ jobs: wheels-key: ${{ secrets.WHEELS_KEY }} env-file: true apk: "libexecinfo-dev;bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;openblas-dev;fftw-dev;lapack-dev;gfortran;blas-dev;eigen-dev;freetype-dev;glew-dev;harfbuzz-dev;hdf5-dev;libdc1394-dev;libtbb-dev;mesa-dev;openexr-dev;openjpeg-dev;uchardet-dev" - skip-binary: aiohttp;grpcio;sqlalchemy + skip-binary: aiohttp;grpcio;sqlalchemy;protobuf legacy: true constraints: "homeassistant/package_constraints.txt" requirements-diff: "requirements_diff.txt" @@ -194,7 +194,7 @@ jobs: wheels-key: ${{ secrets.WHEELS_KEY }} env-file: true apk: "libexecinfo-dev;bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;openblas-dev;fftw-dev;lapack-dev;gfortran;blas-dev;eigen-dev;freetype-dev;glew-dev;harfbuzz-dev;hdf5-dev;libdc1394-dev;libtbb-dev;mesa-dev;openexr-dev;openjpeg-dev;uchardet-dev" - skip-binary: aiohttp;grpcio;sqlalchemy + skip-binary: aiohttp;grpcio;sqlalchemy;protobuf legacy: true constraints: "homeassistant/package_constraints.txt" requirements-diff: "requirements_diff.txt" diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 33c2451ef21..6d60a567b6b 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -154,6 +154,10 @@ pyOpenSSL>=23.1.0 # Limit this to Python 3.10, to not block Python 3.11 dev for now uamqp==1.6.0;python_version<'3.11' +# protobuf must be in package constraints for the wheel +# builder to build binary wheels +protobuf==4.22.3 + # faust-cchardet: Ensure we have a version we can build wheels # 2.1.18 is the first version that works with our wheel builder faust-cchardet>=2.1.18 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index ecdedf0bbdd..7c042f2044b 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -159,6 +159,10 @@ pyOpenSSL>=23.1.0 # Limit this to Python 3.10, to not block Python 3.11 dev for now uamqp==1.6.0;python_version<'3.11' +# protobuf must be in package constraints for the wheel +# builder to build binary wheels +protobuf==4.22.3 + # faust-cchardet: Ensure we have a version we can build wheels # 2.1.18 is the first version that works with our wheel builder faust-cchardet>=2.1.18