$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"
+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
-------------------
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. */
project('pygobject', 'c',
- version : '3.32.1',
+ version : '3.32.2',
meson_version : '>= 0.46.0',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized'])
'-Wall',
'-Warray-bounds',
'-Wcast-align',
- '-Wdeclaration-after-statement',
'-Wduplicated-branches',
'-Wextra',
'-Wformat=2',
'-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',
'-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
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"
"-Wall",
"-Warray-bounds",
"-Wcast-align",
- "-Wdeclaration-after-statement",
"-Wduplicated-branches",
"-Wextra",
"-Wformat=2",
"-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 += [
"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']),
],
import contextlib
import unittest
-import time
import sys
import gc
import warnings
+import timeit
import pytest
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')
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):