Skip to content

Commit

Permalink
python/multi-version batch 03 (#30392)
Browse files Browse the repository at this point in the history
  • Loading branch information
smoser authored Oct 9, 2024
1 parent 5ba8a0f commit 6181e5e
Show file tree
Hide file tree
Showing 20 changed files with 1,014 additions and 291 deletions.
76 changes: 53 additions & 23 deletions py3-forestci.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
package:
name: py3-forestci
version: "0.7"
epoch: 0
version: '0.7'
epoch: 1
description: 'forestci: confidence intervals for scikit-learn forest algorithms'
copyright:
- license: MIT
dependencies:
runtime:
- numpy
- py3-scikit-learn
- python3
provider-priority: 0

vars:
pypi-package: forestci
import: forestci

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-setuptools
- python3
- wolfi-base
- py3-supported-build-base

pipeline:
- uses: git-checkout
Expand All @@ -28,21 +32,47 @@ pipeline:
expected-commit: c5379afd17725f29afb6f93a66f895f71848ec6f
tag: ${{package.version}}

- name: Python Build
runs: python setup.py build
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:
- numpy
- py${{range.key}}-scikit-learn
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}
- name: Python Install
runs: python setup.py install --prefix=/usr --root="${{targets.destdir}}"
- 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}}

- uses: strip
test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.import}}
update:
enabled: true
github:
identifier: scikit-learn-contrib/forest-confidence-interval

test:
pipeline:
- uses: python/import
with:
import: forestci
64 changes: 50 additions & 14 deletions py3-glpk.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,75 @@
package:
name: py3-glpk
version: 0.4.8
epoch: 0
epoch: 1
description: PyGLPK, a Python module encapsulating GLPK.
copyright:
- license: GPL-3.0-or-later
dependencies:
provider-priority: 0

vars:
pypi-package: glpk
import: glpk

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
- gcc~13
- glpk
- openssf-compiler-options
- py3-setuptools
- py3-setuptools-scm
- python3
- python3-dev
- wolfi-base
- py3-supported-build-base-dev

pipeline:
- uses: fetch
with:
expected-sha256: 419091b0dbbb061c83c64be2e038d1f29182b986627f8f8c4971601e17fbd013
uri: https://files.pythonhosted.org/packages/source/g/glpk/glpk-${{package.version}}.tar.gz

- name: Python Build
runs: python setup.py build
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}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}
- name: Python Install
runs: python setup.py install --prefix=/usr --root="${{targets.destdir}}"
- 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}}

- uses: strip
test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.import}}
update:
enabled: true
Expand Down
63 changes: 50 additions & 13 deletions py3-google-crc32c.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
# Generated from https://pypi.org/project/google-crc32c/
package:
name: py3-google-crc32c
version: 1.6.0
epoch: 0
epoch: 1
description: A python wrapper of the C library 'Google CRC32C'
copyright:
- license: Apache-2.0
dependencies:
runtime:
- python-3
provider-priority: 0

vars:
pypi-package: google-crc32c
import: google_crc32c

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

pipeline:
- uses: git-checkout
Expand All @@ -27,10 +32,42 @@ pipeline:
repository: https://github.com/googleapis/python-crc32c
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}}
provides:
- py3-${{vars.pypi-package}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}
- 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}}

- uses: strip
test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.import}}
update:
enabled: true
Expand Down
66 changes: 52 additions & 14 deletions py3-google-pasta.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
# Generated from https://pypi.org/project/google-pasta/
package:
name: py3-google-pasta
version: 0.2.0
epoch: 2
epoch: 3
description: pasta is an AST-based Python refactoring library
copyright:
- license: Apache-2.0
dependencies:
runtime:
- py3-six
- python-3
provider-priority: 0

vars:
pypi-package: google-pasta
import: pasta

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

pipeline:
- uses: git-checkout
Expand All @@ -28,10 +32,44 @@ pipeline:
repository: https://github.com/google/pasta
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}}
provides:
- py3-${{vars.pypi-package}}
runtime:
- py${{range.key}}-six
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}
- 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}}

- uses: strip
test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.import}}
update:
enabled: true
Expand Down
Loading

0 comments on commit 6181e5e

Please sign in to comment.