[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD)
Date: Thursday, November 12, 2020 @ 16:54:52 Author: foutrelis Revision: 752077 upgpkg: python-xpybutil 0.0.6-3: Python 3.9 rebuild Modified: python-xpybutil/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2020-11-12 16:50:37 UTC (rev 752076) +++ PKGBUILD2020-11-12 16:54:52 UTC (rev 752077) @@ -2,7 +2,7 @@ pkgname=python-xpybutil pkgver=0.0.6 -pkgrel=2 +pkgrel=3 pkgdesc="An incomplete xcb-util port plus some extras" arch=('any') url="https://github.com/BurntSushi/xpybutil";
[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD)
Date: Monday, November 4, 2019 @ 03:23:43 Author: felixonmars Revision: 523057 Python 3.8 rebuild Modified: python-xpybutil/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2019-11-04 03:21:51 UTC (rev 523056) +++ PKGBUILD2019-11-04 03:23:43 UTC (rev 523057) @@ -2,7 +2,7 @@ pkgname=python-xpybutil pkgver=0.0.6 -pkgrel=1 +pkgrel=2 pkgdesc="An incomplete xcb-util port plus some extras" arch=('any') url="https://github.com/BurntSushi/xpybutil";
[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD)
Date: Monday, July 22, 2019 @ 02:52:31 Author: felixonmars Revision: 492535 upgpkg: python-xpybutil 0.0.6-1 Modified: python-xpybutil/trunk/PKGBUILD --+ PKGBUILD |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Modified: PKGBUILD === --- PKGBUILD2019-07-22 02:33:14 UTC (rev 492534) +++ PKGBUILD2019-07-22 02:52:31 UTC (rev 492535) @@ -1,8 +1,8 @@ # Maintainer: Felix Yan pkgname=python-xpybutil -pkgver=0.0.5 -pkgrel=3 +pkgver=0.0.6 +pkgrel=1 pkgdesc="An incomplete xcb-util port plus some extras" arch=('any') url="https://github.com/BurntSushi/xpybutil"; @@ -10,7 +10,7 @@ depends=('python-xcffib') makedepends=('python-setuptools') source=("$pkgname-$pkgver.tar.gz::https://github.com/BurntSushi/xpybutil/archive/$pkgver.tar.gz";) -sha512sums=('fdae21af40737715722e0650f436329358c475a6d2fee5b260b0655f71234e8c9639516927e78836ed54651780a6998593535680bda6e7feef38295f6f4a0442') +sha512sums=('494b1181e280613ce9f1d0ca1322a21048eacc534ec242809050f9720d429d4d490029c755d6f181e9f95a0e2f318963d794a55f81601f5ebe975618a4e9fd82') build() { cd xpybutil-$pkgver
[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD)
Date: Sunday, March 17, 2019 @ 10:49:42 Author: felixonmars Revision: 442352 upgpkg: python-xpybutil 0.0.5-3 remove python2 sibling Modified: python-xpybutil/trunk/PKGBUILD --+ PKGBUILD | 40 ++-- 1 file changed, 10 insertions(+), 30 deletions(-) Modified: PKGBUILD === --- PKGBUILD2019-03-17 10:47:28 UTC (rev 442351) +++ PKGBUILD2019-03-17 10:49:42 UTC (rev 442352) @@ -1,45 +1,25 @@ # Maintainer: Felix Yan -pkgbase=python-xpybutil -pkgname=(python-xpybutil python2-xpybutil) +pkgname=python-xpybutil pkgver=0.0.5 -pkgrel=2 +pkgrel=3 pkgdesc="An incomplete xcb-util port plus some extras" arch=('any') url="https://github.com/BurntSushi/xpybutil"; license=('custom:WTFPL') -makedepends=('python-setuptools' 'python2-setuptools' 'python-xcffib' 'python2-xcffib') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/BurntSushi/xpybutil/archive/$pkgver.tar.gz";) +depends=('python-xcffib') +makedepends=('python-setuptools') +source=("$pkgname-$pkgver.tar.gz::https://github.com/BurntSushi/xpybutil/archive/$pkgver.tar.gz";) sha512sums=('fdae21af40737715722e0650f436329358c475a6d2fee5b260b0655f71234e8c9639516927e78836ed54651780a6998593535680bda6e7feef38295f6f4a0442') -prepare() { - cp -a xpybutil-$pkgver{,-py2} -} - build() { - cd "$srcdir/xpybutil-$pkgver" + cd xpybutil-$pkgver python setup.py build - - cd "$srcdir/xpybutil-$pkgver-py2" - python2 setup.py build } -package_python-xpybutil() { - depends=('python-xcffib') - - cd "${srcdir}/xpybutil-$pkgver" - python setup.py install --root="${pkgdir}/" --optimize=1 - - install -Dm664 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +package() { + cd xpybutil-$pkgver + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm664 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING mv "$pkgdir/usr/share/doc/"{,python-}xpybutil } - -package_python2-xpybutil() { - depends=('python2-xcffib') - - cd "${srcdir}/xpybutil-$pkgver-py2" - python2 setup.py install --root="${pkgdir}/" --optimize=1 - - install -Dm664 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" - mv "$pkgdir/usr/share/doc/"{,python2-}xpybutil -}
[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD)
Date: Monday, July 23, 2018 @ 15:23:28 Author: foutrelis Revision: 363001 Python 3.7 rebuild Modified: python-xpybutil/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2018-07-23 15:23:24 UTC (rev 363000) +++ PKGBUILD2018-07-23 15:23:28 UTC (rev 363001) @@ -4,7 +4,7 @@ pkgbase=python-xpybutil pkgname=(python-xpybutil python2-xpybutil) pkgver=0.0.5 -pkgrel=1 +pkgrel=2 pkgdesc="An incomplete xcb-util port plus some extras" arch=('any') url="https://github.com/BurntSushi/xpybutil";
[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD)
Date: Thursday, May 10, 2018 @ 15:52:49 Author: felixonmars Revision: 320419 upgpkg: python-xpybutil 0.0.5-1 Modified: python-xpybutil/trunk/PKGBUILD --+ PKGBUILD | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) Modified: PKGBUILD === --- PKGBUILD2018-05-10 15:49:01 UTC (rev 320418) +++ PKGBUILD2018-05-10 15:52:49 UTC (rev 320419) @@ -3,20 +3,17 @@ pkgbase=python-xpybutil pkgname=(python-xpybutil python2-xpybutil) -pkgver=0.0.3 +pkgver=0.0.5 pkgrel=1 pkgdesc="An incomplete xcb-util port plus some extras" arch=('any') -url="https://github.com/fennerm/xpybutil"; +url="https://github.com/BurntSushi/xpybutil"; license=('custom:WTFPL') makedepends=('python-setuptools' 'python2-setuptools' 'python-xcffib' 'python2-xcffib') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/fennerm/xpybutil/archive/$pkgver.tar.gz"; - https://github.com/fennerm/xpybutil/commit/78ff923c022433c819c88c0159440306bd3ed4f5.patch) -sha512sums=('8eae9275fe5f3ce56bedb20c865ac84d971f59432dce48c8f55c76910e5e32e803890c04ebe076ae248b002fc1fc2fa6e0120260c8a57178bb4031b787eac398' - '49454bb4fa9e45de8ed288a7cf87de4eb507197db73fa65fc7b5ccfae60f508dfbc07b6bd737bae6ee6cb3a106334aa8b4e8a4dc23e0c796ab0e04b63b43a0f9') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/BurntSushi/xpybutil/archive/$pkgver.tar.gz";) +sha512sums=('fdae21af40737715722e0650f436329358c475a6d2fee5b260b0655f71234e8c9639516927e78836ed54651780a6998593535680bda6e7feef38295f6f4a0442') prepare() { - (cd xpybutil-$pkgver; patch -p1 -i ../78ff923c022433c819c88c0159440306bd3ed4f5.patch) cp -a xpybutil-$pkgver{,-py2} } @@ -34,7 +31,7 @@ cd "${srcdir}/xpybutil-$pkgver" python setup.py install --root="${pkgdir}/" --optimize=1 - install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm664 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" mv "$pkgdir/usr/share/doc/"{,python-}xpybutil } @@ -44,6 +41,6 @@ cd "${srcdir}/xpybutil-$pkgver-py2" python2 setup.py install --root="${pkgdir}/" --optimize=1 - install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm664 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" mv "$pkgdir/usr/share/doc/"{,python2-}xpybutil }
[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD)
Date: Saturday, April 28, 2018 @ 09:22:39 Author: felixonmars Revision: 318360 upgpkg: python-xpybutil 0.0.3-1 Modified: python-xpybutil/trunk/PKGBUILD --+ PKGBUILD | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) Modified: PKGBUILD === --- PKGBUILD2018-04-28 09:18:02 UTC (rev 318359) +++ PKGBUILD2018-04-28 09:22:39 UTC (rev 318360) @@ -3,26 +3,28 @@ pkgbase=python-xpybutil pkgname=(python-xpybutil python2-xpybutil) -pkgver=0.0.1.20151007 -_commit=570f225e09b0f0fb05cee27e6660c19b5d0ee6bb -pkgrel=2 +pkgver=0.0.3 +pkgrel=1 pkgdesc="An incomplete xcb-util port plus some extras" arch=('any') -url="https://github.com/BurntSushi/xpybutil"; +url="https://github.com/fennerm/xpybutil"; license=('custom:WTFPL') -makedepends=('git' 'python-xcffib' 'python2-xcffib') -source=("git+https://github.com/BurntSushi/xpybutil.git#commit=$_commit";) -md5sums=('SKIP') +makedepends=('python-setuptools' 'python2-setuptools' 'python-xcffib' 'python2-xcffib') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/fennerm/xpybutil/archive/$pkgver.tar.gz"; + https://github.com/fennerm/xpybutil/commit/78ff923c022433c819c88c0159440306bd3ed4f5.patch) +sha512sums=('8eae9275fe5f3ce56bedb20c865ac84d971f59432dce48c8f55c76910e5e32e803890c04ebe076ae248b002fc1fc2fa6e0120260c8a57178bb4031b787eac398' + '49454bb4fa9e45de8ed288a7cf87de4eb507197db73fa65fc7b5ccfae60f508dfbc07b6bd737bae6ee6cb3a106334aa8b4e8a4dc23e0c796ab0e04b63b43a0f9') prepare() { - cp -a xpybutil{,-py2} + (cd xpybutil-$pkgver; patch -p1 -i ../78ff923c022433c819c88c0159440306bd3ed4f5.patch) + cp -a xpybutil-$pkgver{,-py2} } build() { - cd "$srcdir/xpybutil" + cd "$srcdir/xpybutil-$pkgver" python setup.py build - cd "$srcdir/xpybutil-py2" + cd "$srcdir/xpybutil-$pkgver-py2" python2 setup.py build } @@ -29,10 +31,10 @@ package_python-xpybutil() { depends=('python-xcffib') - cd "${srcdir}/xpybutil" + cd "${srcdir}/xpybutil-$pkgver" python setup.py install --root="${pkgdir}/" --optimize=1 - install -Dm664 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" + install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" mv "$pkgdir/usr/share/doc/"{,python-}xpybutil } @@ -39,9 +41,9 @@ package_python2-xpybutil() { depends=('python2-xcffib') - cd "${srcdir}/xpybutil-py2" + cd "${srcdir}/xpybutil-$pkgver-py2" python2 setup.py install --root="${pkgdir}/" --optimize=1 - install -Dm664 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" + install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" mv "$pkgdir/usr/share/doc/"{,python2-}xpybutil }
[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD)
Date: Sunday, December 25, 2016 @ 16:42:32 Author: felixonmars Revision: 201936 Python 3.6 rebuild Modified: python-xpybutil/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2016-12-25 16:41:36 UTC (rev 201935) +++ PKGBUILD2016-12-25 16:42:32 UTC (rev 201936) @@ -5,7 +5,7 @@ pkgname=(python-xpybutil python2-xpybutil) pkgver=0.0.1.20151007 _commit=570f225e09b0f0fb05cee27e6660c19b5d0ee6bb -pkgrel=1 +pkgrel=2 pkgdesc="An incomplete xcb-util port plus some extras" arch=('any') url="https://github.com/BurntSushi/xpybutil";
[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD xcffib-compat.patch)
Date: Sunday, October 11, 2015 @ 04:30:06 Author: fyan Revision: 143612 upgpkg: python-xpybutil 0.0.1.20151007-1 Modified: python-xpybutil/trunk/PKGBUILD Deleted: python-xpybutil/trunk/xcffib-compat.patch -+ PKGBUILD| 40 - xcffib-compat.patch | 1334 -- 2 files changed, 25 insertions(+), 1349 deletions(-) The diff is longer than the limit of 200KB. Use svn diff -r 143611:143612 to see the changes.
[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD xcffib-compat.patch)
Date: Sunday, September 20, 2015 @ 10:31:39 Author: fyan Revision: 141210 upgpkg: python-xpybutil 0.0.1.20150328-2 update patch to handle exception gracefully Modified: python-xpybutil/trunk/PKGBUILD python-xpybutil/trunk/xcffib-compat.patch -+ PKGBUILD|4 +- xcffib-compat.patch | 96 +- 2 files changed, 67 insertions(+), 33 deletions(-) Modified: PKGBUILD === --- PKGBUILD2015-09-20 08:29:34 UTC (rev 141209) +++ PKGBUILD2015-09-20 08:31:39 UTC (rev 141210) @@ -5,7 +5,7 @@ pkgname=python2-xpybutil pkgver=0.0.1.20150328 _commit=8ee7dc406aabb3d54f38e692bf068b1b61131d83 -pkgrel=1 +pkgrel=2 pkgdesc="An incomplete xcb-util port plus some extras" arch=('any') url="https://github.com/BurntSushi/xpybutil"; @@ -14,7 +14,7 @@ source=("git+https://github.com/BurntSushi/xpybutil.git#commit=$_commit"; xcffib-compat.patch) md5sums=('SKIP' - '6623c64e52c5753d759ef3f4ff6a8a87') + 'b5bf6cac28a2546152229fcb77599dd5') prepare() { cd "$srcdir/xpybutil" Modified: xcffib-compat.patch === --- xcffib-compat.patch 2015-09-20 08:29:34 UTC (rev 141209) +++ xcffib-compat.patch 2015-09-20 08:31:39 UTC (rev 141210) @@ -1,8 +1,28 @@ -commit 78424375f3733394f84f8b4b6663f961402951ff -Author: Felix Yan -Date: Wed Sep 16 17:13:46 2015 +0800 +From 6e2b96ccb04212096f8faca772ed7dc5a2d20e43 Mon Sep 17 00:00:00 2001 +From: Felix Yan +Date: Wed, 16 Sep 2015 17:13:46 +0800 +Subject: [PATCH] Add support for xcffib -Add support for xcffib +--- + examples/window-marker.py | 6 +- + setup.py | 6 +- + xpybutil/__init__.py | 5 +- + xpybutil/compat.py| 17 + + xpybutil/event.py | 5 +- + xpybutil/ewmh.py | 176 +++--- + xpybutil/font.py | 6 +- + xpybutil/icccm.py | 54 +++--- + xpybutil/image.py | 6 +- + xpybutil/keybind.py | 2 +- + xpybutil/motif.py | 4 +- + xpybutil/mousebind.py | 2 +- + xpybutil/rect.py | 4 +- + xpybutil/render.py| 12 ++-- + xpybutil/util.py | 6 +- + xpybutil/window.py| 8 +-- + xpybutil/xinerama.py | 4 +- + 17 files changed, 170 insertions(+), 153 deletions(-) + create mode 100644 xpybutil/compat.py diff --git a/examples/window-marker.py b/examples/window-marker.py index e345656..01f3998 100644 @@ -60,26 +80,27 @@ setup( diff --git a/xpybutil/__init__.py b/xpybutil/__init__.py -index 8ec1eda..af58027 100644 +index 8ec1eda..a10886e 100644 --- a/xpybutil/__init__.py +++ b/xpybutil/__init__.py -@@ -1,4 +1,4 @@ +@@ -1,9 +1,8 @@ -import xcb, xcb.xproto -+from xpybutil.compat import xcb ++from xpybutil.compat import xcb, xcb_ConnectException try: conn = xcb.connect() -@@ -6,4 +6,3 @@ try: - except xcb.ConnectException: + root = conn.get_setup().roots[0].root +-except xcb.ConnectException: ++except xcb_ConnectException: conn = None root = None - diff --git a/xpybutil/compat.py b/xpybutil/compat.py new file mode 100644 -index 000..66efa58 +index 000..d06130e --- /dev/null +++ b/xpybutil/compat.py -@@ -0,0 +1,13 @@ +@@ -0,0 +1,17 @@ +try: +import xcffib as xcb +import xcffib.xproto as xproto @@ -86,6 +107,8 @@ +import xcffib.xinerama as xinerama +import xcffib.randr as randr +import xcffib.render as render ++from xcffib import XcffibException as xcb_Exception ++from xcffib import ConnectionException as xcb_ConnectException + +except ImportError: +import xcb @@ -93,25 +116,36 @@ +import xcb.xinerama as xinerama +import xcb.randr as randr +import xcb.render as render ++from xcb import Exception as xcb_Exception ++from xcb import ConnectException as xcb_ConnectException diff --git a/xpybutil/event.py b/xpybutil/event.py -index c161874..15f636e 100644 +index c161874..06b47db 100644 --- a/xpybutil/event.py +++ b/xpybutil/event.py -@@ -8,8 +8,7 @@ import struct +@@ -8,8 +8,7 @@ import sys import traceback -import xcb -import xcb.xproto as xproto -+from xpybutil.compat import xcb, xproto ++from xpybutil.compat import xcb_Exception, xproto from xpybutil import conn, root, util +@@ -150,7 +149,7 @@ def main(): + key = (e.__class__, w) + for cb in __callbacks.get(key, []): + cb(e) +-except xcb.Exception: ++except xcb_Exception: + traceback.print_exc() + sys.exit(1) + diff --git a/xpybutil/ewmh.py b/xpybutil/ewmh.py index a4f0977..c101555 100644 --- a/xpybutil/ewmh.py +++ b/xpybutil/ewmh.py -@@ -72,7 +72,7 @@ spec :-) +@@ -72,7 +72,7 @@ """ import struct @@ -818,7 +852,7 @@ index 8190620..68b448f 100644 --- a/xpybutil/font.py +++ b/xpybutil/font.py