From e819b1617443d3cae6a7d023db5867c5d72c78f8 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Thu, 28 Mar 2024 21:40:20 +0100 Subject: [PATCH] upgpkg: python-pydicom 2.4.4-2 Switch build to PEP517 --- python-pydicom/.SRCINFO | 9 ++++++--- python-pydicom/PKGBUILD | 18 ++++++++---------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/python-pydicom/.SRCINFO b/python-pydicom/.SRCINFO index 8d4cb7b..e4def8b 100644 --- a/python-pydicom/.SRCINFO +++ b/python-pydicom/.SRCINFO @@ -1,13 +1,16 @@ pkgbase = python-pydicom pkgdesc = Pure python package for working with DICOM files pkgver = 2.4.4 - pkgrel = 1 + pkgrel = 2 url = https://pydicom.github.io/pydicom/stable/index.html arch = any license = MIT - license = custom + license = LicenseRef-GDCM checkdepends = python-pytest - makedepends = python-setuptools + makedepends = python-wheel + makedepends = python-build + makedepends = python-installer + makedepends = python-flit-core depends = python optdepends = python-numpy: for working with pixel data optdepends = python-pillow: for working with compressed image data diff --git a/python-pydicom/PKGBUILD b/python-pydicom/PKGBUILD index 100ac21..4f4f349 100644 --- a/python-pydicom/PKGBUILD +++ b/python-pydicom/PKGBUILD @@ -3,13 +3,13 @@ # Contributor: Andrzej Giniewicz pkgname=python-pydicom pkgver=2.4.4 -pkgrel=1 +pkgrel=2 pkgdesc="Pure python package for working with DICOM files" arch=("any") url="https://pydicom.github.io/pydicom/stable/index.html" -license=('MIT' 'custom') +license=('MIT' 'LicenseRef-GDCM') depends=('python') -makedepends=('python-setuptools') +makedepends=('python-wheel' 'python-build' 'python-installer' 'python-flit-core') optdepends=('python-numpy: for working with pixel data' 'python-pillow: for working with compressed image data' 'gdcm: for working with compressed JPEG, JPEG-LS and JPEG 2000 images' @@ -18,10 +18,8 @@ optdepends=('python-numpy: for working with pixel data' 'python-pylibjpeg-rle: for working with compressed RLE images' ) checkdepends=('python-pytest') -source=( -"$pkgname-$pkgver.tar.gz::https://github.com/pydicom/pydicom/archive/v$pkgver.tar.gz" -"pillow-10.1.patch" -) +source=("$pkgname-$pkgver.tar.gz::https://github.com/pydicom/pydicom/archive/v$pkgver.tar.gz" + "pillow-10.1.patch") md5sums=('748bfd7ad12373675c9df4e088f38dd1' '837949b3e4505c3fee9c43e8d5665251') @@ -34,13 +32,13 @@ prepare() build() { cd "$srcdir/pydicom-$pkgver" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "$srcdir/pydicom-$pkgver" - python setup.py install --skip-build --root="$pkgdir"/ --optimize=1 + python -m installer --destdir="$pkgdir"/ dist/*.whl install -D "$srcdir/pydicom-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } @@ -49,5 +47,5 @@ check() { cd "$srcdir/pydicom-$pkgver" # CLI tests are broken, skip those - PYTHONDONTWRITEBYTECODE=1 pytest -k "not TestCLIcall" + pytest -k "not TestCLIcall" }