Skip to content

Commit

Permalink
py3-pip-tools.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
smoser committed Oct 26, 2024
1 parent e96c6b1 commit d8ced43
Showing 1 changed file with 81 additions and 22 deletions.
103 changes: 81 additions & 22 deletions py3-pip-tools.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
package:
name: py3-pip-tools
version: 7.4.1
epoch: 0
description: "A set of command line tools to help you keep your pip-based packages fresh, even when you've pinned them."
epoch: 1
description: A set of command line tools to help you keep your pip-based packages fresh, even when you've pinned them.
copyright:
- license: BSD-3-Clause
dependencies:
runtime:
- py3-pip
- python3
provider-priority: 0

vars:
pypi-package: pip-tools
import: piptools

data:
- name: py-versions
items:
3.10: '310'
3.11: '311'
3.12: '312'
3.13: '300'

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3-pip
- py3-supported-build-base

pipeline:
- uses: git-checkout
Expand All @@ -25,26 +32,78 @@ pipeline:
tag: ${{package.version}}
expected-commit: 60ebdf5d1625cb63d0b94326035e0aa209659f4d

- runs: |
pip install . --prefix=/usr --root=${{targets.destdir}}
subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: python${{range.key}} version of ${{vars.pypi-package}}
dependencies:
provider-priority: ${{range.value}}
runtime:
- py${{range.key}}-build
- py${{range.key}}-click
- py${{range.key}}-pip
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- name: move usr/bin executables for -bin
runs: |
mkdir -p ./cleanup/${{range.key}}/
mv ${{targets.contextdir}}/usr/bin ./cleanup/${{range.key}}/
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}
- uses: strip
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}-bin
description: Executable binaries for ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
provider-priority: ${{range.value}}
provides:
- py3-${{vars.pypi-package}}
- py3-${{vars.pypi-package}}-bin
runtime:
- py${{range.key}}-${{vars.pypi-package}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/
mv ./cleanup/${{range.key}}/bin ${{targets.contextdir}}/usr/
test:
pipeline:
- runs: |
pip-compile --version
pip-sync --version
pip-compile --help
pip-sync --help
update:
enabled: true
github:
identifier: jazzband/pip-tools
use-tag: true
- name: py3-supported-${{vars.pypi-package}}
description: meta package providing ${{vars.pypi-package}} for supported python versions.
dependencies:
runtime:
- py3.10-${{vars.pypi-package}}
- py3.11-${{vars.pypi-package}}
- py3.12-${{vars.pypi-package}}
- py3.13-${{vars.pypi-package}}

test:
pipeline:
# AUTOGENERATED
- uses: python/import
with:
imports: |
import ${{vars.import}}
- runs: |
pip-compile --version
pip-sync --version
pyproject-build --version
wheel --help
pip-compile --help
pip-sync --help
pyproject-build --help
wheel version
update:
enabled: true
github:
identifier: jazzband/pip-tools
use-tag: true

0 comments on commit d8ced43

Please sign in to comment.