Debian Patches

Status for python-xlib/0.33-6

Patch Description Author Forwarded Bugs Origin Last update
texi2html.patch Use makeinfo instead of texi2html
===================================================================
Andrej Shadura <andrew@shadura.me> not-needed 2026-09-17
0004-Use-context-manager-to-avoid-error-in-test.patch Use context manager to avoid error in test.
Use context manager in tests to avoid an error during the Build in
Debian.
Emmanuel Arias <eamanu@yaerobi.com> yes debian 2022-07-06
inherit-XError-in-error-classes-in-randr.patch randr: inherit XError in error classes
Commit c87624dd6 ('Add Randr error classes and register them during
init') introduces three new error classes to xrandr, but makes them
inherit from Exception.

Let all error classes in randr inherit from Xerror, like all other code
expects.

Fixes the traceback

```
...
File "/tmp/python-env/lib/python3.8/site-packages/Xlib/display.py", line 182, in sync
self.get_pointer_control()
File "/tmp/python-env/lib/python3.8/site-packages/Xlib/display.py", line 833, in get_pointer_control
return request.GetPointerControl(display = self.display)
File "/tmp/python-env/lib/python3.8/site-packages/Xlib/protocol/rq.py", line 1369, in __init__
self.reply()
File "/tmp/python-env/lib/python3.8/site-packages/Xlib/protocol/rq.py", line 1381, in reply
self._display.send_and_recv(request = self._serial)
File "/tmp/python-env/lib/python3.8/site-packages/Xlib/protocol/display.py", line 612, in send_and_recv
gotreq = self.parse_response(request)
File "/tmp/python-env/lib/python3.8/site-packages/Xlib/protocol/display.py", line 719, in parse_response
gotreq = self.parse_error_response(request) or gotreq
File "/tmp/python-env/lib/python3.8/site-packages/Xlib/protocol/display.py", line 745, in parse_error_response
req = self.get_waiting_request(e.sequence_number)
```

fixes #241
Frans Klaver <frans.klaver@vislink.com> yes debian upstream, https://github.com/python-xlib/python-xlib/commit/52800b1925c0e15a6d97487750db490f064376d8 2026-09-17
remove_six.patch Drop the six dependency python-xlib still used six for Python 2/3 compatibility. Python 2 is long
gone from Debian, so the compatibility shims are replaced with their Python 3
equivalents and the six build and runtime dependencies are dropped.
.
six.MAXSIZE is replaced with sys.maxsize (not sys.maxint, which is Python 2
only and raises AttributeError on Python 3).
Alexandre Detiste <tchet@debian.org> no 2026-09-17
remove_mock.patch Use unittest.mock instead of the standalone mock package The mock package has been part of the standard library as unittest.mock
since Python 3.3, so the external dependency is unnecessary.
Alexandre Detiste <tchet@debian.org> yes 2026-09-17
drop-pkg_resources.patch Do not use pkg_resources to check the setuptools version setup.py imported pkg_resources solely to assert that the running
setuptools is at least 30.3.0, the version that introduced declarative
metadata in setup.cfg. setuptools has since removed pkg_resources
entirely, so the import aborts the build before anything else runs.
.
The assertion is obsolete rather than merely misimplemented: the oldest
setuptools in any Debian suite is far newer than 30.3.0, so the guard can
only ever succeed. Drop it together with the import instead of porting it
to importlib.metadata.
.
Note that upstream PR #290 proposes an importlib port, but it compares
versions as strings ('100.0.0' >= '30.3.0' is False) and leaves the value
it computes unused, so it is not adopted here.
Dale Richards <dale@dalerichards.net> no debian upstream 2026-09-17

All known versions for source package 'python-xlib'

Links