Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / python-piexif
Commits: 1e9bc8b3 by Jelle van der Waa at 2024-05-15T21:54:49+02:00 Add compatibility with Python 3.13 unittest.makeSuite is removed in Python 3.13 - - - - - 3 changed files: - .SRCINFO - PKGBUILD - + unittest-makesuite-removal.patch Changes: ===================================== .SRCINFO ===================================== @@ -16,7 +16,9 @@ pkgbase = python-piexif depends = python source = python-piexif-1.1.3.tar.gz::https://github.com/hMatoba/Piexif/archive/1.1.3.tar.gz source = pillow-7.2.patch + source = unittest-makesuite-removal.patch sha512sums = bae3a51603bf46e9a8170db180a298c70c77537cb405582eb53ade2b29907fbaeeb4d890a124e0a54de53077b7631c007be088c690f81fb3eda1cd3ccb1ca0d2 sha512sums = be1ee541e3bb6c219d6fd9ab68e9143c2131f695a2001d36a0d63b0566d71a542a09d58dc0bcbdb8c1353297156ea7853d483b9a44407cb31c30acc4252310bf + sha512sums = e8b3742524f43e82d55ec2044367cd0c1a42e2741ef734a7d90c81dd118d9e204a521e49b98b60556703eaaec060e42de06c0ac43fbaf383996840e3d62cd97c pkgname = python-piexif ===================================== PKGBUILD ===================================== @@ -24,15 +24,20 @@ checkdepends=( source=( $pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz pillow-7.2.patch + unittest-makesuite-removal.patch ) sha512sums=('bae3a51603bf46e9a8170db180a298c70c77537cb405582eb53ade2b29907fbaeeb4d890a124e0a54de53077b7631c007be088c690f81fb3eda1cd3ccb1ca0d2' - 'be1ee541e3bb6c219d6fd9ab68e9143c2131f695a2001d36a0d63b0566d71a542a09d58dc0bcbdb8c1353297156ea7853d483b9a44407cb31c30acc4252310bf') + 'be1ee541e3bb6c219d6fd9ab68e9143c2131f695a2001d36a0d63b0566d71a542a09d58dc0bcbdb8c1353297156ea7853d483b9a44407cb31c30acc4252310bf' + 'e8b3742524f43e82d55ec2044367cd0c1a42e2741ef734a7d90c81dd118d9e204a521e49b98b60556703eaaec060e42de06c0ac43fbaf383996840e3d62cd97c') prepare() { cd $_name-$pkgver # https://github.com/hMatoba/Piexif/issues/108 patch -Np1 -i ../pillow-7.2.patch + + # unittest.makeSuite removal https://docs.python.org/3.13/whatsnew/3.13.html#unittest + patch -Np1 -i ../unittest-makesuite-removal.patch } build() { ===================================== unittest-makesuite-removal.patch ===================================== @@ -0,0 +1,18 @@ +diff -aur Piexif-1.1.3.old/tests/s_test.py Piexif-1.1.3/tests/s_test.py +--- Piexif-1.1.3.old/tests/s_test.py 2024-05-15 21:51:44.742030341 +0200 ++++ Piexif-1.1.3/tests/s_test.py 2024-05-15 21:52:12.922702189 +0200 +@@ -1056,10 +1056,10 @@ + def suite(): + suite = unittest.TestSuite() + suite.addTests([ +- unittest.makeSuite(UTests), +- unittest.makeSuite(ExifTests), +- unittest.makeSuite(HelperTests), +- unittest.makeSuite(WebpTests), ++ unittest.defaultTestLoader.loadTestsFromTestCase(UTests), ++ unittest.defaultTestLoader.loadTestsFromTestCase(ExifTests), ++ unittest.defaultTestLoader.loadTestsFromTestCase(HelperTests), ++ unittest.defaultTestLoader.loadTestsFromTestCase(WebpTests), + ]) + return suite + View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-piexif/-/commit/1e9bc8b302544d20213c03131cb96f510ac8a73b -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-piexif/-/commit/1e9bc8b302544d20213c03131cb96f510ac8a73b You're receiving this email because of your account on gitlab.archlinux.org.