Skip to content

Commit

Permalink
py3-seceretstorage: Mulitversionize (#28322)
Browse files Browse the repository at this point in the history
This is a runtime dep for py3-keyring which is a runtime dep for
py3-poetry
  • Loading branch information
justinvreeland authored Sep 23, 2024
1 parent 6cf4c59 commit 7a2f441
Showing 1 changed file with 44 additions and 17 deletions.
61 changes: 44 additions & 17 deletions py3-secretstorage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,30 @@
package:
name: py3-secretstorage
version: 3.3.3
epoch: 4
epoch: 5
description: Python bindings to FreeDesktop.org Secret Service API
copyright:
- license: BSD-3-Clause
dependencies:
runtime:
- py3-cryptography
- py3-jeepney
- python3
provides:
- py3-SecretStorage=${{package.full-version}}
provider-priority: 0

vars:
pypi-package: secretstorage

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

pipeline:
Expand All @@ -33,13 +35,38 @@ pipeline:
repository: https://github.com/mitya57/secretstorage
tag: ${{package.version}}

- name: Python Build
runs: |
python -m build
python3 -m installer -d "${{targets.destdir}}" dist/*.whl
find ${{targets.destdir}} -name "*.pyc" -exec rm -rf '{}' +
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}}
- py3-secretstorage
- py3-SecretStorage # Needed until keyring can be updated
runtime:
- py${{range.key}}-cryptography
- py${{range.key}}-jeepney
- py${{range.key}}-cffi
- openssl
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
import: secretstorage

- uses: strip
test:
pipeline:
- uses: python/import
with:
import: secretstorage

update:
enabled: true
Expand Down

0 comments on commit 7a2f441

Please sign in to comment.