Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / 
python-pymupdf


Commits:
3659f379 by Robin Candau at 2024-03-22T12:55:50+01:00
upgpkg: 1.24.0-1: New upstream release + Adapt patch to new upstream 
dependencies' definition

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + remove-clang-and-swig-dependencies.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-pymupdf
        pkgdesc = Python bindings for MuPDF's rendering library
-       pkgver = 1.23.26
-       pkgrel = 2
+       pkgver = 1.24.0
+       pkgrel = 1
        url = https://github.com/pymupdf/PyMuPDF
        arch = x86_64
        license = AGPL-3.0-or-later
@@ -24,8 +24,11 @@ pkgbase = python-pymupdf
        depends = python-mupdf
        optdepends = python-fonttools: for building font subsets using fontTools
        optdepends = python-pillow: for image file saving using pillow
-       source = 
PyMuPDF-1.23.26.tar.gz::https://github.com/pymupdf/PyMuPDF/archive/refs/tags/1.23.26.tar.gz
-       sha512sums = 
b7fa1ca78853692c7df59334670f31bd4506a4d3c153578e6a983569dbe46472aee88541d5454c3d8ff9ca8ed404275dc643bed618d6ebb253bb63a96ea152d2
-       b2sums = 
4bfd4c01644903b52d2b65d2c297c89c1b08abc17021750fc7284c15ae8523d20a8d58f2344a16ccd7236768dc96a310af14dac9a88c63cf4afcf1023a0963d1
+       source = 
PyMuPDF-1.24.0.tar.gz::https://github.com/pymupdf/PyMuPDF/archive/refs/tags/1.24.0.tar.gz
+       source = remove-clang-and-swig-dependencies.patch
+       sha512sums = 
2980701e47d01e20a582abdf9a18f9c67bf887834a0e3e7217f963bfe9e35e62836b9bea5591e5194159f907b95d09cebe63ea8d7bbe0177bae637d247f52e03
+       sha512sums = 
fb2da9db1ba9b34ecfe6556d912659c36f9603eefeaa9836d2b692f42952955a6de10d8629a8f2bafd813aaf678782aca12033031b6ccc52c1bc1a4ee5fb897c
+       b2sums = 
c313c7ffc8a127b5ac5e642b77b86ef07c594808d2c3ada8e66e8d4ddd5aa5d1268edc9d8ab11cd211b7ad86ecae6e0c860ff4d49b5d6b4fad33179a6dd1fc01
+       b2sums = 
8c4f93146385bd2e74b8245b4b8d8ece390ef97ad369602adcfcc56c8f9858f4c754886e290f0f6bfea1727fca6897715f3e8eeb961609fdad6fadf57493e354
 
 pkgname = python-pymupdf


=====================================
PKGBUILD
=====================================
@@ -3,8 +3,8 @@
 
 _name=PyMuPDF
 pkgname=python-pymupdf
-pkgver=1.23.26
-pkgrel=2
+pkgver=1.24.0
+pkgrel=1
 pkgdesc="Python bindings for MuPDF's rendering library"
 arch=(x86_64)
 url="https://github.com/pymupdf/PyMuPDF";
@@ -39,15 +39,19 @@ optdepends=(
 )
 source=(
   $_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz
+  remove-clang-and-swig-dependencies.patch
 )
-sha512sums=('b7fa1ca78853692c7df59334670f31bd4506a4d3c153578e6a983569dbe46472aee88541d5454c3d8ff9ca8ed404275dc643bed618d6ebb253bb63a96ea152d2')
-b2sums=('4bfd4c01644903b52d2b65d2c297c89c1b08abc17021750fc7284c15ae8523d20a8d58f2344a16ccd7236768dc96a310af14dac9a88c63cf4afcf1023a0963d1')
+sha512sums=('2980701e47d01e20a582abdf9a18f9c67bf887834a0e3e7217f963bfe9e35e62836b9bea5591e5194159f907b95d09cebe63ea8d7bbe0177bae637d247f52e03'
+            
'fb2da9db1ba9b34ecfe6556d912659c36f9603eefeaa9836d2b692f42952955a6de10d8629a8f2bafd813aaf678782aca12033031b6ccc52c1bc1a4ee5fb897c')
+b2sums=('c313c7ffc8a127b5ac5e642b77b86ef07c594808d2c3ada8e66e8d4ddd5aa5d1268edc9d8ab11cd211b7ad86ecae6e0c860ff4d49b5d6b4fad33179a6dd1fc01'
+        
'8c4f93146385bd2e74b8245b4b8d8ece390ef97ad369602adcfcc56c8f9858f4c754886e290f0f6bfea1727fca6897715f3e8eeb961609fdad6fadf57493e354')
 
 prepare() {
   # remove bundled mupdf sources
   rm -frv $pkgname/*.tgz
   # we package clang and swig and don't need python-clang or python-swig
-  sed -e 's/"libclang", "swig", //' -i $_name-$pkgver/pyproject.toml
+  cd $_name-$pkgver
+  patch -Np1 < $srcdir/remove-clang-and-swig-dependencies.patch
 }
 
 build() {
@@ -93,8 +97,6 @@ check() {
     --deselect tests/test_general.py::test_subset_fonts
     # we do not care about flake8
     --deselect tests/test_flake8.py::test_flake8
-    # disable test broken with mupdf 1.24.0
-    --deselect tests/test_2548.py::test_2548
   )
   local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
 


=====================================
remove-clang-and-swig-dependencies.patch
=====================================
@@ -0,0 +1,19 @@
+diff --git a/setup.py b/setup.py
+index 5dacd895..17c99cee 100755
+--- a/setup.py
++++ b/setup.py
+@@ -1178,14 +1178,10 @@ def get_requires_for_build_wheel(config_settings=None):
+     elif darwin and platform.machine() == 'arm64':
+         print(f'MacOS/arm64: forcing use of libclang 16.0.6 because 18.1.1 
known to fail with `clang.cindex.TranslationUnitLoadError: Error parsing 
translation unit.`')
+         ret.append('libclang==16.0.6')
+-    else:
+-        ret.append('libclang')
+     if msys2:
+         print(f'msys2: pip install of swig does not build; assuming `pacman 
-S swig`.')
+     elif openbsd:
+         print(f'OpenBSD: pip install of swig does not build; assuming 
`pkg_add swig`.')
+-    else:
+-        ret.append( 'swig')
+     return ret
+ 
+ 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pymupdf/-/commit/3659f379f9b90e6baa59ce39e462b1889a0e7428

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


Reply via email to