George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / 
python-pillow


Commits:
ea43ea92 by George Rawlinson at 2024-07-02T11:44:25+12:00
upgpkg: 10.4.0-1

* New upstream release.
* Update license to use SPDX reference.
* Switch from git commit to git tag for version/checksum.
* Use venv for testing instead of PYTHONPATH hackery.
* Switch license from symlink to file.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,10 +1,10 @@
 pkgbase = python-pillow
        pkgdesc = Python Imaging Library (PIL) fork
-       pkgver = 10.3.0
-       pkgrel = 2
+       pkgver = 10.4.0
+       pkgrel = 1
        url = https://python-pillow.org
        arch = x86_64
-       license = BSD
+       license = BSD-Attribution-HPND-disclaimer
        checkdepends = python-pytest
        checkdepends = python-pytest-timeout
        makedepends = git
@@ -30,7 +30,8 @@ pkgbase = python-pillow
        optdepends = tk: for the ImageTK module
        optdepends = python-olefile: OLE2 file support
        optdepends = python-pyqt6: for the ImageQt module
-       source = 
python-pillow::git+https://github.com/python-pillow/Pillow#commit=5c89d88eee199ba53f64581ea39b6a1bc52feb1a
-       b2sums = SKIP
+       source = 
python-pillow::git+https://github.com/python-pillow/Pillow#tag=10.4.0
+       sha512sums = 
3d8d9f5b32427f04b75d3a2ca4dc9247805c6918903f361dcc8fef32390fc59da0244539d8f85985aa33152b757e92462775f45b8f0aa9d2a94c47b3bddc1a6a
+       b2sums = 
5ca9614e6e76b2838f9c85c84a9b40e61cb672cf01707763195e31f9b7cf62dec2dc346e9e1a527e9e4ba089d399677fe68fac7f5fd8efd346ac763dec26c300
 
 pkgname = python-pillow


=====================================
PKGBUILD
=====================================
@@ -3,12 +3,12 @@
 # Contributor: minder
 
 pkgname=python-pillow
-pkgver=10.3.0
-pkgrel=2
+pkgver=10.4.0
+pkgrel=1
 pkgdesc='Python Imaging Library (PIL) fork'
 arch=('x86_64')
 url='https://python-pillow.org'
-license=('BSD')
+license=('BSD-Attribution-HPND-disclaimer')
 depends=(
   'glibc'
   'python'
@@ -42,15 +42,9 @@ optdepends=(
   'python-olefile: OLE2 file support'
   'python-pyqt6: for the ImageQt module'
 )
-_commit='5c89d88eee199ba53f64581ea39b6a1bc52feb1a'
-source=("$pkgname::git+https://github.com/python-pillow/Pillow#commit=$_commit";)
-b2sums=('SKIP')
-
-pkgver() {
-  cd "$pkgname"
-
-  git describe --tags | sed 's/^v//'
-}
+source=("$pkgname::git+https://github.com/python-pillow/Pillow#tag=$pkgver";)
+sha512sums=('3d8d9f5b32427f04b75d3a2ca4dc9247805c6918903f361dcc8fef32390fc59da0244539d8f85985aa33152b757e92462775f45b8f0aa9d2a94c47b3bddc1a6a')
+b2sums=('5ca9614e6e76b2838f9c85c84a9b40e61cb672cf01707763195e31f9b7cf62dec2dc346e9e1a527e9e4ba089d399677fe68fac7f5fd8efd346ac763dec26c300')
 
 build() {
   cd "$pkgname"
@@ -61,10 +55,10 @@ build() {
 check() {
   cd "$pkgname"
 
-  local python_version=$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')
-  export PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version"
-  python selftest.py
-  pytest -v
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  test-env/bin/python selftest.py
+  test-env/bin/python -m pytest -v
 }
 
 package() {
@@ -75,9 +69,6 @@ package() {
   local python_version=$(python -c 'import sys; print(".".join(map(str, 
sys.version_info[:2])))')
   install -vDm644 -t "$pkgdir/usr/include/python$python_version" 
src/libImaging/*.h
 
-  # symlink license file
-  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
-  install -d "$pkgdir/usr/share/licenses/$pkgname"
-  ln -s "$site_packages/Pillow-$pkgver.dist-info/LICENSE" \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pillow/-/commit/ea43ea9251231b3238b3aa473be95d0736b71095

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pillow/-/commit/ea43ea9251231b3238b3aa473be95d0736b71095
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to