From f6746a0ee89003fa4340917523fb9a163583e17a Mon Sep 17 00:00:00 2001 From: "Andreas Billmeier (@Home/mbp)" Date: Sat, 16 Apr 2022 12:15:08 +0200 Subject: [PATCH] add med Ebuild compile test on Python 3.10 --- .github/workflows/emerge-p310-med.yml | 47 +++++++++++++++++++++++++++ README.md | 4 +-- 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/emerge-p310-med.yml diff --git a/.github/workflows/emerge-p310-med.yml b/.github/workflows/emerge-p310-med.yml new file mode 100644 index 000000000..55f78a716 --- /dev/null +++ b/.github/workflows/emerge-p310-med.yml @@ -0,0 +1,47 @@ +name: emerge ha-med on 3.10 + +on: + workflow_dispatch: + schedule: + - cron: '15 11 * * *' # Daily + +jobs: + emerge-ha-med-310: + runs-on: ubuntu-latest + container: + image: ghcr.io/antonfischl1980/gentoo-ci:main + options: --privileged + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: emerge-sync + run: | + sudo -u portage git -C /var/db/repos/gentoo pull + emerge --sync + + - name: repos.conf/HomeAssistantRepository + run: | + mkdir -p /etc/portage/repos.conf/ + echo -en "[HomeAssistantRepository]\nlocation = " >/etc/portage/repos.conf/HomeAssistantRepository.conf + pwd -P >> /etc/portage/repos.conf/HomeAssistantRepository.conf + cat /etc/portage/repos.conf/*.conf + + - name: Switch to Python 3.10 + run: | + echo "USE_PYTHON=\"3.10 3.9\"" >>/etc/portage/make.conf + echo "PYTHON_TARGETS=\"python3_10 python3_9\"" >>/etc/portage/make.conf + echo "PYTHON_SINGLE_TARGET=\"python3_10\"" >>/etc/portage/make.conf + emerge --jobs=4 -tv app-eselect/eselect-python app-portage/eix + eselect python set python3.10 + eix-update + eix -I# --installed-without-use python_targets_python3_10 | xargs emerge --jobs=4 -1tv + + - name: /etc/portage/ + run: | + rsync -aHDPSv etc/portage/ /etc/portage/ + + - name: emerge + run: | + emerge --jobs=4 --autounmask=y --autounmask-continue=y dev-lang/rust-bin + emerge --jobs=4 --autounmask=y --autounmask-continue=y app-misc/homeassistant diff --git a/README.md b/README.md index babce0fc0..3996c3874 100644 --- a/README.md +++ b/README.md @@ -546,9 +546,9 @@ There are 1698 Ebuilds in total, 1691 of them have in total 1697 (35 different) |CC-BY-NC-SA-4.0|1| |CC0-1.0|1| -(Last counted: 15/04/2022) +(Last counted: 16/04/2022) I did my best to keep these clean. If a valid license was published on PyPI, it has been automatically merged. Otherwise I took it from GitHub or alternatively from comments/files in the source. Sometimes these differed and have been not unique. All license strings are adjusted to the list in `/usr/portage/gentoo/licenses/`. Some packages do not have any license published. In this case, Authors have been asked for clarification, some did not respond. Following the [official Gentoo Guide](https://devmanual.gentoo.org/general-concepts/licenses/index.html), these then were added with an `all-rights-reserved` license and `RESTRICT="mirror"` was set. Find the appropriate licenses referenced in the Ebuild files and in the corresponding homepages or sources. A big thanks goes to Iris for reviewing this README. -Last updated: 15/04/2022 +Last updated: 16/04/2022