Skip to content

Commit

Permalink
Add python versioned py3-decorator (#26684)
Browse files Browse the repository at this point in the history
Signed-off-by: Srishti Hegde <[email protected]>
  • Loading branch information
srishtih authored Aug 19, 2024
1 parent c800079 commit e43ac0d
Showing 1 changed file with 36 additions and 15 deletions.
51 changes: 36 additions & 15 deletions py3-decorator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,34 @@
package:
name: py3-decorator
version: 5.1.1
epoch: 2
epoch: 3
description: Decorators for Humans
copyright:
- license: BSD-2-Clause
dependencies:
runtime:
- python-3
provider-priority: 0

vars:
pypi-package: decorator

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

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3-setuptools
- python-3
- py3-supported-build
- py3-supported-installer
- py3-supported-pip
- py3-supported-python
- py3-supported-setuptools
- wolfi-base

pipeline:
Expand All @@ -27,19 +39,28 @@ pipeline:
repository: https://github.com/micheles/decorator
tag: ${{package.version}}

- name: Python Build
uses: python/build-wheel

- uses: strip
subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
provides:
- py3-${{vars.pypi-package}}
provider-priority: ${{range.value}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
import: ${{vars.pypi-package}}

update:
enabled: true
manual: false
github:
identifier: micheles/decorator

test:
pipeline:
- uses: python/import
with:
import: decorator

0 comments on commit e43ac0d

Please sign in to comment.