summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 1.1.0dbus-python-1.1.0Simon McVittie2012-05-093-2/+38
|
* Make AM_CHECK_PYTHON_HEADERS compatible with Python 3 in the absence of ↵Simon McVittie2012-05-021-2/+2
| | | | python3-config
* Deprecate dbus.gobject_service and make it vaguely compatible with 1.0Simon McVittie2012-05-021-1/+15
| | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
* Reinstate the old dbus.gobject_service, but only for Python 2Simon McVittie2012-05-023-0/+82
| | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
* Rename gobject_service (PyGI version) to gi_serviceSimon McVittie2012-05-023-12/+12
| | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
* Fix ref leak in dbus_py_variant_level_setSimon McVittie2012-03-121-0/+2
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=47108 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Put sockets for the regression tests in /tmp, not ${builddir}Simon McVittie2012-02-291-1/+1
| | | | | | | | | Some automated build systems (naming no Portage) have really long build directories, which can cause dbus-python to hit the length limit for Unix sockets' names. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46747 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Use DBusBasicValue instead of reinventing it, if dbus is new enoughSimon McVittie2012-02-245-66/+104
| | | | | If we don't find it, continue to reinvent it, but move the reinvention to an internal header so it's at least the same in both files that want it.
* Fix _maintainer-update-htmldocs for out-of-tree buildsSimon McVittie2012-02-011-1/+1
|
* Remove TODO, which is now empty - use bugzilla insteadSimon McVittie2012-02-012-1/+1
|
* back to unreleasedSimon McVittie2012-01-241-1/+1
|
* retroactively add release dateSimon McVittie2012-01-241-1/+1
|
* Install _compat.pydbus-python-1.0.0Barry Warsaw2012-01-241-0/+1
|
* Generate ChangeLog correctly when out-of-treeSimon McVittie2012-01-241-2/+2
|
* Let's call this 1.0Simon McVittie2012-01-242-5/+7
|
* Remove duplicate -Werror machinerySimon McVittie2012-01-241-8/+0
|
* Move PY3PORT into doc, use the same extension as other rst, and render itSimon McVittie2012-01-244-5/+16
|
* Describe problems, alternativesSimon McVittie2012-01-241-0/+24
|
* Deprecate dbus.glib (use dbus.mainloop.glib or dbus.mainloop.qt4)Simon McVittie2012-01-241-0/+10
|
* Add INTORLONG_CHECK macro so we don't have to conditionalize PyInt_CheckSimon McVittie2012-01-115-21/+11
|
* Use native 'int' (whatever that means) for variant_level etc.Simon McVittie2012-01-118-16/+17
| | | | | This reverts the Python 2 API to be in terms of PyInt, leaving the Python 3 API in terms of PyLong (which is called 'int' in Python code).
* update NEWS, PY3PORT.rstSimon McVittie2012-01-112-8/+21
|
* Test behaviour of various Message methodsSimon McVittie2012-01-111-0/+54
|
* Do not allow Byte(unicode(x)) (i.e. Byte(str(x)) in Python 3)Simon McVittie2012-01-114-36/+46
| | | | | Unicode strings aren't bytestrings, so there's no obvious meaning for the byte value of a Unicode string of length 1.
* Use better names for the superclasses of Byte and ByteArraySimon McVittie2012-01-111-9/+9
| | | | | | | | Strictly speaking, DBUS_FOO is libdbus' namespace, not ours. Use DBUS_PY_FOO. DBUS_BYTES_BASE was misleading: it's the base class for a single byte, so call it DBUS_PY_BYTE_BASE.
* Consistently use the str type for identifier-like (ASCII) stringsSimon McVittie2012-01-115-20/+12
| | | | | | | | | | | | | | | | | Porting to Python 3 left these methods returning unicode, which is arguably an API break in Python 2: * Message.get_member * Message.get_path_decomposed (array of unicode) * Message.get_sender * Message.get_destination * Message.get_interface * Message.get_error_name * Server.get_address * Server.get_id Instead, make them return whatever the natural str type is (bytes in Python 2, unicode in Python 3).
* DBusPythonString base class: use "native str" as base class instead of ↵Simon McVittie2012-01-112-11/+7
| | | | reinventing it
* SignalMessage.__repr__: include the destination and abbreviate "interface" ↵Simon McVittie2012-01-111-2/+5
| | | | | | more conventionally Yes, signals can have a destination. The default is to broadcast.
* Quash a few more deprecations.Barry Warsaw2011-12-172-6/+6
|
* More Python 3 porting, this time primarily to get test-client.py working.Barry Warsaw2011-12-165-157/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes include: - DBusException.get_dbus_message(): In Python 3, the str of the exception will already be a unicode, so don't try to decode it unless it's a bytes object (a.k.a. 8-bit str in Python 2). - gobject_service.py: Switch to pygi and rewrite the metaclass instantiation code to be portable between Python 2 and Python 3. - run-test.sh: echo a few more useful environment variables - test-client.py: - Globally replace deprecated assertEquals with assertEqual - Globally replace deprecated assert_ with assertTrue - Use bytes objects for both 'ay' signatured methods on the server - AcceptUnicodeString will return a native unicode, i.e. a str in Python 3 and a unicode in Python 2. Python 3 has no `unicode` built-in. - Reformat some long lines for debugging. - test-service.py: - Open the log file in 'a' mode for easier tailing. - AcceptUnicodeString will return a native unicode, i.e. a str in Python 3 and a unicode in Python 2. Python 3 has no `unicode` built-in. - reformat some long lines for debugging. - Put module-scope code into a main() function and add a bunch of logger output for better debugging. `session_bus` must still be global though. Wrap main() in a bit try/except to log all top-level exceptions.
* Re-enable the other tests, even though these still fail for me (b.f.o #43303).Barry Warsaw2011-12-162-9/+9
| | | | Fix another except syntax problem.
* Re-enable previously disabled test.Barry Warsaw2011-12-151-1/+2
|
* Fix the match rule semantics so that a match rule of "arg0='/'" does not matchBarry Warsaw2011-12-152-9/+28
| | | | object paths in Python3, as per Simon's review comments.
* Consistency; clean-up.Barry Warsaw2011-12-152-8/+8
|
* - Added back the missing PY3PORT.rst file, with updates.Barry Warsaw2011-12-156-29/+249
| | | | | | | - Disallow appending unicode objects with 'y' (bytes) signatures. This now requires either a bytes object or an integer. Update the tests to reflect - this change. - Fix broken __all__ in Python 3.
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-1542-462/+1333
|
* First round of PyInt -> PyLong changes. These are only compatible with PythonBarry Warsaw2011-12-1414-76/+166
| | | | | | | 2, since there are still some unconditional PyInt calls, which are not valid in Python 3. However, it lays the framework for conditionalizing on Python 3 and using only PyLong in that case. Where it doesn't matter, PyLong is used unconditionally.
* Add error checking to dbus_py_variant_level_get() and call sites.Barry Warsaw2011-12-143-3/+27
|
* In preparation for Python 3 support, use the Python 2 PyBytes aliases for theBarry Warsaw2011-12-1412-115/+129
| | | | | PyString API. This makes the code compilable in Python 2.x (x >= 6) and Python 3.
* In preparation for Python 3 support, all reprs now return unicodes, which isBarry Warsaw2011-12-145-67/+92
| | | | | legal in Python 2 also. Use fancy REPR macro and the %V format code for cross-Python compatibility.
* Modernize multiline imports in preparation for Python 3 support.Barry Warsaw2011-12-138-74/+57
|
* Modernize `raise` syntax in preparation of Python 3 support.Barry Warsaw2011-12-131-4/+4
|
* Import threading instead of thread. The latter is gone in Python 3.Barry Warsaw2011-12-133-15/+4
|
* Fix an inconsequential typo.Barry Warsaw2011-12-131-1/+1
|
* For pendantic correctness, and future Python 3 compatibility, explicitlyBarry Warsaw2011-12-132-0/+2
| | | | initialize the weaklist slots.
* Don't leak the fast_seq object.Barry Warsaw2011-12-131-1/+4
|
* - Add a few missing Py_TYPE() changes for Python 3 compatibility.Barry Warsaw2011-12-133-6/+6
| | | | - De-tabbify a few instances that "make check" complains about.
* Additional PyObject_HEAD_INIT -> PyVarObject_HEAD_INIT changes in preparationBarry Warsaw2011-12-136-26/+13
| | | | for Python 3 support.
* Fix rst2html build failure in non-unicode localesAlexandre Rostovtsev2011-12-132-0/+3
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=43735 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Update NEWSSimon McVittie2011-12-131-0/+9
|