Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python/multi-version batch 09 #30440

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 85 additions & 13 deletions py3-antlr4-python3-runtime.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
package:
name: py3-antlr4-python3-runtime
version: 4.13.2
epoch: 1
epoch: 2
description: ANTLR runtime for Python 3
copyright:
- license: BSD-3-Clause
dependencies:
provider-priority: 0

vars:
pypi-package: antlr4-python3-runtime
import: antlr4

data:
- name: py-versions
items:
3.10: '310'
3.11: '311'
3.12: '312'
3.13: '300'

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

pipeline:
- uses: git-checkout
Expand All @@ -26,13 +34,77 @@ pipeline:
repository: https://github.com/antlr/antlr4
tag: ${{package.version}}

- uses: py/pip-build-install
working-directory: runtime/Python3
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}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
working-directory: runtime/Python3
- name: move usr/bin executables for -bin
runs: |
mkdir -p ./cleanup/${{range.key}}/
mv ${{targets.contextdir}}/usr/bin ./cleanup/${{range.key}}/
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}

- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}-bin
description: Executable binaries for ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
provider-priority: ${{range.value}}
provides:
- ${{package.name}}
- py3-${{vars.pypi-package}}
- py3-${{vars.pypi-package}}-bin
runtime:
- py${{range.key}}-${{vars.pypi-package}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/
mv ./cleanup/${{range.key}}/bin ${{targets.contextdir}}/usr/
test:
environment:
contents:
packages:
- apk-tools
pipeline:
- runs: |
apk info -L py${{range.key}}-${{vars.pypi-package}}-bin > "pkg.list"
echo "Please write a test for these:"
grep usr/bin/ pkg.list > bins.list
sed 's,^,> ,' bins.list

while read line; do
echo == /$line ==
/$line --help || :
done < bins.list

- 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}}
- py3.13-${{vars.pypi-package}}

test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.import}}
- uses: python/import
with:
imports: |
Expand Down
102 changes: 88 additions & 14 deletions py3-archspec.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
# Generated from https://pypi.org/project/archspec/
package:
name: py3-archspec
version: 0.2.4
epoch: 1
epoch: 2
description: A library to query system architecture
copyright:
- license: Apache-2.0 OR MIT
dependencies:
provider-priority: 0

vars:
pypi-package: archspec
import: archspec

data:
- name: py-versions
items:
3.10: '310'
3.11: '311'
3.12: '312'
3.13: '300'

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

pipeline:
- uses: git-checkout
Expand All @@ -23,20 +34,83 @@ pipeline:
tag: v${{package.version}}
recurse-submodules: true

- name: Python Build
uses: python/build-wheel
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}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- name: move usr/bin executables for -bin
runs: |
mkdir -p ./cleanup/${{range.key}}/
mv ${{targets.contextdir}}/usr/bin ./cleanup/${{range.key}}/
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}

- uses: strip
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}-bin
description: Executable binaries for ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
provider-priority: ${{range.value}}
provides:
- ${{package.name}}
- py3-${{vars.pypi-package}}
- py3-${{vars.pypi-package}}-bin
runtime:
- py${{range.key}}-${{vars.pypi-package}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/
mv ./cleanup/${{range.key}}/bin ${{targets.contextdir}}/usr/
test:
environment:
contents:
packages:
- apk-tools
pipeline:
- runs: |
apk info -L py${{range.key}}-${{vars.pypi-package}}-bin > "pkg.list"
echo "Please write a test for these:"
grep usr/bin/ pkg.list > bins.list
sed 's,^,> ,' bins.list

update:
enabled: true
github:
identifier: archspec/archspec
strip-prefix: v
while read line; do
echo == /$line ==
/$line --help || :
done < bins.list

- 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}}
- py3.13-${{vars.pypi-package}}

test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.import}}
- runs: |
archspec --version
archspec cpu
archspec --help

update:
enabled: true
github:
identifier: archspec/archspec
strip-prefix: v
106 changes: 85 additions & 21 deletions py3-argcomplete.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
package:
name: py3-argcomplete
version: 3.5.1
epoch: 0
epoch: 1
description: Bash/zsh tab completion for argparse
copyright:
- license: Apache-2.0
dependencies:
provider-priority: 0

vars:
pypi-package: argcomplete
import: argcomplete

data:
- name: py-versions
items:
3.10: '310'
3.11: '311'
3.12: '312'
3.13: '300'

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

pipeline:
- uses: git-checkout
Expand All @@ -21,28 +32,81 @@ pipeline:
repository: https://github.com/kislyuk/argcomplete
tag: v${{package.version}}

- name: Python Build
uses: python/build-wheel
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}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- name: move usr/bin executables for -bin
runs: |
mkdir -p ./cleanup/${{range.key}}/
mv ${{targets.contextdir}}/usr/bin ./cleanup/${{range.key}}/
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}

- uses: strip
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}-bin
description: Executable binaries for ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
provider-priority: ${{range.value}}
provides:
- ${{package.name}}
- py3-${{vars.pypi-package}}
- py3-${{vars.pypi-package}}-bin
runtime:
- py${{range.key}}-${{vars.pypi-package}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/
mv ./cleanup/${{range.key}}/bin ${{targets.contextdir}}/usr/
test:
environment:
contents:
packages:
- apk-tools
pipeline:
- runs: |
apk info -L py${{range.key}}-${{vars.pypi-package}}-bin > "pkg.list"
echo "Please write a test for these:"
grep usr/bin/ pkg.list > bins.list
sed 's,^,> ,' bins.list

update:
enabled: true
github:
identifier: kislyuk/argcomplete
strip-prefix: v
while read line; do
echo == /$line ==
/$line --help || :
done < bins.list

- 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}}
- py3.13-${{vars.pypi-package}}

test:
environment:
contents:
packages:
- busybox
pipeline:
- uses: python/import
with:
import: argcomplete
runs: |
activate-global-python-argcomplete --help
register-python-argcomplete version
imports: |
import ${{vars.import}}
- runs: |
register-python-argcomplete --help

update:
enabled: true
github:
identifier: kislyuk/argcomplete
strip-prefix: v
Loading
Loading