Skip to content

Commit

Permalink
Multiversionize remaining poetry deps (#28245)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvreeland authored Sep 24, 2024
1 parent 6279be6 commit 6f93e61
Showing 1 changed file with 68 additions and 16 deletions.
84 changes: 68 additions & 16 deletions py3-keyring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,33 @@
package:
name: py3-keyring
version: 25.4.1
epoch: 0
epoch: 1
description: Store and access your passwords safely.
copyright:
- license: "MIT"
dependencies:
runtime:
- py3-jaraco.classes
- py3-importlib-metadata
- py3-importlib-resources
- py3-SecretStorage
- py3-jeepney
- py3-pywin32-ctypes
- python3
provider-priority: 0

vars:
pypi-package: keyring

data:
- name: py-versions
items:
3.10: "310"
3.11: "311"
3.12: "312"

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3-build
- py3-installer
- py3-setuptools
- python3
- py3-supported-build
- py3-supported-installer
- py3-supported-setuptools
- py3-supported-setuptools-scm
- wolfi-base

pipeline:
Expand All @@ -35,10 +38,59 @@ pipeline:
tag: v${{package.version}}
expected-commit: 24ec25d214b4ef462324d907af2bad1a78beb6d8

- name: Python Build
uses: python/build-wheel
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}}-jaraco.classes
- py${{range.key}}-jaraco.context
- py${{range.key}}-jaraco.functools
- py${{range.key}}-importlib-metadata
- py${{range.key}}-secretstorage
- py${{range.key}}-jeepney
pipeline:
# pip-build-install doesn't propegate all of the files we need i.e. the bash backend
- runs: |
python${{range.key}} -m build --wheel --no-isolation
python${{range.key}} -m installer -d ${{targets.subpkgdir}} dist/*.whl
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
import: ${{vars.pypi-package}}

- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}-bin
description: Executable binaries for ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
runtime:
- py${{range.key}}-${{vars.pypi-package}}
provides:
- py3-${{vars.pypi-package}}-bin
- py3-${{vars.pypi-package}}
provider-priority: ${{range.value}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr
mv ${{targets.contextdir}}/../py${{range.key}}-${{vars.pypi-package}}/usr/bin ${{targets.contextdir}}/usr
test:
pipeline:
- runs: |
keyring --help
- uses: strip
# These test that the meta package i.e. py3-keyring gives a function binary and python module
test:
pipeline:
- runs: |
keyring --help
- uses: python/import
with:
import: ${{vars.pypi-package}}

update:
enabled: true
Expand Down

0 comments on commit 6f93e61

Please sign in to comment.