Skip to content

Commit

Permalink
python/multi-version batch 11
Browse files Browse the repository at this point in the history
  • Loading branch information
smoser committed Oct 9, 2024
1 parent ffe8f8c commit 9890cb7
Show file tree
Hide file tree
Showing 20 changed files with 1,319 additions and 395 deletions.
76 changes: 56 additions & 20 deletions py3-pendulum.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
package:
name: py3-pendulum
version: 3.0.0
epoch: 3
epoch: 4
description: Python datetimes made easy
copyright:
- license: MIT
dependencies:
runtime:
- py3-dateutil
- py3-tzdata
provider-priority: 0

vars:
pypi-package: pendulum
import: pendulum

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

environment:
contents:
repositories:
packages:
- build-base
- busybox
- ca-certificates-bundle
- maturin
- poetry
- py3-gpep517
- py3-installer
- py3-maturin
- py3-pip
- py3-setuptools
- py3-wheel
- python3
- python3-dev
- py3-supported-build-base-dev
- py3-supported-gpep517
- py3-supported-maturin
- py3-supported-pip
- rust
- wolfi-base

pipeline:
- uses: git-checkout
Expand All @@ -37,12 +39,46 @@ pipeline:
tag: ${{package.version}}
expected-commit: 0fcd10217af0469b3edda072f2b152d5273f3d58

- uses: py/pip-build-install
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:
- ${{package.name}}
- py3-${{vars.pypi-package}}
runtime:
- py${{range.key}}-dateutil
- py${{range.key}}-tzdata
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}}
- 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 All @@ -66,5 +102,5 @@ update:
identifier: sdispater/pendulum
use-tag: true
ignore-regex-patterns:
- '.*a.*' # ignore tags like 3.0.0a1
- '.*b.*' # ignore tags like 3.0.0b1
- .*a.* # ignore tags like 3.0.0a1
- .*b.* # ignore tags like 3.0.0b1
72 changes: 50 additions & 22 deletions py3-pycosat.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
package:
name: py3-pycosat
version: 0.6.6
epoch: 0
epoch: 1
description: Python bindings to picosat (a SAT solver)
copyright:
- license: MIT
dependencies:
runtime:
- python3
provider-priority: 0

vars:
pypi-package: pycosat
import: pycosat

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

pipeline:
- uses: git-checkout
Expand All @@ -29,20 +32,45 @@ pipeline:
tag: ${{package.version}}
expected-commit: 38bbc0ed7b21bd3e43dfc4be735557f06f224290

- name: Python Build
runs: python -m 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:
- ${{package.name}}
- 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 -m installer -d "${{targets.destdir}}/" dist/*.whl
- 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: conda/pycosat

test:
pipeline:
- runs: |
python -c "import pycosat"
51 changes: 37 additions & 14 deletions py3-pyfarmhash.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,59 @@
# Generated from https://pypi.org/project/pyfarmhash/
package:
name: py3-pyfarmhash
version: 0.3.2
epoch: 3
epoch: 4
description: Google FarmHash Bindings for Python
copyright:
- license: MIT
dependencies:
runtime:
- python-3
provider-priority: 0

vars:
pypi-package: pyfarmhash
import: no-valid-import

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

pipeline:
- uses: fetch
with:
expected-sha256: 4146308a0ed0b37d69003199c90fa59b155666c9deb0249b40e594cee10551ea
uri: https://files.pythonhosted.org/packages/source/p/pyfarmhash/pyfarmhash-${{package.version}}.tar.gz

- 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:
- ${{package.name}}
- py3-${{vars.pypi-package}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip

- 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}}

update:
enabled: false
Expand Down
66 changes: 52 additions & 14 deletions py3-python-editor.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
package:
name: py3-python-editor
version: 1.0.4
epoch: 3
epoch: 4
description: Programmatically open an editor, capture the result.
copyright:
- license: Apache-2.0
dependencies:
runtime:
- python3
provider-priority: 0

vars:
pypi-package: python-editor
import: editor

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 @@ -26,13 +32,45 @@ pipeline:
expected-commit: 3cc3036d78b4cb031b5d4d16585130f977663f24
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:
- ${{package.name}}
- py3-${{vars.pypi-package}}
runtime:
- py${{range.key}}-setuptools
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
Loading

0 comments on commit 9890cb7

Please sign in to comment.