pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/py-Xlib Update python-xlib to 0.25



details:   https://anonhg.NetBSD.org/pkgsrc/rev/328050ad0370
branches:  trunk
changeset: 337457:328050ad0370
user:      prlw1 <prlw1%pkgsrc.org@localhost>
date:      Mon Aug 05 12:26:15 2019 +0000

description:
Update python-xlib to 0.25

Take maintaintership

Version 0.25

Bug Fixes
     * fix increasing memory usage on display instantiation

NV-CONTROL extension

     * add first implementation by Roberto Leinardi (@leinardi)

     __________________________________________________________________

Version 0.24

Bug Fixes

     * fix protocol handling: correctly support explicit Unix connections
       and fix support fox macOS
     * improve Python 3 support: fix events sub-code handling and possible
       crashes when unpacking text data
     * add support for error handlers to the Composite extension

Misc

     * fix xfixes example
     * fix a bunch of typos in the code / documentation
     __________________________________________________________________

Version 0.23

Bug Fixes

     * fix strings decoding: use Latin-1
     __________________________________________________________________

Version 0.22

Bug Fixes

     * fix Display.change_pointer_control implementation
     * fix Drawable.put_pil_image implementation
     __________________________________________________________________

Version 0.21

Bug Fixes

     * fix use under Windows Subsystem for Linux: when DISPLAY does not
       specify a protocol, and the implicit Unix socket connection fails,
       fallback to TCP (mimicking XCB's behavior).

Misc

     * don't bundle a copy of texi2html to build the HTML documentation,
       but use the currently installed version instead.
     __________________________________________________________________

Version 0.20

Bug Fixes

     * fix unclosed file in Xauth implementation
     * fix support for Window.set_wm_transient_for
     * fix support for Drawable.put_image / Drawable.get_image
     * use ASCII for decoding strings in Python 3 (same as Python 2)
     * fix Python 3 warnings about array.tostring() (deprecated)

Misc

   Improve response processing performance: reduce the number of
   socket.recv calls needed to receive a full response.
     __________________________________________________________________

Version 0.19

Bug Fixes

     * don't throw an exception if $XAUTHFILE / ~/.Xauthority is missing
     * fix authentication work-around for SSH forwarding under Python 3
     * improve $DISPLAY handling: support optional protocol prefix, and
       correctly handle unix:0.0 as :0.0
     __________________________________________________________________

Version 0.18

Bug Fixes

     * fix Python 3 buffer abstraction
     * fix interrupted select handling for Python 3.3/3.4
     * fix Unix socket support when only an abstract address is available
     __________________________________________________________________

Version 0.17

Bug Fixes

     * fix Xauth handling when using Python 2 and DISPLAY contains a
       remote IP
     * fix String16 request field handling when using Python 3
     * fix RECORD extension and example when using Python 3
     * fix handling of properties: use byte strings for all X11 8-bits
       strings, as not all of them are text properties (the window
       getters/setters for wm_name, wm_icon_name, wm_class, and
       wm_client_machine still return/expect Unicode strings)

API Changes

   Core:
     * new window getter/setter for text properties:
       get_full_text_property and change_text_property; with automatic
       conversion to/from Unicode when the property type encoding is
       supported (STRING and UTF8_STRING)

   Composite extension:
     * support for GetOverlayWindow request
     __________________________________________________________________

Version 0.16
Licensing

   The project is now licensed under the GNU Lesser General Public License
   v2.1 or later (see the LICENSE file for details).

Compatibility

   Support for Python versions older than 2.7 has been dropped. Support
   for Python 3 (3.3, 3.4 and 3.5) has been added. Note that Python-Xlib
   now depends on the six package (>=1.10) for combined Python 2 / 3
   support.

API Changes

   With the change of license, and no way to contact the original author
   of the SHAPE extension, the code had to be rewritten from scratch. This
   resulted in a few minor API changes (see examples/shapewin.py).

   Partial support for the SECURITY. XInput, and XFIXES extensions has
   been added.

Bug Fixes

     * fix RECORD extension
     * fixed OS X socket path
     * fix handling of generic events
     * fix handling of KeymapNotify events
     * several fixes for the RandR extension
     __________________________________________________________________

Version 0.15rc1 - 14 Nov 2009

   Improved support for newer versions of Mac OS X, a couple of new
   extensions, and several bugfixes.

Composite extension

   Support for the composite extension, used to implement a composition
   manager (added for plcm work in plwm).

   By itself this extension is not very useful, it is intended to be used
   together with the DAMAGE and XFIXES extensions. Typically you would
   also need RENDER or glX or some similar method of creating fancy
   graphics.

XF86 special function keysyms

   Keysym definitions for special function keys found on modern keyboards,
   e.g. raise and lower volume, start specific applications, etc. Have a
   look in Xlib/keysymdef/xf86.py to see what there are and experiment
   with xev to see what your keyboard generates. These definitions aren't
   brought in by default, so you must do this after importing Xlib.XK:
Xlib.XK.load_keysym_group('xf86')

RANDR extension

   The RANDR extension complements XINERAMA as a way of getting data about
   the physical screens making up a virtual screen in X. An example of
   usage can be found in examples/xrandr.py.

diffstat:

 x11/py-Xlib/Makefile                                    |  24 +++++++----
 x11/py-Xlib/PLIST                                       |  32 +++++++++++++++-
 x11/py-Xlib/distinfo                                    |  20 ++-------
 x11/py-Xlib/patches/patch-Xlib_____init____.py          |  21 ----------
 x11/py-Xlib/patches/patch-Xlib_protocol_display.py      |  34 -----------------
 x11/py-Xlib/patches/patch-Xlib_protocol_rq.py           |  34 -----------------
 x11/py-Xlib/patches/patch-Xlib_rdb.py                   |  22 -----------
 x11/py-Xlib/patches/patch-Xlib_support_unix__connect.py |  16 --------
 x11/py-Xlib/patches/patch-Xlib_support_vms__connect.py  |  16 --------
 x11/py-Xlib/patches/patch-Xlib_xauth.py                 |  32 ----------------
 x11/py-Xlib/patches/patch-Xlib_xobject_cursor.py        |  20 ----------
 x11/py-Xlib/patches/patch-Xlib_xobject_drawable.py      |  29 --------------
 x11/py-Xlib/patches/patch-Xlib_xobject_fontable.py      |  19 ---------
 13 files changed, 50 insertions(+), 269 deletions(-)

diffs (truncated from 409 to 300 lines):

diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/Makefile
--- a/x11/py-Xlib/Makefile      Mon Aug 05 11:49:24 2019 +0000
+++ b/x11/py-Xlib/Makefile      Mon Aug 05 12:26:15 2019 +0000
@@ -1,16 +1,22 @@
-# $NetBSD: Makefile,v 1.11 2014/01/25 10:30:31 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2019/08/05 12:26:15 prlw1 Exp $
 
-DISTNAME=      python-xlib-0.14
-PKGNAME=       ${PYPKGPREFIX}-Xlib-0.14
+DISTNAME=      python-xlib-0.25
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/python-x/X/}
 CATEGORIES=    x11
-MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=python-xlib/}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=python-xlib/}
+GITHUB_PROJECT=        python-xlib
+GITHUB_RELEASE=        ${PKGVERSION_NOREV}
+EXTRACT_SUFX=  .tar.bz2
 
-MAINTAINER=    ccatrian%eml.cc@localhost
-HOMEPAGE=      http://python-xlib.sourceforge.net/
-COMMENT=       Functional X client library for Python
-LICENSE=       gnu-gpl-v2
+MAINTAINER=    prlw1%cam.ac.uk@localhost
+HOMEPAGE=      https://github.com/python-xlib/python-xlib/
+COMMENT=       XLib in pure Python
+LICENSE=       gnu-lgpl-v2.1
 
-EGG_NAME=      python_xlib-0.12
+USE_LANGUAGES= # none
+
+post-extract:
+       ${CHMOD} 644 ${WRKSRC}/python_xlib.egg-info/*
 
 .include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/PLIST
--- a/x11/py-Xlib/PLIST Mon Aug 05 11:49:24 2019 +0000
+++ b/x11/py-Xlib/PLIST Mon Aug 05 12:26:15 2019 +0000
@@ -1,4 +1,9 @@
-@comment $NetBSD: PLIST,v 1.4 2012/04/08 20:22:01 wiz Exp $
+@comment $NetBSD: PLIST,v 1.5 2019/08/05 12:26:15 prlw1 Exp $
+${PYSITELIB}/${EGG_FILE}/PKG-INFO
+${PYSITELIB}/${EGG_FILE}/SOURCES.txt
+${PYSITELIB}/${EGG_FILE}/dependency_links.txt
+${PYSITELIB}/${EGG_FILE}/requires.txt
+${PYSITELIB}/${EGG_FILE}/top_level.txt
 ${PYSITELIB}/Xlib/X.py
 ${PYSITELIB}/Xlib/X.pyc
 ${PYSITELIB}/Xlib/X.pyo
@@ -26,15 +31,36 @@
 ${PYSITELIB}/Xlib/ext/__init__.py
 ${PYSITELIB}/Xlib/ext/__init__.pyc
 ${PYSITELIB}/Xlib/ext/__init__.pyo
+${PYSITELIB}/Xlib/ext/composite.py
+${PYSITELIB}/Xlib/ext/composite.pyc
+${PYSITELIB}/Xlib/ext/composite.pyo
+${PYSITELIB}/Xlib/ext/ge.py
+${PYSITELIB}/Xlib/ext/ge.pyc
+${PYSITELIB}/Xlib/ext/ge.pyo
+${PYSITELIB}/Xlib/ext/nvcontrol.py
+${PYSITELIB}/Xlib/ext/nvcontrol.pyc
+${PYSITELIB}/Xlib/ext/nvcontrol.pyo
+${PYSITELIB}/Xlib/ext/randr.py
+${PYSITELIB}/Xlib/ext/randr.pyc
+${PYSITELIB}/Xlib/ext/randr.pyo
 ${PYSITELIB}/Xlib/ext/record.py
 ${PYSITELIB}/Xlib/ext/record.pyc
 ${PYSITELIB}/Xlib/ext/record.pyo
+${PYSITELIB}/Xlib/ext/security.py
+${PYSITELIB}/Xlib/ext/security.pyc
+${PYSITELIB}/Xlib/ext/security.pyo
 ${PYSITELIB}/Xlib/ext/shape.py
 ${PYSITELIB}/Xlib/ext/shape.pyc
 ${PYSITELIB}/Xlib/ext/shape.pyo
+${PYSITELIB}/Xlib/ext/xfixes.py
+${PYSITELIB}/Xlib/ext/xfixes.pyc
+${PYSITELIB}/Xlib/ext/xfixes.pyo
 ${PYSITELIB}/Xlib/ext/xinerama.py
 ${PYSITELIB}/Xlib/ext/xinerama.pyc
 ${PYSITELIB}/Xlib/ext/xinerama.pyo
+${PYSITELIB}/Xlib/ext/xinput.py
+${PYSITELIB}/Xlib/ext/xinput.pyc
+${PYSITELIB}/Xlib/ext/xinput.pyo
 ${PYSITELIB}/Xlib/ext/xtest.py
 ${PYSITELIB}/Xlib/ext/xtest.pyc
 ${PYSITELIB}/Xlib/ext/xtest.pyo
@@ -89,6 +115,9 @@
 ${PYSITELIB}/Xlib/keysymdef/thai.py
 ${PYSITELIB}/Xlib/keysymdef/thai.pyc
 ${PYSITELIB}/Xlib/keysymdef/thai.pyo
+${PYSITELIB}/Xlib/keysymdef/xf86.py
+${PYSITELIB}/Xlib/keysymdef/xf86.pyc
+${PYSITELIB}/Xlib/keysymdef/xf86.pyo
 ${PYSITELIB}/Xlib/keysymdef/xk3270.py
 ${PYSITELIB}/Xlib/keysymdef/xk3270.pyc
 ${PYSITELIB}/Xlib/keysymdef/xk3270.pyo
@@ -158,4 +187,3 @@
 ${PYSITELIB}/Xlib/xobject/resource.py
 ${PYSITELIB}/Xlib/xobject/resource.pyc
 ${PYSITELIB}/Xlib/xobject/resource.pyo
-${PYSITELIB}/${EGG_FILE}
diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/distinfo
--- a/x11/py-Xlib/distinfo      Mon Aug 05 11:49:24 2019 +0000
+++ b/x11/py-Xlib/distinfo      Mon Aug 05 12:26:15 2019 +0000
@@ -1,16 +1,6 @@
-$NetBSD: distinfo,v 1.7 2015/11/04 03:28:51 agc Exp $
+$NetBSD: distinfo,v 1.8 2019/08/05 12:26:15 prlw1 Exp $
 
-SHA1 (python-xlib-0.14.tar.gz) = e25e3c1284e768d3f84eaebbea4ed3e647c2a05b
-RMD160 (python-xlib-0.14.tar.gz) = be5610035fb1aee36a55e3e276582e3e31ba1cfc
-SHA512 (python-xlib-0.14.tar.gz) = 37d237a9924284c9917a4a7ede2f6cc3f57baec73db229f45b296e923bc69493322cf288b8638a8594afa68e7359994b12a1bfad2fb9421e2a42084622e064ae
-Size (python-xlib-0.14.tar.gz) = 200223 bytes
-SHA1 (patch-Xlib_____init____.py) = 201d4855b03534204723d88522d6af3529e5bd6c
-SHA1 (patch-Xlib_protocol_display.py) = e6943531a5e2ae1164e5faab2824f8e90b3d2493
-SHA1 (patch-Xlib_protocol_rq.py) = 08909f1bf14bc76f61ac186ba980ab44bc8ed3f8
-SHA1 (patch-Xlib_rdb.py) = 34e5be7f62577b4eb887288eea4be9a509be9414
-SHA1 (patch-Xlib_support_unix__connect.py) = 529d31935bf0aee30a628c1b80c6bee6874888d3
-SHA1 (patch-Xlib_support_vms__connect.py) = 8acb059239059f2b943fdc2a20231c7d9f79bb1d
-SHA1 (patch-Xlib_xauth.py) = 6e7444789a17f5e4264ba8a70f1c2ff1bb812850
-SHA1 (patch-Xlib_xobject_cursor.py) = c45c11b4cd5589cdd88c14c8f3029f93fc0bc18f
-SHA1 (patch-Xlib_xobject_drawable.py) = 590206bf0d83fa639a871d303c6bf9845ee9bf7f
-SHA1 (patch-Xlib_xobject_fontable.py) = 3a6cb416d9a81932657e2bd7db2fc6430d54d766
+SHA1 (python-xlib-0.25.tar.bz2) = 5f51029348fac5d8cebefa7da9dfb53fb14bdb33
+RMD160 (python-xlib-0.25.tar.bz2) = fa5e7efdaddcf90e0b887a5b4d26671866350212
+SHA512 (python-xlib-0.25.tar.bz2) = 616020b740ec80c1c33e1b2934674c14b6c4c9eef5d217b4b89b0316d0bf2d90e604f22269fd7b24882f27f010ff39ec530c262897fcd6b481451002956e38ce
+Size (python-xlib-0.25.tar.bz2) = 204578 bytes
diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/patches/patch-Xlib_____init____.py
--- a/x11/py-Xlib/patches/patch-Xlib_____init____.py    Mon Aug 05 11:49:24 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-$NetBSD: patch-Xlib_____init____.py,v 1.1 2011/08/22 11:57:14 wiz Exp $
-
-Get rid of "import string". From upstream SVN 123.
-
---- Xlib/__init__.py.orig      2007-06-10 14:11:58.000000000 +0000
-+++ Xlib/__init__.py
-@@ -18,13 +18,11 @@
- #    along with this program; if not, write to the Free Software
- #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- 
--import string
--
- __version__ = (0, 12)
- 
- __version_extra__ = ''
- 
--__version_string__ = string.join(map(str, __version__), '.') + __version_extra__
-+__version_string__ = '.'.join(map(str, __version__)) + __version_extra__
- 
- __all__ = [
-     'X',
diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/patches/patch-Xlib_protocol_display.py
--- a/x11/py-Xlib/patches/patch-Xlib_protocol_display.py        Mon Aug 05 11:49:24 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$NetBSD: patch-Xlib_protocol_display.py,v 1.2 2011/09/06 20:45:05 wiz Exp $
-
-Python-3.1 compatibility.
-https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350
-
---- Xlib/protocol/display.py.orig      2007-06-10 14:11:58.000000000 +0000
-+++ Xlib/protocol/display.py
-@@ -504,7 +504,7 @@ class Display:
- 
-             # Ignore errors caused by a signal recieved while blocking.
-             # All other errors are re-raised.
--            except select.error, err:
-+            except select.error as err:
-                 if err[0] != errno.EINTR:
-                     raise err
- 
-@@ -519,7 +519,7 @@ class Display:
-             if ws:
-                 try:
-                     i = self.socket.send(self.data_send)
--                except socket.error, err:
-+                except socket.error as err:
-                     self.close_internal('server: %s' % err[1])
-                     raise self.socket_error
- 
-@@ -535,7 +535,7 @@ class Display:
-                 if recieving:
-                     try:
-                         bytes_recv = self.socket.recv(2048)
--                    except socket.error, err:
-+                    except socket.error as err:
-                         self.close_internal('server: %s' % err[1])
-                         raise self.socket_error
- 
diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/patches/patch-Xlib_protocol_rq.py
--- a/x11/py-Xlib/patches/patch-Xlib_protocol_rq.py     Mon Aug 05 11:49:24 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$NetBSD: patch-Xlib_protocol_rq.py,v 1.2 2011/09/06 20:45:05 wiz Exp $
-
-Python-3.1 compatibility.
-https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350
-
---- Xlib/protocol/rq.py.orig   2007-06-10 14:11:58.000000000 +0000
-+++ Xlib/protocol/rq.py
-@@ -1090,7 +1090,7 @@ class Struct:
-         # memory leak isn't that serious.  Besides, Python 2.0 has
-         # real garbage collect.
- 
--        exec code
-+        exec(code)
-         self.to_binary = new.instancemethod(to_binary, self, self.__class__)
- 
-         # Finally call it manually
-@@ -1175,7 +1175,7 @@ class Struct:
- 
-         # Finally, compile function as for to_binary.
- 
--        exec code
-+        exec(code)
-         self.parse_value = new.instancemethod(parse_value, self, self.__class__)
- 
-         # Call it manually
-@@ -1275,7 +1275,7 @@ class Struct:
- 
-         # Finally, compile function as for to_binary.
- 
--        exec code
-+        exec(code)
-         self.parse_binary = new.instancemethod(parse_binary, self, self.__class__)
- 
-         # Call it manually
diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/patches/patch-Xlib_rdb.py
--- a/x11/py-Xlib/patches/patch-Xlib_rdb.py     Mon Aug 05 11:49:24 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-Xlib_rdb.py,v 1.2 2011/09/06 20:45:05 wiz Exp $
-
-Python-3.1 compatibility.
-https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350
-
---- Xlib/rdb.py.orig   2007-06-10 14:11:58.000000000 +0000
-+++ Xlib/rdb.py
-@@ -191,12 +191,13 @@ class ResourceDB:
- 
-         self.lock.release()
- 
--    def __getitem__(self, (name, cls)):
-+    def __getitem__(self, nc):
-         """db[name, class]
- 
-         Return the value matching the resource identified by NAME and
-         CLASS.  If no match is found, KeyError is raised.
-         """
-+        name, cls = nc
- 
-         # Split name and class into their parts
- 
diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/patches/patch-Xlib_support_unix__connect.py
--- a/x11/py-Xlib/patches/patch-Xlib_support_unix__connect.py   Mon Aug 05 11:49:24 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-Xlib_support_unix__connect.py,v 1.2 2011/09/06 20:45:05 wiz Exp $
-
-Python-3.1 compatibility.
-https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350
-
---- Xlib/support/unix_connect.py.orig  2007-06-10 14:11:58.000000000 +0000
-+++ Xlib/support/unix_connect.py
-@@ -75,7 +75,7 @@ def get_socket(dname, host, dno):
-         else:
-             s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
-             s.connect('/tmp/.X11-unix/X%d' % dno)
--    except socket.error, val:
-+    except socket.error as val:
-         raise error.DisplayConnectionError(dname, str(val))
- 
-     # Make sure that the connection isn't inherited in child processes
diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/patches/patch-Xlib_support_vms__connect.py
--- a/x11/py-Xlib/patches/patch-Xlib_support_vms__connect.py    Mon Aug 05 11:49:24 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-Xlib_support_vms__connect.py,v 1.2 2011/09/06 20:45:05 wiz Exp $
-
-Python-3.1 compatibility.
-https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350
-
---- Xlib/support/vms_connect.py.orig   2007-06-10 14:11:58.000000000 +0000
-+++ Xlib/support/vms_connect.py
-@@ -62,7 +62,7 @@ def get_socket(dname, host, dno):
-         s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-         s.connect((host, 6000 + dno))
- 
--    except socket.error, val:
-+    except socket.error as val:
-         raise error.DisplayConnectionError(dname, str(val))
- 
-     return s
diff -r 86cccaedffce -r 328050ad0370 x11/py-Xlib/patches/patch-Xlib_xauth.py
--- a/x11/py-Xlib/patches/patch-Xlib_xauth.py   Mon Aug 05 11:49:24 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-Xlib_xauth.py,v 1.2 2011/09/06 20:45:05 wiz Exp $
-
-Python-3.1 compatibility.



Home | Main Index | Thread Index | Old Index