Skip to content

Commit

Permalink
feat(24.10): add python3-pip slices
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornplusplus committed Dec 12, 2024
1 parent 1073c63 commit d56f5a0
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 0 deletions.
26 changes: 26 additions & 0 deletions slices/python3-pip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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-setuptools_libs
- 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:
15 changes: 15 additions & 0 deletions slices/python3-pkg-resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package: python3-pkg-resources

essential:
- python3-pkg-resources_copyright

slices:
libs:
essential:
- python3_standard
contents:
/usr/lib/python3/dist-packages/pkg_resources/**:

copyright:
contents:
/usr/share/doc/python3-pkg-resources/copyright:
18 changes: 18 additions & 0 deletions slices/python3-setuptools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package: python3-setuptools

essential:
- python3-setuptools_copyright

slices:
libs:
essential:
- python3-pkg-resources_libs
- python3_standard
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:
16 changes: 16 additions & 0 deletions slices/python3-wheel.yaml
Original file line number Diff line number Diff line change
@@ -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:
8 changes: 8 additions & 0 deletions tests/spread/integration/python3-pip/task.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d56f5a0

Please sign in to comment.