From d84453b50b7a8adab75856eb6824c25b1670e1de Mon Sep 17 00:00:00 2001 From: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com> Date: Fri, 19 Apr 2024 12:17:20 +0000 Subject: [PATCH 1/3] py3-traitlets/5.14.3 package update Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com> --- py3-traitlets.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py3-traitlets.yaml b/py3-traitlets.yaml index 71e5ae64ba..68b4daea61 100644 --- a/py3-traitlets.yaml +++ b/py3-traitlets.yaml @@ -1,6 +1,6 @@ package: name: py3-traitlets - version: 5.14.2 + version: 5.14.3 epoch: 0 description: Traitlets Python configuration system copyright: @@ -25,7 +25,7 @@ pipeline: - uses: git-checkout with: repository: https://github.com/ipython/traitlets - expected-commit: cb672eb5ba235fdfee6407bd7f1b1985de934e7c + expected-commit: 13de53c537a257402035139dd6862558eb19d362 tag: v${{package.version}} - name: Python Build From 35c1465c4603e147e09bbaa5a019048b87d16ac0 Mon Sep 17 00:00:00 2001 From: Sergio Gonzalez Date: Mon, 22 Apr 2024 10:00:48 -0600 Subject: [PATCH 2/3] Build with hatch and add package test Signed-off-by: Sergio Gonzalez --- py3-traitlets.yaml | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/py3-traitlets.yaml b/py3-traitlets.yaml index 68b4daea61..fc81ce4d82 100644 --- a/py3-traitlets.yaml +++ b/py3-traitlets.yaml @@ -5,9 +5,6 @@ package: description: Traitlets Python configuration system copyright: - license: BSD-3-Clause - dependencies: - runtime: - - python3 environment: contents: @@ -15,10 +12,9 @@ environment: - build-base - busybox - ca-certificates-bundle - - py3-build - - py3-installer - - py3-setuptools + - py3-pip - python3 + - rsync - wolfi-base pipeline: @@ -28,11 +24,20 @@ pipeline: 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 @@ -41,3 +46,12 @@ update: github: identifier: ipython/traitlets strip-prefix: v + +test: + environment: + contents: + packages: + - python3 + pipeline: + - runs: | + /usr/bin/python3 -c 'from traitlets import HasTraits' From fc22192eeade5bff735d24fe375f88d1e05a3e50 Mon Sep 17 00:00:00 2001 From: Sergio Gonzalez Date: Mon, 22 Apr 2024 10:12:05 -0600 Subject: [PATCH 3/3] epoch fix for zip value error Signed-off-by: Sergio Gonzalez --- py3-traitlets.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py3-traitlets.yaml b/py3-traitlets.yaml index fc81ce4d82..3d8ef065ff 100644 --- a/py3-traitlets.yaml +++ b/py3-traitlets.yaml @@ -16,6 +16,9 @@ environment: - 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