Hello community,

here is the log from the commit of package python-gobject for openSUSE:Factory 
checked in at 2019-06-30 10:17:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gobject (Old)
 and      /work/SRC/openSUSE:Factory/.python-gobject.new.4615 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gobject"

Sun Jun 30 10:17:35 2019 rev:77 rq:711805 version:3.32.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gobject/python-gobject.changes    
2019-05-03 22:18:05.716185148 +0200
+++ /work/SRC/openSUSE:Factory/.python-gobject.new.4615/python-gobject.changes  
2019-06-30 10:17:36.859257879 +0200
@@ -1,0 +2,8 @@
+Mon Jun 24 07:05:38 UTC 2019 - Bjørn Lie <[email protected]>
+
+- Update to version 3.32.2:
+  + Python 3.8b1 compatibility fixes.
+  + tests: fix a test error when run under wayland.
+  + setup.py: specify python_requires.
+
+-------------------------------------------------------------------

Old:
----
  pygobject-3.32.1.tar.xz

New:
----
  pygobject-3.32.2.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gobject.spec ++++++
--- /var/tmp/diff_new_pack.txVABP/_old  2019-06-30 10:17:38.423260308 +0200
+++ /var/tmp/diff_new_pack.txVABP/_new  2019-06-30 10:17:38.459260364 +0200
@@ -22,7 +22,7 @@
 %global __requires_exclude_from 
^%{python2_sitearch}/gi/__init__.py|%{python3_sitearch}/gi/__init__.py$
 %define _name   pygobject
 Name:           python-gobject
-Version:        3.32.1
+Version:        3.32.2
 Release:        0
 Summary:        Python bindings for GObject
 License:        LGPL-2.1-or-later

++++++ pygobject-3.32.1.tar.xz -> pygobject-3.32.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pygobject-3.32.1/.gitlab-ci/test-msys2.sh 
new/pygobject-3.32.2/.gitlab-ci/test-msys2.sh
--- old/pygobject-3.32.1/.gitlab-ci/test-msys2.sh       2019-04-19 
20:35:13.000000000 +0200
+++ new/pygobject-3.32.2/.gitlab-ci/test-msys2.sh       2019-06-16 
16:24:42.000000000 +0200
@@ -54,10 +54,11 @@
 $PYTHON setup.py build_tests
 MSYSTEM= $PYTHON -m coverage run tests/runtests.py
 
-curl -O -J -L 
"https://github.com/linux-test-project/lcov/archive/master.tar.gz";
-tar -xvzf lcov-master.tar.gz
+# FIXME: lcov doesn't support gcc9
+#~ curl -O -J -L 
"https://github.com/linux-test-project/lcov/archive/master.tar.gz";
+#~ tar -xvzf lcov-master.tar.gz
 
-./lcov-master/bin/lcov \
-    --rc lcov_branch_coverage=1 --no-external \
-    --directory . --capture --output-file \
-    "${COV_DIR}/${COV_KEY}.lcov"
+#~ ./lcov-master/bin/lcov \
+    #~ --rc lcov_branch_coverage=1 --no-external \
+    #~ --directory . --capture --output-file \
+    #~ "${COV_DIR}/${COV_KEY}.lcov"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pygobject-3.32.1/NEWS new/pygobject-3.32.2/NEWS
--- old/pygobject-3.32.1/NEWS   2019-04-20 11:18:05.000000000 +0200
+++ new/pygobject-3.32.2/NEWS   2019-06-23 15:38:08.000000000 +0200
@@ -1,3 +1,11 @@
+3.32.2 - 2019-06-23
+-------------------
+
+* Python 3.8b1 compatibility fixes
+* tests: fix a test error when run under wayland
+* setup.py: specify python_requires
+
+
 3.32.1 - 2019-04-20
 -------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pygobject-3.32.1/PKG-INFO 
new/pygobject-3.32.2/PKG-INFO
--- old/pygobject-3.32.1/PKG-INFO       2019-04-20 11:25:10.000000000 +0200
+++ new/pygobject-3.32.2/PKG-INFO       2019-06-23 15:41:56.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: PyGObject
-Version: 3.32.1
+Version: 3.32.2
 Summary: Python bindings for GObject Introspection
 Home-page: https://pygobject.readthedocs.io
 Author: James Henstridge
@@ -40,3 +40,4 @@
 Classifier: Programming Language :: C
 Classifier: Programming Language :: Python
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pygobject-3.32.1/PyGObject.egg-info/PKG-INFO 
new/pygobject-3.32.2/PyGObject.egg-info/PKG-INFO
--- old/pygobject-3.32.1/PyGObject.egg-info/PKG-INFO    2019-04-20 
11:25:09.000000000 +0200
+++ new/pygobject-3.32.2/PyGObject.egg-info/PKG-INFO    2019-06-23 
15:41:56.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: PyGObject
-Version: 3.32.1
+Version: 3.32.2
 Summary: Python bindings for GObject Introspection
 Home-page: https://pygobject.readthedocs.io
 Author: James Henstridge
@@ -40,3 +40,4 @@
 Classifier: Programming Language :: C
 Classifier: Programming Language :: Python
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pygobject-3.32.1/gi/pygobject-object.c 
new/pygobject-3.32.2/gi/pygobject-object.c
--- old/pygobject-3.32.1/gi/pygobject-object.c  2019-01-20 10:52:42.000000000 
+0100
+++ new/pygobject-3.32.2/gi/pygobject-object.c  2019-06-16 15:50:23.000000000 
+0200
@@ -878,7 +878,10 @@
                                   offsetof(PyTypeObject, tp_iter),
                                   offsetof(PyTypeObject, tp_repr),
                                   offsetof(PyTypeObject, tp_str),
-                                  offsetof(PyTypeObject, tp_print) };
+#if PY_VERSION_HEX < 0x03000000
+                                  offsetof(PyTypeObject, tp_print),
+#endif
+    };
     gsize i;
 
     /* Happens when registering gobject.GObject itself, at least. */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pygobject-3.32.1/meson.build 
new/pygobject-3.32.2/meson.build
--- old/pygobject-3.32.1/meson.build    2019-04-19 20:35:13.000000000 +0200
+++ new/pygobject-3.32.2/meson.build    2019-06-23 15:34:36.000000000 +0200
@@ -1,5 +1,5 @@
 project('pygobject', 'c',
-  version : '3.32.1',
+  version : '3.32.2',
   meson_version : '>= 0.46.0',
   default_options : [ 'warning_level=1',
                       'buildtype=debugoptimized'])
@@ -72,7 +72,6 @@
     '-Wall',
     '-Warray-bounds',
     '-Wcast-align',
-    '-Wdeclaration-after-statement',
     '-Wduplicated-branches',
     '-Wextra',
     '-Wformat=2',
@@ -98,11 +97,18 @@
     '-Wsign-compare',
     '-Wstrict-aliasing',
     '-Wstrict-prototypes',
+    '-Wswitch-default',
     '-Wundef',
     '-Wunused-but-set-variable',
     '-Wwrite-strings',
   ]
 
+  if python.language_version().split('.')[0] == '2'
+    main_c_args += [
+        '-Wdeclaration-after-statement',
+    ]
+  endif
+
   main_c_args += [
     '-Wno-incompatible-pointer-types-discards-qualifiers',
     '-Wno-missing-field-initializers',
@@ -118,12 +124,6 @@
     '-fvisibility=hidden',
   ]
 
-  if not ['3.3', '3.4'].contains(python.language_version())
-    main_c_args += [
-      '-Wswitch-default',
-    ]
-  endif
-
   main_c_args = cc.get_supported_arguments(main_c_args)
 endif
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pygobject-3.32.1/setup.py 
new/pygobject-3.32.2/setup.py
--- old/pygobject-3.32.1/setup.py       2019-04-19 20:35:13.000000000 +0200
+++ new/pygobject-3.32.2/setup.py       2019-06-23 15:34:36.000000000 +0200
@@ -41,7 +41,7 @@
 from distutils.spawn import find_executable
 
 
-PYGOBJECT_VERSION = "3.32.1"
+PYGOBJECT_VERSION = "3.32.2"
 GLIB_VERSION_REQUIRED = "2.48.0"
 GI_VERSION_REQUIRED = "1.46.0"
 PYCAIRO_VERSION_REQUIRED = "1.11.1"
@@ -975,7 +975,6 @@
                 "-Wall",
                 "-Warray-bounds",
                 "-Wcast-align",
-                "-Wdeclaration-after-statement",
                 "-Wduplicated-branches",
                 "-Wextra",
                 "-Wformat=2",
@@ -1001,14 +1000,15 @@
                 "-Wsign-compare",
                 "-Wstrict-aliasing",
                 "-Wstrict-prototypes",
+                "-Wswitch-default",
                 "-Wundef",
                 "-Wunused-but-set-variable",
                 "-Wwrite-strings",
             ]
 
-            if sys.version_info[:2] != (3, 4):
+            if sys.version_info[0] == 2:
                 args += [
-                    "-Wswitch-default",
+                    "-Wdeclaration-after-statement",
                 ]
 
             args += [
@@ -1272,6 +1272,8 @@
             "install_pkgconfig": install_pkgconfig,
         },
         install_requires=install_requires,
+        python_requires=(
+            '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'),
         data_files=[
             ('include/pygobject-3.0', ['gi/pygobject.h']),
         ],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pygobject-3.32.1/tests/test_overrides_gtk.py 
new/pygobject-3.32.2/tests/test_overrides_gtk.py
--- old/pygobject-3.32.1/tests/test_overrides_gtk.py    2019-04-19 
20:35:13.000000000 +0200
+++ new/pygobject-3.32.2/tests/test_overrides_gtk.py    2019-06-23 
15:30:51.000000000 +0200
@@ -6,10 +6,10 @@
 
 import contextlib
 import unittest
-import time
 import sys
 import gc
 import warnings
+import timeit
 
 import pytest
 
@@ -150,11 +150,7 @@
     del b
     gc.collect()
     gc.collect()
-    if GTK4:
-        # XXX: Why?
-        assert w.get_preferred_size().minimum_size.height == height + 10
-    else:
-        assert w.get_preferred_size().minimum_size.height == height
+    assert w.get_preferred_size().minimum_size.height >= height
 
 
 @unittest.skipUnless(Gtk, 'Gtk not available')
@@ -2260,12 +2256,12 @@
         model = Gtk.ListStore(int, str)
 
         iterations = 2000
-        start = time.clock()
+        start = timeit.default_timer()
         i = iterations
         while i > 0:
             model.append([1, 'hello'])
             i -= 1
-        end = time.clock()
+        end = timeit.default_timer()
         sys.stderr.write('[%.0f µs/append] ' % ((end - start) * 1000000 / 
iterations))
 
     def test_filter_new_default(self):


Reply via email to