14
0

Accepting request 652147 from devel:languages:python

- Make sure the tests are run

- Update to version 0.23 (changes since 0.19):
  * Fix unclosed file in Xauth implementation.
  * Fix support for Window.set_wm_transient_for.
  * Fix support for Drawable.put_image / Drawable.get_image.
  * Use Latin-1 for decoding strings in Python 3 (same as Python 2).
  * Fix Python 3 warnings about array.tostring() (deprecated).
  * When DISPLAY does not specify a protocol, and the implicit Unix
    socket connection fails, fallback to TCP (mimicking XCB's
    behaviour).
  * Fix Display.change_pointer_control implementation.
  * Fix Drawable.put_pil_image implementation.
  * Don't bundle a copy of texi2html to build the HTML
    documentation, but use the currently installed version instead.
  * Improve response processing performance: reduce the number of
    `socket.recv` calls needed to receive a full response.
- Remove python-xlib-0.14-increase-receiving-buffer.patch: no
  longer needed, see commit 1958a82.

OBS-URL: https://build.opensuse.org/request/show/652147
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-xlib?expand=0&rev=2
This commit is contained in:
2018-12-03 09:04:55 +00:00
committed by Git OBS Bridge
5 changed files with 43 additions and 44 deletions

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Tue Nov 27 11:21:53 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Make sure the tests are run
-------------------------------------------------------------------
Tue Nov 27 09:04:39 UTC 2018 - sor.alexei@meowr.ru
- Update to version 0.23 (changes since 0.19):
* Fix unclosed file in Xauth implementation.
* Fix support for Window.set_wm_transient_for.
* Fix support for Drawable.put_image / Drawable.get_image.
* Use Latin-1 for decoding strings in Python 3 (same as Python 2).
* Fix Python 3 warnings about array.tostring() (deprecated).
* When DISPLAY does not specify a protocol, and the implicit Unix
socket connection fails, fallback to TCP (mimicking XCB's
behaviour).
* Fix Display.change_pointer_control implementation.
* Fix Drawable.put_pil_image implementation.
* Don't bundle a copy of texi2html to build the HTML
documentation, but use the currently installed version instead.
* Improve response processing performance: reduce the number of
`socket.recv` calls needed to receive a full response.
- Remove python-xlib-0.14-increase-receiving-buffer.patch: no
longer needed, see commit 1958a82.
-------------------------------------------------------------------
Thu Aug 31 06:43:36 UTC 2017 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-xlib
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,34 +12,30 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
%define X_display ":98"
%define oldpython python
Name: python-python-xlib
Version: 0.19
Version: 0.23
Release: 0
Summary: Python X11 interface
License: LGPL-2.1+
License: LGPL-2.1-or-later
Group: Development/Libraries/Python
Url: https://github.com/python-xlib/python-xlib
URL: https://github.com/python-xlib/python-xlib
Source: https://files.pythonhosted.org/packages/source/p/python-xlib/python-xlib-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM python-xlib-0.14-increase-receiving-buffer.patch deb#357507
Patch0: python-xlib-0.14-increase-receiving-buffer.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: xorg-x11-server
%endif
BuildRequires: xvfb-run
Requires: python-six >= 1.10.0
BuildArch: noarch
%ifpython2
Provides: %{oldpython}-xlib = %{version}
Obsoletes: %{oldpython}-xlib < %{version}
@@ -48,8 +44,6 @@ Obsoletes: %{oldpython}-xlib < %{version}
Provides: python3-xlib = %{version}
Obsoletes: python3-xlib < %{version}
%endif
BuildArch: noarch
%python_subpackages
%description
@@ -58,29 +52,21 @@ library for Python programs.
%prep
%setup -q -n python-xlib-%{version}
%patch0 -p1
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
export DISPLAY=%{X_display}
Xvfb %{X_display} >& Xvfb.log &
trap "kill $! || true" EXIT
sleep 10
%python_exec runtests.py
%endif
%python_expand xvfb-run --server-args "-screen 0 1920x1080x24" $python runtests.py
%files %{python_files}
%defattr(-,root,root)
%doc LICENSE README.rst NEWS TODO
%license LICENSE
%doc CHANGELOG.md README.rst TODO
%{python_sitelib}/Xlib/
%{python_sitelib}/python_xlib-*py*.egg-info
%{python_sitelib}/python_xlib-*
%changelog

View File

@@ -1,13 +0,0 @@
Index: trunk/Xlib/protocol/display.py
===================================================================
--- trunk.orig/Xlib/protocol/display.py
+++ trunk/Xlib/protocol/display.py
@@ -590,7 +590,7 @@
# We're the recieving thread, parse the data
if recieving:
try:
- bytes_recv = self.socket.recv(2048)
+ bytes_recv = self.socket.recv(4096)
except socket.error as err:
self.close_internal('server: %s' % err[1])
raise self.socket_error

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:10ba17a7b2aea9f6a7fb0b87caa284383389cf867ba9d31619246577b8cc3408
size 188359

3
python-xlib-0.23.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c3deb8329038620d07b21be05673fa5a495dd8b04a2d9f4dca37a3811d192ae4
size 172744