Skip to content

Commit

Permalink
multiversion py3-notebook-shim package (#37230)
Browse files Browse the repository at this point in the history
```bash
$ uv pip show notebook-shim
Name: notebook-shim
Version: 0.2.4
Location: /home/user/tmp/hacky_o64q1g/.venv/lib/python3.12/site-packages
Requires: jupyter-server
Required-by:
```

Signed-off-by: kranurag7 <[email protected]>
  • Loading branch information
kranurag7 authored Dec 17, 2024
1 parent b292215 commit c6538c9
Showing 1 changed file with 43 additions and 10 deletions.
53 changes: 43 additions & 10 deletions py3-notebook-shim.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,69 @@
# Generated from https://pypi.org/project/notebook-shim/
package:
name: py3-notebook-shim
version: 0.2.4
epoch: 1
epoch: 2
description: A shim layer for notebook traits and config
copyright:
- license: BSD-3-Clause
dependencies:
runtime:
- py3-jupyter-server
- python-3
provider-priority: 0

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

vars:
pypi-package: notebook-shim
import: notebook_shim

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

pipeline:
- uses: fetch
with:
expected-sha256: b4b2cfa1b65d98307ca24361f5b30fe785b53c3fd07b7a47e89acb5e6ac638cb
uri: https://files.pythonhosted.org/packages/source/n/notebook-shim/notebook_shim-${{package.version}}.tar.gz

- name: Python Build
uses: python/build-wheel
subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
runtime:
- py${{range.key}}-jupyter-server
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.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}}

update:
enabled: true
Expand Down

0 comments on commit c6538c9

Please sign in to comment.