forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python 3.10 / Base image 2022.06.01 (home-assistant#73830)
* Python 3.10 / Base image 2022.06.01 * Update requirements * push opencv * we don't need numpy on core for now * Remove unused ignore Co-authored-by: Franck Nijhof <[email protected]>
- Loading branch information
Showing
19 changed files
with
43 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,47 +65,6 @@ jobs: | |
path: ./requirements_diff.txt | ||
|
||
core: | ||
name: Build wheels with ${{ matrix.tag }} (${{ matrix.arch }}) for core | ||
if: github.repository_owner == 'home-assistant' | ||
needs: init | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: ${{ fromJson(needs.init.outputs.architectures) }} | ||
tag: | ||
- "3.9-alpine3.14" | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Download env_file | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: env_file | ||
|
||
- name: Download requirements_diff | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: requirements_diff | ||
|
||
- name: Build wheels | ||
uses: home-assistant/[email protected] | ||
with: | ||
tag: ${{ matrix.tag }} | ||
arch: ${{ matrix.arch }} | ||
wheels-host: wheels.hass.io | ||
wheels-key: ${{ secrets.WHEELS_KEY }} | ||
wheels-user: wheels | ||
env-file: true | ||
apk: "build-base;cmake;git;linux-headers;bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;cargo" | ||
pip: "Cython;numpy==1.21.6" | ||
skip-binary: aiohttp | ||
constraints: "homeassistant/package_constraints.txt" | ||
requirements-diff: "requirements_diff.txt" | ||
requirements: "requirements.txt" | ||
|
||
core_musllinux: | ||
name: Build musllinux wheels with musllinux_1_2 / cp310 at ${{ matrix.arch }} for core | ||
if: github.repository_owner == 'home-assistant' | ||
needs: init | ||
|
@@ -128,18 +87,6 @@ jobs: | |
with: | ||
name: requirements_diff | ||
|
||
- name: Adjust ENV / CP310 | ||
run: | | ||
if [ "${{ matrix.arch }}" = "i386" ]; then | ||
echo "NPY_DISABLE_SVML=1" >> .env_file | ||
fi | ||
requirement_files="requirements_all.txt requirements_diff.txt" | ||
for requirement_file in ${requirement_files}; do | ||
sed -i "s|numpy==1.21.6|numpy==1.22.4|g" ${requirement_file} | ||
done | ||
echo "numpy==1.22.4" >> homeassistant/package_constraints.txt | ||
- name: Build wheels | ||
uses: home-assistant/[email protected] | ||
with: | ||
|
@@ -148,76 +95,13 @@ jobs: | |
arch: ${{ matrix.arch }} | ||
wheels-key: ${{ secrets.WHEELS_KEY }} | ||
env-file: true | ||
apk: "bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;yaml-dev" | ||
apk: "libffi-dev;openssl-dev;yaml-dev" | ||
skip-binary: aiohttp | ||
constraints: "homeassistant/package_constraints.txt" | ||
requirements-diff: "requirements_diff.txt" | ||
requirements: "requirements.txt" | ||
|
||
integrations: | ||
name: Build wheels with ${{ matrix.tag }} (${{ matrix.arch }}) for integrations | ||
if: github.repository_owner == 'home-assistant' | ||
needs: init | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: ${{ fromJson(needs.init.outputs.architectures) }} | ||
tag: | ||
- "3.9-alpine3.14" | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Download env_file | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: env_file | ||
|
||
- name: Download requirements_diff | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: requirements_diff | ||
|
||
- name: Uncomment packages | ||
run: | | ||
requirement_files="requirements_all.txt requirements_diff.txt" | ||
for requirement_file in ${requirement_files}; do | ||
sed -i "s|# pybluez|pybluez|g" ${requirement_file} | ||
sed -i "s|# bluepy|bluepy|g" ${requirement_file} | ||
sed -i "s|# beacontools|beacontools|g" ${requirement_file} | ||
sed -i "s|# fritzconnection|fritzconnection|g" ${requirement_file} | ||
sed -i "s|# pyuserinput|pyuserinput|g" ${requirement_file} | ||
sed -i "s|# evdev|evdev|g" ${requirement_file} | ||
sed -i "s|# python-eq3bt|python-eq3bt|g" ${requirement_file} | ||
sed -i "s|# pycups|pycups|g" ${requirement_file} | ||
sed -i "s|# homekit|homekit|g" ${requirement_file} | ||
sed -i "s|# decora_wifi|decora_wifi|g" ${requirement_file} | ||
sed -i "s|# decora|decora|g" ${requirement_file} | ||
sed -i "s|# avion|avion|g" ${requirement_file} | ||
sed -i "s|# PySwitchbot|PySwitchbot|g" ${requirement_file} | ||
sed -i "s|# pySwitchmate|pySwitchmate|g" ${requirement_file} | ||
sed -i "s|# face_recognition|face_recognition|g" ${requirement_file} | ||
sed -i "s|# python-gammu|python-gammu|g" ${requirement_file} | ||
done | ||
- name: Build wheels | ||
uses: home-assistant/[email protected] | ||
with: | ||
tag: ${{ matrix.tag }} | ||
arch: ${{ matrix.arch }} | ||
wheels-host: wheels.hass.io | ||
wheels-key: ${{ secrets.WHEELS_KEY }} | ||
wheels-user: wheels | ||
env-file: true | ||
apk: "build-base;cmake;git;linux-headers;libexecinfo-dev;bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;autoconf;automake;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;cargo" | ||
pip: "Cython;numpy;scikit-build" | ||
skip-binary: aiohttp,grpcio | ||
constraints: "homeassistant/package_constraints.txt" | ||
requirements-diff: "requirements_diff.txt" | ||
requirements: "requirements_all.txt" | ||
|
||
integrations_musllinux: | ||
name: Build musllinux wheels with musllinux_1_2 / cp310 at ${{ matrix.arch }} for integrations | ||
if: github.repository_owner == 'home-assistant' | ||
needs: init | ||
|
@@ -256,18 +140,12 @@ jobs: | |
sed -i "s|# python-gammu|python-gammu|g" ${requirement_file} | ||
done | ||
- name: Adjust ENV / CP310 | ||
- name: Adjust ENV | ||
run: | | ||
if [ "${{ matrix.arch }}" = "i386" ]; then | ||
echo "NPY_DISABLE_SVML=1" >> .env_file | ||
fi | ||
requirement_files="requirements_all.txt requirements_diff.txt" | ||
for requirement_file in ${requirement_files}; do | ||
sed -i "s|numpy==1.21.6|numpy==1.22.4|g" ${requirement_file} | ||
done | ||
echo "numpy==1.22.4" >> homeassistant/package_constraints.txt | ||
- name: Build wheels | ||
uses: home-assistant/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
image: homeassistant/{arch}-homeassistant | ||
shadow_repository: ghcr.io/home-assistant | ||
build_from: | ||
aarch64: ghcr.io/home-assistant/aarch64-homeassistant-base:2022.05.0 | ||
armhf: ghcr.io/home-assistant/armhf-homeassistant-base:2022.05.0 | ||
armv7: ghcr.io/home-assistant/armv7-homeassistant-base:2022.05.0 | ||
amd64: ghcr.io/home-assistant/amd64-homeassistant-base:2022.05.0 | ||
i386: ghcr.io/home-assistant/i386-homeassistant-base:2022.05.0 | ||
aarch64: ghcr.io/home-assistant/aarch64-homeassistant-base:2022.06.1 | ||
armhf: ghcr.io/home-assistant/armhf-homeassistant-base:2022.06.1 | ||
armv7: ghcr.io/home-assistant/armv7-homeassistant-base:2022.06.1 | ||
amd64: ghcr.io/home-assistant/amd64-homeassistant-base:2022.06.1 | ||
i386: ghcr.io/home-assistant/i386-homeassistant-base:2022.06.1 | ||
codenotary: | ||
signer: [email protected] | ||
base_image: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters