Skip to content

Commit

Permalink
python multi-version py3-jupyterhub-kubespawner and py-oauthenticator (
Browse files Browse the repository at this point in the history
  • Loading branch information
smoser authored Oct 29, 2024
1 parent 34251aa commit 0c26d14
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 54 deletions.
89 changes: 61 additions & 28 deletions py3-jupyterhub-kubespawner.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
# Generated from https://pypi.org/project/jupyterhub-kubespawner/
package:
name: py3-jupyterhub-kubespawner
version: 7.0.0
epoch: 0
epoch: 1
description: JupyterHub Spawner for Kubernetes
copyright:
- license: BSD-3-Clause
dependencies:
runtime:
- py3-escapism
- py3-jinja2
- py3-jupyterhub
- py3-kubernetes-asyncio
- py3-python-slugify
- py3-pyyaml
- py3-traitlets
- py3-urllib3
- python-3
provider-priority: 0

vars:
pypi-package: jupyterhub-kubespawner
import: kubespawner

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
- py3-supported-hatchling

pipeline:
- uses: git-checkout
Expand All @@ -35,22 +33,57 @@ pipeline:
repository: https://github.com/jupyterhub/kubespawner
tag: ${{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}}-escapism
- py${{range.key}}-jinja2
- py${{range.key}}-jupyterhub
- py${{range.key}}-kubernetes-asyncio
- py${{range.key}}-python-slugify
- py${{range.key}}-pyyaml
- py${{range.key}}-traitlets
- py${{range.key}}-urllib3
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
# Ignore beta version tags, such as 7.0.0b1, 7.0.0b2, etc.
ignore-regex-patterns:
- '.*b\d+$'
- .*b\d+$
github:
identifier: jupyterhub/kubespawner
use-tag: true

test:
pipeline:
- uses: python/import
with:
import: kubespawner
82 changes: 56 additions & 26 deletions py3-oauthenticator.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
# Generated from https://pypi.org/project/oauthenticator/
package:
name: py3-oauthenticator
version: 17.1.0
epoch: 1
epoch: 2
description: 'OAuthenticator: Authenticate JupyterHub users with common OAuth providers'
copyright:
- license: BSD-3-Clause
dependencies:
runtime:
- openssl
- py3-jsonschema
- py3-jupyterhub
- py3-pyjwt
- py3-requests
- py3-ruamel-yaml
- py3-tornado
- py3-traitlets
- python-3
provider-priority: 0

vars:
pypi-package: oauthenticator
import: oauthenticator

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 @@ -35,18 +32,51 @@ pipeline:
repository: https://github.com/jupyterhub/oauthenticator
tag: ${{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:
- openssl
- py${{range.key}}-jsonschema
- py${{range.key}}-jupyterhub
- py${{range.key}}-pyjwt
- py${{range.key}}-requests
- py${{range.key}}-ruamel-yaml
- py${{range.key}}-tornado
- py${{range.key}}-traitlets
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:
environment:
contents:
packages:
- openssl
- py3-pyjwt
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.import}}
- uses: python/import
with:
imports: import oauthenticator
Expand Down

0 comments on commit 0c26d14

Please sign in to comment.