Skip to content

Commit

Permalink
Multi-versionize py3-aio deps (#26998)
Browse files Browse the repository at this point in the history
This depends on the work done in
#26844
  • Loading branch information
justinvreeland authored Sep 23, 2024
1 parent 7e96f08 commit 46ff1b1
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 13 deletions.
2 changes: 2 additions & 0 deletions py3-aiohappyeyeballs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ update:
github:
identifier: aio-libs/aiohappyeyeballs
strip-prefix: v
tag-filter: v
use-tag: true
57 changes: 45 additions & 12 deletions py3-async-timeout.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
# Generated from https://pypi.org/project/async-timeout/
package:
name: py3-async-timeout
version: 4.0.3
epoch: 3
epoch: 4
description: Timeout context manager for asyncio programs
copyright:
- license: Apache-2.0
dependencies:
provider-priority: 0
runtime:
- py3-typing-extensions
- python3

vars:
pypi-package: async-timeout

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
- python3
- py3-supported-pip
- wolfi-base

pipeline:
Expand All @@ -27,13 +34,39 @@ pipeline:
expected-sha256: 4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f
uri: https://files.pythonhosted.org/packages/source/a/async-timeout/async-timeout-${{package.version}}.tar.gz

- name: Python Build
runs: python setup.py build

- name: Python Install
runs: python setup.py 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}}
provides:
- py3-${{vars.pypi-package}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
import: async_timeout

- uses: strip
- 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}}
test:
pipeline:
- uses: python/import
with:
python: python3.10
import: async_timeout

update:
enabled: true
Expand Down
10 changes: 9 additions & 1 deletion py3-multidict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package:
name: py3-multidict
version: 6.1.0
epoch: 0
epoch: 1
description: multidict implementation
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -56,6 +56,14 @@ subpackages:
python: python${{range.key}}
import: ${{vars.pypi-package}}

- 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}}

update:
enabled: true
github:
Expand Down

0 comments on commit 46ff1b1

Please sign in to comment.