| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Fallout from https://gitlab.gnome.org/GNOME/glib/-/commit/0ffe86a1f7e215e4561c3b9f1d03c3cd638ed00f
Our test suite runs with G_DEBUG=fatal-criticals and the last glib release
upgraded some warnings which we explicitely ignored or captured to criticals,
making the tests fail in various places.
Ignore those new criticals where needed.
|
| |
|
|\
| |
| |
| |
| | |
pygi-info: wrap g_struct_info_find_method() and g_struct_info_find_field()
See merge request GNOME/pygobject!104
|
| |
| |
| |
| | |
Because why not.
|
|/
|
|
|
| |
Aligment is useful when validating ABI against C.
It is already wrapped for structs, wrap it for unions as well.
|
|
|
|
|
| |
With newer Python3 one should use collections.abc and not collections
for ABC classes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
pytest will just import the files passed to it and try to run tests.
Since we need to run some setup code convert the tests directory to
a Python package and do the initialization in __init__.py. This makes
the init code (env vars, typelib search path, dbus) always run when
something from the package gets imported.
python3 setup.py build_tests # build pygobject and tests
py.test-3 tests/test_gi.py # run tests in test_gi.py only
|
|
|
|
|
|
|
|
| |
Set the versions in runtests.py instead of repeating it in every
test module.
Add a new TEST_GTK_VERSION env var which defaults to "3.0".
Allows to run tests with gtk4 using "make check TEST_GTK_VERSION=4.0"
|
|
|
|
|
|
|
|
| |
Since https://git.gnome.org/browse/pygobject/commit/?id=a731db5908b79b97277be4f5138b46010c2dd616
we build libregress even if cairo is missing.
Instead of skipping regress tests when cairo is missing only skip cairo relate
tests now.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Recursively import a modules dependencies when importing from
gi.repository.
This fixes the case where a library depends on initialization
code of dependency overrides. For example libwnck expects
gdk_init to be called before using its API and gdk_init
gets called in the Gdk overrrides.
https://bugzilla.gnome.org/show_bug.cgi?id=656314
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
g_irepository_require
Instead of tracking loaded dependencies ourself to hide warnings if they
were loaded by a previous import just look if the namespace was loaded
before the import. This (a) makes the implementation much simpler and
(b) also takes into account namespaces loaded outside of Python/PyGObject
using the libgirepository C API (as is common in applications using
libpeas with Python plugins)
This also introduces a new Python wrapper for g_irepository_is_registered()
to allow checking the loading state of namespaces before imports.
This fixes unnecessary require_version warnings in gedit, gnome-builder,
totem, rhythmbox etc.
https://bugzilla.gnome.org/show_bug.cgi?id=754491
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This silences glib warnings which are due to testing
of error handling, deprecation warnings which we ignore
since we want to continue testing deprecated code and
other error output of code which is supposed to fail.
To reduce code duplication and make things easier
this introduces a shared helper module containing
various context managers and decorators which allow
testing and silencing of warnings and errors.
https://bugzilla.gnome.org/show_bug.cgi?id=751156
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=745362
|
|
|
|
|
|
|
|
|
| |
gi tries to import the latest version of typelibs which can cause
existing code to break when a newer typelib is released.
Emit an ImportWarning when gi.require_version() is not used to give
developers this awareness so they can future proof their code.
https://bugzilla.gnome.org/show_bug.cgi?id=727379
|
|
|
|
|
|
|
|
|
| |
Bump GI required version to 1.39.0. This is needed to get rid of
expectedFailures which pass when built with 1.39.0 (unexpected successes
fail unittesting in Python 3.4).
Silence deprecation warning when using imp.reload.
https://bugzilla.gnome.org/show_bug.cgi?id=730411
|
|
|
|
| |
Add static binding for g_callable_info_can_throw_gerror.
|
|
|
|
|
|
| |
Update the static GI bindings for PyGICallbackInfo to derive
from PyGICallableInfo. This makes all the gi.CallableInfo methods
available to gi.CallbackInfo for use from Python.
|
|
|
|
|
|
| |
Add additional case for allowing the creation bare unions wrapped with
PyGIStruct. This is needed because PyGIStruct wraps both GIStruct and
GIUnion types.
|
|
|
|
|
|
|
|
|
| |
Move the C implementation of pytype hinting into pure Python. Now that
doc strings are lazily evaluated we can simplify this tedious bit of C
code with Python. This is precursory work for getting return types into
function doc strings.
https://bugzilla.gnome.org/show_bug.cgi?id=697356
|
|
|
|
|
|
| |
Expose all methods of GIBaseBase info and its sub-classes.
https://bugzilla.gnome.org/show_bug.cgi?id=709008
|
|
|
|
|
|
|
|
|
|
| |
Add new types for GIDirection, GITransfer, GIArrayType, GIScopeType,
GIVFuncInfoFlags, GIFieldInfoFlags, GIFuncitonInfoFlags, GITypeTag, and
GInfoType. These types are found in the gi._gi module exposed without the
"GI" prefix and contain all of their values as class attributes. e.g.
gi._gi.Transfer.EVERYTHING.
https://bugzilla.gnome.org/show_bug.cgi?id=709008
|
|
|
|
|
|
|
|
| |
Break PyGIBaseInfo rich compare into two methods: equal and richcompare.
Equal is a direct exposure of the GI method and richcompare makes use of
this with additional support for Pyton "==" and "!=" operators.
https://bugzilla.gnome.org/show_bug.cgi?id=709008
|
|
|
|
|
|
|
| |
Move flags and enum double registration tests into test_repository.py.
Remove duplicate ObjectInfo tests from test_gi.py.
https://bugzilla.gnome.org/show_bug.cgi?id=709008
|
|
Add basic unittests for the existing classes and methods exposed for
the GIRepository module (gi._gi).
https://bugzilla.gnome.org/show_bug.cgi?id=709008
|