Date: Friday, March 24, 2023 @ 17:29:21
  Author: heftig
Revision: 471974

archrelease: copy trunk to extra-x86_64

Added:
  pygobject/repos/extra-x86_64/PKGBUILD
    (from rev 471973, pygobject/trunk/PKGBUILD)
Deleted:
  pygobject/repos/extra-x86_64/PKGBUILD
  pygobject/repos/extra-x86_64/fix-test.diff

---------------+
 PKGBUILD      |  131 ++++++++++++++++++++++++++------------------------------
 fix-test.diff |   50 ---------------------
 2 files changed, 63 insertions(+), 118 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-24 17:29:12 UTC (rev 471973)
+++ PKGBUILD    2023-03-24 17:29:21 UTC (rev 471974)
@@ -1,68 +0,0 @@
-# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
-# Contributor: Ionut Biru <[email protected]>
-
-pkgbase=pygobject
-pkgname=(python-gobject)
-pkgver=3.44.0
-pkgrel=1
-pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
-url="https://wiki.gnome.org/Projects/PyGObject";
-arch=(x86_64)
-license=(LGPL)
-depends=(
-  gobject-introspection-runtime
-  python
-)
-makedepends=(
-  git
-  gobject-introspection
-  meson
-  python-cairo
-)
-checkdepends=(
-  gtk3
-  python-pytest
-  xorg-server-xvfb
-)
-optdepends=('cairo: Cairo bindings')
-provides=("pygobject-devel=$pkgver")
-conflicts=(pygobject-devel)
-replaces=('pygobject-devel<=3.36.1-1')
-_commit=894f8b1dd3246bad6edb75aa86f61f6d83531a33  # tags/3.44.0^0
-source=(
-  "git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit";
-  fix-test.diff
-)
-b2sums=('SKIP'
-        
'841a54a068a4a654337f84548db6c836bdb037a52bed3c45d0ba5d5d55d07b9edb5814fccaf482f78bd2a717adb654ff10e638c25dc71ead5c7307df4b5bc753')
-
-pkgver() {
-  cd pygobject
-  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
-}
-
-prepare() {
-  cd pygobject
-
-  # fix tests failing due to various warnings being upgraded to criticals
-  patch -Np1 -i ../fix-test.diff
-}
-
-build() {
-  arch-meson pygobject build
-  meson compile -C build
-}
-
-check() {
-  PYTEST_ADDOPTS="-v" PYGI_TEST_VERBOSE=1 \
-    xvfb-run -s '-nolisten local' \
-    meson test -C build --print-errorlogs
-}
-
-package_python-gobject() {
-  meson install -C build --destdir "$pkgdir"
-  python -m compileall -d /usr/lib "$pkgdir/usr/lib"
-  python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
-}
-
-# vim:set sw=2 sts=-1 et:

Copied: pygobject/repos/extra-x86_64/PKGBUILD (from rev 471973, 
pygobject/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-03-24 17:29:21 UTC (rev 471974)
@@ -0,0 +1,63 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Contributor: Ionut Biru <[email protected]>
+
+pkgbase=pygobject
+pkgname=(python-gobject)
+pkgver=3.44.1
+pkgrel=1
+pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
+url="https://wiki.gnome.org/Projects/PyGObject";
+arch=(x86_64)
+license=(LGPL)
+depends=(
+  gobject-introspection-runtime
+  python
+)
+makedepends=(
+  git
+  gobject-introspection
+  meson
+  python-cairo
+)
+checkdepends=(
+  gtk3
+  python-pytest
+  xorg-server-xvfb
+)
+optdepends=('cairo: Cairo bindings')
+provides=("pygobject-devel=$pkgver")
+conflicts=(pygobject-devel)
+replaces=('pygobject-devel<=3.36.1-1')
+_commit=1a2544c898ca2aafcab0c9e472be22657f310cf3  # tags/3.44.1^0
+source=(
+  "git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit";
+)
+b2sums=('SKIP')
+
+pkgver() {
+  cd pygobject
+  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+  cd pygobject
+}
+
+build() {
+  arch-meson pygobject build
+  meson compile -C build
+}
+
+check() {
+  PYTEST_ADDOPTS="-v" PYGI_TEST_VERBOSE=1 \
+    xvfb-run -s '-nolisten local' \
+    meson test -C build --print-errorlogs
+}
+
+package_python-gobject() {
+  meson install -C build --destdir "$pkgdir"
+  python -m compileall -d /usr/lib "$pkgdir/usr/lib"
+  python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
+}
+
+# vim:set sw=2 sts=-1 et:

Deleted: fix-test.diff
===================================================================
--- fix-test.diff       2023-03-24 17:29:12 UTC (rev 471973)
+++ fix-test.diff       2023-03-24 17:29:21 UTC (rev 471974)
@@ -1,50 +0,0 @@
-diff --git i/tests/test_properties.py w/tests/test_properties.py
-index ec5df0ca..f8b7823b 100644
---- i/tests/test_properties.py
-+++ w/tests/test_properties.py
-@@ -688,7 +688,7 @@ class TestProperty(unittest.TestCase):
- 
-         # we test known-bad values here which cause Gtk-WARNING logs.
-         # Explicitly allow these for this test.
--        with capture_glib_warnings(allow_warnings=True):
-+        with capture_glib_warnings(allow_warnings=True, allow_criticals=True):
-             o = C()
-             self.assertEqual(o.prop_int, 1)
- 
-diff --git i/tests/test_repository.py w/tests/test_repository.py
-index 0aa29b63..4390ff04 100644
---- i/tests/test_repository.py
-+++ w/tests/test_repository.py
-@@ -364,17 +364,17 @@ class Test(unittest.TestCase):
-         # also raise a RuntimeError.
-         GIMarshallingTests.NoTypeFlags  # cause flags registration
-         info = repo.find_by_name('GIMarshallingTests', 'NoTypeFlags')
--        with capture_glib_warnings(allow_warnings=True):
-+        with capture_glib_warnings(allow_warnings=True, allow_criticals=True):
-             self.assertRaises(RuntimeError,
-                               GIRepository.flags_register_new_gtype_and_add,
-                               info)
- 
-     def test_enum_double_registration_error(self):
-         # a warning is printed for double registration and pygobject will
-         # also raise a RuntimeError.
-         GIMarshallingTests.Enum  # cause enum registration
-         info = repo.find_by_name('GIMarshallingTests', 'Enum')
--        with capture_glib_warnings(allow_warnings=True):
-+        with capture_glib_warnings(allow_warnings=True, allow_criticals=True):
-             self.assertRaises(RuntimeError,
-                               GIRepository.enum_register_new_gtype_and_add,
-                               info)
-diff --git i/tests/test_signal.py w/tests/test_signal.py
-index e327d374..8a935fd8 100644
---- i/tests/test_signal.py
-+++ w/tests/test_signal.py
-@@ -365,7 +365,7 @@ class TestClosures(unittest.TestCase):
-             self.count += 1
- 
-     def _callback_invalid_stop_emission_name(self, obj, prop):
--        with capture_glib_warnings(allow_warnings=True) as warn:
-+        with capture_glib_warnings(allow_warnings=True, allow_criticals=True) 
as warn:
-             obj.stop_emission_by_name('notasignal::baddetail')
-             self.emission_error = True
-             self.assertTrue(warn)

Reply via email to