Skip to content
Merged
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
41 changes: 29 additions & 12 deletions py3-traitlets.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,46 @@
package:
name: py3-traitlets
version: 5.14.2
version: 5.14.3
epoch: 0
description: Traitlets Python configuration system
copyright:
- license: BSD-3-Clause
dependencies:
runtime:
- python3

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3-build
- py3-installer
- py3-setuptools
- py3-pip
- python3
- rsync
- wolfi-base
environment:
# This is needed to work around the error "ValueError: ZIP does not support timestamps before 1980"
SOURCE_DATE_EPOCH: 315532800

pipeline:
- uses: git-checkout
with:
repository: https://github.com/ipython/traitlets
expected-commit: cb672eb5ba235fdfee6407bd7f1b1985de934e7c
expected-commit: 13de53c537a257402035139dd6862558eb19d362
tag: v${{package.version}}

- name: Python Build
runs: python -m build
- name: Install hatchling
runs: |
python3 -m pip install hatch

- name: Copy project
runs: |
mkdir -p "${{targets.destdir}}/lib"
rsync -a --exclude='melange-out/*' . "${{targets.destdir}}/lib/traitlets"

- name: Python Install
runs: python -m installer -d "${{targets.destdir}}/" dist/traitlets*.whl
- name: Build project
runs: |
cd "${{targets.destdir}}/lib/traitlets"
hatch build
python3 -m pip install dist/*.whl --target "${{targets.destdir}}/usr/lib/python3.12/site-packages/"

- uses: strip

Expand All @@ -41,3 +49,12 @@ update:
github:
identifier: ipython/traitlets
strip-prefix: v

test:
environment:
contents:
packages:
- python3
pipeline:
- runs: |
/usr/bin/python3 -c 'from traitlets import HasTraits'