Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-py


Commits:
72f8f6d9 by Jelle van der Waa at 2025-12-21T20:26:05+01:00
upgpkg: 1.11.0-8: Rebuild for Python 3.14

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + remove-broken-yield-in-test.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-py
        pkgdesc = library with cross-python path, ini-parsing, io, code, log 
facilities
        pkgver = 1.11.0
-       pkgrel = 7
+       pkgrel = 8
        url = https://py.readthedocs.io/
        arch = any
        license = MIT
@@ -20,7 +20,9 @@ pkgbase = python-py
        optdepends = python-pytest: for py.test module
        source = 
git+https://github.com/pytest-dev/py.git#commit=447bac514febbb5433963582103d48bb27b3db17
        source = python-py-1.11.0-devendor.patch
-       sha512sums = SKIP
+       source = remove-broken-yield-in-test.patch
+       sha512sums = 
54b04c9540cd9b155f733f0ed04511c33a8eb5aa57780b741b19c4c20a0049ec90269d597f21aa67d0e53e7e80acb583d71ecddf8114bda231add873c31028ef
        sha512sums = 
edab08dc6331637b20e385e14622e0df147c2a0b6974f31683ccd9ca1ba3513c167e6b7e0ddbc664ef1c208ea3eeee87c6ff0e2b7810bc15a71c61d382717eca
+       sha512sums = 
5be7c20e4080612337b6bec8b81e6c5c289caa6385915c770758e3a1a9fadfeb253621440645fdec6c1d0b328d95b34847717ab3177b1ef4f37c51e1069f1445
 
 pkgname = python-py


=====================================
PKGBUILD
=====================================
@@ -8,7 +8,7 @@
 pkgname=python-py
 pkgver=1.11.0
 _commit=447bac514febbb5433963582103d48bb27b3db17  # refs/tags/1.11.0
-pkgrel=7
+pkgrel=8
 pkgdesc="library with cross-python path, ini-parsing, io, code, log facilities"
 arch=('any')
 license=('MIT')
@@ -37,9 +37,11 @@ optdepends=(
 source=(
   "git+https://github.com/pytest-dev/py.git#commit=$_commit";
   $pkgname-1.11.0-devendor.patch
+  "remove-broken-yield-in-test.patch"
 )
-sha512sums=('SKIP'
-            
'edab08dc6331637b20e385e14622e0df147c2a0b6974f31683ccd9ca1ba3513c167e6b7e0ddbc664ef1c208ea3eeee87c6ff0e2b7810bc15a71c61d382717eca')
+sha512sums=('54b04c9540cd9b155f733f0ed04511c33a8eb5aa57780b741b19c4c20a0049ec90269d597f21aa67d0e53e7e80acb583d71ecddf8114bda231add873c31028ef'
+            
'edab08dc6331637b20e385e14622e0df147c2a0b6974f31683ccd9ca1ba3513c167e6b7e0ddbc664ef1c208ea3eeee87c6ff0e2b7810bc15a71c61d382717eca'
+            
'5be7c20e4080612337b6bec8b81e6c5c289caa6385915c770758e3a1a9fadfeb253621440645fdec6c1d0b328d95b34847717ab3177b1ef4f37c51e1069f1445')
 
 prepare() {
   cd py
@@ -49,6 +51,9 @@ prepare() {
   # devendor python-apipkg and python-iniconfig
   git apply -3 ../$pkgname-1.11.0-devendor.patch
   rm -r py/_vendored_packages
+
+  # https://github.com/pytest-dev/py/issues/299
+  patch -Np1 -i ${srcdir}/remove-broken-yield-in-test.patch
 }
 
 build() {


=====================================
remove-broken-yield-in-test.patch
=====================================
@@ -0,0 +1,28 @@
+diff -aur py.old/testing/code/test_source.py py/testing/code/test_source.py
+--- py.old/testing/code/test_source.py 2025-12-21 20:06:58.873944403 +0100
++++ py/testing/code/test_source.py     2025-12-21 20:08:39.014739234 +0100
+@@ -279,24 +279,6 @@
+         #print "block", str(block)
+         assert str(stmt).strip().startswith('assert')
+ 
+-    def test_compilefuncs_and_path_sanity(self):
+-        def check(comp, name):
+-            co = comp(self.source, name)
+-            if not name:
+-                expected = "codegen %s:%d>" %(mypath, mylineno+2+1)
+-            else:
+-                expected = "codegen %r %s:%d>" % (name, mypath, mylineno+2+1)
+-            fn = co.co_filename
+-            assert fn.endswith(expected)
+-
+-        mycode = py.code.Code(self.test_compilefuncs_and_path_sanity)
+-        mylineno = mycode.firstlineno
+-        mypath = mycode.path
+-
+-        for comp in py.code.compile, py.code.Source.compile:
+-            for name in '', None, 'my':
+-                yield check, comp, name
+-
+     def test_offsetless_synerr(self):
+         py.test.raises(SyntaxError, py.code.compile, "lambda a,a: 0", 
mode='eval')
+ 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-py/-/commit/72f8f6d9c7019074123a88ba9eb7b756356bb88f

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


Reply via email to