Skip to content

Commit

Permalink
Adds python versioning for py3-versioneer (#27144)
Browse files Browse the repository at this point in the history
Signed-off-by: Srishti Hegde <[email protected]>
  • Loading branch information
srishtih authored Aug 27, 2024
1 parent 3633889 commit 297eac7
Showing 1 changed file with 36 additions and 12 deletions.
48 changes: 36 additions & 12 deletions py3-versioneer.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
package:
name: py3-versioneer
version: "0.29"
epoch: 1
epoch: 2
description: Easy VCS-based management of project version strings
copyright:
- license: 'Unlicense'
dependencies:
runtime:
- python-3
provider-priority: 0

vars:
pypi-package: versioneer

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

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

pipeline:
Expand All @@ -27,11 +37,25 @@ pipeline:
expected-sha256: 5ab283b9857211d61b53318b7c792cf68e798e765ee17c27ade9f6c924235731
uri: https://files.pythonhosted.org/packages/source/v/versioneer/versioneer-${{package.version}}.tar.gz

- runs: |
python3 -m gpep517 build-wheel --wheel-dir dist --output-fd 1
python3 -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:
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
Expand Down

0 comments on commit 297eac7

Please sign in to comment.