Skip to content

Commit

Permalink
Add python versioned py3-annotated-types (#26854)
Browse files Browse the repository at this point in the history
Signed-off-by: Srishti Hegde <[email protected]>
  • Loading branch information
srishtih authored Aug 21, 2024
1 parent bfdfa87 commit 7b150be
Showing 1 changed file with 41 additions and 15 deletions.
56 changes: 41 additions & 15 deletions py3-annotated-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,37 @@
package:
name: py3-annotated-types
version: 0.7.0
epoch: 0
epoch: 1
description: Reusable constraint types to use with typing.Annotated
copyright:
- license: MIT
dependencies:
runtime:
- py3-typing-extensions
- python3
provider-priority: 0

vars:
pypi-package: annotated-types
module-name: annotated_types

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-hatchling
- py3-supported-installer
- py3-supported-pip
- py3-supported-python
- py3-supported-setuptools
- py3-supported-wheel
- wolfi-base
environment:
# This is needed to work around the error "ValueError: ZIP does not support timestamps before 1980"
Expand All @@ -33,13 +45,27 @@ pipeline:
tag: v${{package.version}}
expected-commit: 0735cd3d4c272b88405b6b04009716b691115210

- name: Python Build
runs: python -m build

- name: Python Install
runs: python -m installer -d "${{targets.destdir}}/" dist/*.whl

- uses: strip
subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
runtime:
- py${{range.key}}-typing-extensions
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.module-name}}

update:
enabled: true
Expand Down

0 comments on commit 7b150be

Please sign in to comment.