From 291b1c8e04c5a503350ce5a3fabe0270cff41195 Mon Sep 17 00:00:00 2001 From: Rafid Bin Mostofa Date: Fri, 13 Dec 2024 19:07:47 +0600 Subject: [PATCH 1/2] feat(24.10): add python3-pip slices --- slices/python3-pip.yaml | 25 +++++++++++++++++++ slices/python3-wheel.yaml | 16 ++++++++++++ .../spread/integration/python3-pip/task.yaml | 8 ++++++ 3 files changed, 49 insertions(+) create mode 100644 slices/python3-pip.yaml create mode 100644 slices/python3-wheel.yaml create mode 100644 tests/spread/integration/python3-pip/task.yaml diff --git a/slices/python3-pip.yaml b/slices/python3-pip.yaml new file mode 100644 index 00000000..f144c4dc --- /dev/null +++ b/slices/python3-pip.yaml @@ -0,0 +1,25 @@ +package: python3-pip + +essential: + - python3-pip_copyright + +slices: + bins: + essential: + - python3-pip_libs + contents: + /usr/bin/pip: + /usr/bin/pip3: + + libs: + essential: + - ca-certificates_data + - python3-wheel_libs + - python3_standard + contents: + /usr/lib/python3/dist-packages/pip-*.dist-info/**: + /usr/lib/python3/dist-packages/pip/**: + + copyright: + contents: + /usr/share/doc/python3-pip/copyright: diff --git a/slices/python3-wheel.yaml b/slices/python3-wheel.yaml new file mode 100644 index 00000000..22efca18 --- /dev/null +++ b/slices/python3-wheel.yaml @@ -0,0 +1,16 @@ +package: python3-wheel + +essential: + - python3-wheel_copyright + +slices: + libs: + essential: + - python3_standard + contents: + /usr/lib/python3/dist-packages/wheel-*.dist-info/**: + /usr/lib/python3/dist-packages/wheel/**: + + copyright: + contents: + /usr/share/doc/python3-wheel/copyright: diff --git a/tests/spread/integration/python3-pip/task.yaml b/tests/spread/integration/python3-pip/task.yaml new file mode 100644 index 00000000..d84b8a45 --- /dev/null +++ b/tests/spread/integration/python3-pip/task.yaml @@ -0,0 +1,8 @@ +summary: Integration tests for python3-pip + +execute: | + rootfs="$(install-slices python3-pip_bins)" + + # Smoke tests. + chroot ${rootfs} /usr/bin/pip --version + chroot ${rootfs} /usr/bin/pip install --upgrade setuptools From 4b5c0829ad73e4bfb88f24b1372fefcd838ae522 Mon Sep 17 00:00:00 2001 From: Rafid Bin Mostofa Date: Fri, 13 Dec 2024 19:18:23 +0600 Subject: [PATCH 2/2] test(python3-pip): copy /etc/resolv.conf onto the rootfs --- tests/spread/integration/python3-pip/task.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/spread/integration/python3-pip/task.yaml b/tests/spread/integration/python3-pip/task.yaml index d84b8a45..e00e24b2 100644 --- a/tests/spread/integration/python3-pip/task.yaml +++ b/tests/spread/integration/python3-pip/task.yaml @@ -3,6 +3,8 @@ summary: Integration tests for python3-pip execute: | rootfs="$(install-slices python3-pip_bins)" + cp /etc/resolv.conf "${rootfs}/etc/" + # Smoke tests. chroot ${rootfs} /usr/bin/pip --version chroot ${rootfs} /usr/bin/pip install --upgrade setuptools