From 0b60072266af5624f636ae63835eaee4645a01f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20T=C3=BCrkal?= Date: Wed, 6 Sep 2023 22:53:16 +0300 Subject: [PATCH 1/2] Add build-gpep517 pipeline for Python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Furkan Türkal --- pkg/build/pipelines/python/build-gpep517.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pkg/build/pipelines/python/build-gpep517.yaml diff --git a/pkg/build/pipelines/python/build-gpep517.yaml b/pkg/build/pipelines/python/build-gpep517.yaml new file mode 100644 index 000000000..0bf08cdfc --- /dev/null +++ b/pkg/build/pipelines/python/build-gpep517.yaml @@ -0,0 +1,17 @@ +name: Build a Python wheel with gpep517 + +needs: + packages: + - busybox + +pipeline: + - runs: | + if ! [ -x "$(command -v python3)" ]; then + echo 'Error: Python is not installed.' + exit 1 + fi + + - runs: | + python3 -m gpep517 build-wheel --wheel-dir dist --output-fd 3 3>&1 >&2 + python3 -m installer -d "${{targets.contextdir}}" dist/*.whl + find ${{targets.contextdir}} -name "*.pyc" -exec rm -rf '{}' + From 1a94b1bda6f5a4477d1b01db9c108447e40aebec Mon Sep 17 00:00:00 2001 From: Batuhan Apaydin Date: Wed, 6 Sep 2023 23:12:02 +0300 Subject: [PATCH 2/2] add needed packages Signed-off-by: Batuhan Apaydin --- pkg/build/pipelines/python/build-gpep517.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkg/build/pipelines/python/build-gpep517.yaml b/pkg/build/pipelines/python/build-gpep517.yaml index 0bf08cdfc..40c063ad9 100644 --- a/pkg/build/pipelines/python/build-gpep517.yaml +++ b/pkg/build/pipelines/python/build-gpep517.yaml @@ -3,15 +3,12 @@ name: Build a Python wheel with gpep517 needs: packages: - busybox + - python3 + - py3-gpep517 + - py3-installer + - py3-wheel pipeline: - - runs: | - if ! [ -x "$(command -v python3)" ]; then - echo 'Error: Python is not installed.' - exit 1 - fi - - runs: | python3 -m gpep517 build-wheel --wheel-dir dist --output-fd 3 3>&1 >&2 python3 -m installer -d "${{targets.contextdir}}" dist/*.whl - find ${{targets.contextdir}} -name "*.pyc" -exec rm -rf '{}' +