diff --git a/slices/python3-pip.yaml b/slices/python3-pip.yaml new file mode 100644 index 00000000..9657d156 --- /dev/null +++ b/slices/python3-pip.yaml @@ -0,0 +1,35 @@ +package: python3-pip + +essential: + - python3-pip_copyright + +slices: + bins: + # Although pip requires python3, python3.x slices are not listed as an + # essential here because we might choose to install python3-pip with + # different versions of python3. + # For pip with python3.12, please use the "bins3-12" slice. + essential: + - python3-pip_libs + contents: + /usr/bin/pip: + /usr/bin/pip3: + + libs: + essential: + - ca-certificates_data + - python3-setuptools_libs + - python3-wheel_libs + contents: + /usr/lib/python3/dist-packages/pip-*.dist-info/**: + /usr/lib/python3/dist-packages/pip/**: + + # pip binaries with python3.12. + bins3-12: + essential: + - python3-pip_bins + - python3.12_standard + + copyright: + contents: + /usr/share/doc/python3-pip/copyright: diff --git a/slices/python3-pkg-resources.yaml b/slices/python3-pkg-resources.yaml new file mode 100644 index 00000000..26fb84e5 --- /dev/null +++ b/slices/python3-pkg-resources.yaml @@ -0,0 +1,16 @@ +package: python3-pkg-resources + +essential: + - python3-pkg-resources_copyright + +slices: + libs: + # Although pkg-resources requires python3, python3.x slices are not listed + # as an essential here because we might choose to install + # python3-pkg-resources with different versions of python3. + contents: + /usr/lib/python3/dist-packages/pkg_resources/**: + + copyright: + contents: + /usr/share/doc/python3-pkg-resources/copyright: diff --git a/slices/python3-setuptools.yaml b/slices/python3-setuptools.yaml new file mode 100644 index 00000000..4799cd22 --- /dev/null +++ b/slices/python3-setuptools.yaml @@ -0,0 +1,20 @@ +package: python3-setuptools + +essential: + - python3-setuptools_copyright + +slices: + libs: + # Although setuptools requires python3, python3.x slices are not listed as + # an essential here because we might choose to install python3-setuptools + # with different versions of python3. + essential: + - python3-pkg-resources_libs + contents: + /usr/lib/python3/dist-packages/_distutils_hack/**: + /usr/lib/python3/dist-packages/setuptools-*.egg-info/**: + /usr/lib/python3/dist-packages/setuptools/**: + + copyright: + contents: + /usr/share/doc/python3-setuptools/copyright: diff --git a/slices/python3-wheel.yaml b/slices/python3-wheel.yaml new file mode 100644 index 00000000..99ee8858 --- /dev/null +++ b/slices/python3-wheel.yaml @@ -0,0 +1,17 @@ +package: python3-wheel + +essential: + - python3-wheel_copyright + +slices: + libs: + # Although wheel requires python3, python3.x slices are not listed as an + # essential here because we might choose to install python3-wheel with + # different versions of python3. + 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..ca3223a0 --- /dev/null +++ b/tests/spread/integration/python3-pip/task.yaml @@ -0,0 +1,11 @@ +summary: Integration tests for python3-pip + +execute: | + rootfs="$(install-slices python3-pip_bins3-12)" + + # pip depends on python3. + ln -s /usr/bin/python3.12 ${rootfs}/usr/bin/python3 + + # Smoke tests. + chroot ${rootfs} /usr/bin/pip --version + chroot ${rootfs} /usr/bin/pip install --upgrade setuptools