Skip to content

Commit

Permalink
New python package: durationpy (#29121)
Browse files Browse the repository at this point in the history
Adds new python package: `durationpy`. This is required in order to
build the latest version of py3-kubernetes. For example, the following
package update PR requires this package:

 - #28978

Signed-off-by: Mark McCormick <[email protected]>
  • Loading branch information
mamccorm authored Sep 22, 2024
1 parent 12f21a1 commit 8cba905
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions py3-durationpy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package:
name: py3-durationpy
version: 0.7
epoch: 0
description: Module for converting between datetime.timedelta and Go's time.Duration strings.
copyright:
- license: MIT
dependencies:
provider-priority: 0

vars:
pypi-package: "durationpy"

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

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

pipeline:
- uses: git-checkout
with:
repository: https://github.com/icholy/durationpy.git
tag: ${{package.version}}
expected-commit: e4d076ed93dd6e1ded3fe45d415fc796cbb75df3

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}}
runtime:
- py${{range.key}}-frozenlist
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
github:
use-tag: true
identifier: icholy/durationpy

0 comments on commit 8cba905

Please sign in to comment.