David Runge pushed to branch main at Arch Linux / Packaging / Packages / repod


Commits:
29596a32 by David Runge at 2024-04-13T14:56:55+02:00
upgpkg: 0.3.1-2: Rebuild against Python 3.12

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = repod
        pkgdesc = Tooling to maintain binary package repositories
        pkgver = 0.3.1
-       pkgrel = 1
+       pkgrel = 2
        url = https://repod.archlinux.page/
        arch = any
        license = GPL-3.0-or-later


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=repod
 pkgver=0.3.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Tooling to maintain binary package repositories"
 arch=(any)
 url="https://repod.archlinux.page/";
@@ -49,8 +49,22 @@ build() {
 }
 
 check() {
+  local pytest_options=(
+    -vv
+    -k 'not (integration or regex)'
+    # fail with Python 3.12 (unittest.mock.Mock.has_calls silently removed)
+    --deselect tests/config/test_settings.py::test_usertomlconfig[True-False]
+    --deselect tests/config/test_settings.py::test_usertomlconfig[False-False]
+    --deselect tests/config/test_settings.py::test_usertomlconfig[True-True]
+    --deselect tests/config/test_settings.py::test_usertomlconfig[False-True]
+    --deselect tests/config/test_settings.py::test_systemtomlconfig[True-False]
+    --deselect 
tests/config/test_settings.py::test_systemtomlconfig[False-False]
+    --deselect tests/config/test_settings.py::test_systemtomlconfig[True-True]
+    --deselect tests/config/test_settings.py::test_systemtomlconfig[False-True]
+  )
+
   cd $pkgname-$pkgver
-  make test
+  pytest "${pytest_options[@]}"
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/repod/-/commit/29596a329aa52fa606820c46365529cb88b748da

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


Reply via email to