[arch-commits] Commit in python-pyperclip/repos/community-any (4 files)

Felix Yan fyan at archlinux.org
Tue Oct 13 10:24:13 UTC 2015


    Date: Tuesday, October 13, 2015 @ 12:24:12
  Author: fyan
Revision: 143901

archrelease: copy trunk to community-any

Added:
  python-pyperclip/repos/community-any/PKGBUILD
    (from rev 143900, python-pyperclip/trunk/PKGBUILD)
  python-pyperclip/repos/community-any/fix-test_copyUnicode.patch
    (from rev 143900, python-pyperclip/trunk/fix-test_copyUnicode.patch)
Deleted:
  python-pyperclip/repos/community-any/PKGBUILD
  python-pyperclip/repos/community-any/fix-test_copyUnicode.patch

----------------------------+
 PKGBUILD                   |  104 +++++++++++++++++++++----------------------
 fix-test_copyUnicode.patch |   74 +++++++++++++++---------------
 2 files changed, 89 insertions(+), 89 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-10-13 10:23:51 UTC (rev 143900)
+++ PKGBUILD	2015-10-13 10:24:12 UTC (rev 143901)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Jim Bridgewater <jwbwater at gmail dot com>
-# Contributor: delta48 <dark.magician.48[at]gmail[dot]com> 
-
-pkgbase=python-pyperclip
-pkgname=('python-pyperclip' 'python2-pyperclip')
-_pypiname=pyperclip
-pkgver=1.5.14
-_commit=43a8668987165f82d95c95ed57adf7c59f94a92c
-pkgrel=1
-pkgdesc="A cross-platform clipboard module for Python"
-arch=('any')
-url="https://github.com/asweigart/pyperclip"
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'xclip' 'git')
-checkdepends=('xorg-server-xvfb')
-source=("git+https://github.com/asweigart/pyperclip.git#commit=$_commit"
-        fix-test_copyUnicode.patch)
-md5sums=('SKIP'
-         '473ee868530cc1d6e579f9df63085588')
-
-prepare() {
-  (cd $_pypiname; git apply ../fix-test_copyUnicode.patch)
-  cp -a $_pypiname{,-py2}
-}
-
-check() {
-  cd "$srcdir/$_pypiname"
-  xvfb-run python tests/basicTests.py
-
-  cd "$srcdir/$_pypiname-py2"
-  xvfb-run python2 tests/basicTests.py
-}
-
-package_python-pyperclip() {
-  depends=('python' 'xclip')
-
-  cd "$srcdir/$_pypiname"
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
-}
-
-package_python2-pyperclip() {
-  depends=('python2' 'xclip')
-
-  cd "$srcdir/$_pypiname-py2"
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pyperclip/repos/community-any/PKGBUILD (from rev 143900, python-pyperclip/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-10-13 10:24:12 UTC (rev 143901)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jim Bridgewater <jwbwater at gmail dot com>
+# Contributor: delta48 <dark.magician.48[at]gmail[dot]com> 
+
+pkgbase=python-pyperclip
+pkgname=('python-pyperclip' 'python2-pyperclip')
+_pypiname=pyperclip
+pkgver=1.5.15
+_commit=c57ed8ea81d5658b88f5e4dbe35938bb8be1da53
+pkgrel=1
+pkgdesc="A cross-platform clipboard module for Python"
+arch=('any')
+url="https://github.com/asweigart/pyperclip"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'xclip' 'git')
+checkdepends=('xorg-server-xvfb')
+source=("git+https://github.com/asweigart/pyperclip.git#commit=$_commit"
+        fix-test_copyUnicode.patch)
+md5sums=('SKIP'
+         '473ee868530cc1d6e579f9df63085588')
+
+prepare() {
+  (cd $_pypiname; git apply ../fix-test_copyUnicode.patch)
+  cp -a $_pypiname{,-py2}
+}
+
+check() {
+  cd "$srcdir/$_pypiname"
+  xvfb-run python tests/basicTests.py
+
+  cd "$srcdir/$_pypiname-py2"
+  xvfb-run python2 tests/basicTests.py
+}
+
+package_python-pyperclip() {
+  depends=('python' 'xclip')
+
+  cd "$srcdir/$_pypiname"
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_python2-pyperclip() {
+  depends=('python2' 'xclip')
+
+  cd "$srcdir/$_pypiname-py2"
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: fix-test_copyUnicode.patch
===================================================================
--- fix-test_copyUnicode.patch	2015-10-13 10:23:51 UTC (rev 143900)
+++ fix-test_copyUnicode.patch	2015-10-13 10:24:12 UTC (rev 143901)
@@ -1,37 +0,0 @@
-commit dbd1d58ba6c350db3aa7d154e9a940d835ee52a4
-Author: Felix Yan <felixonmars at archlinux.org>
-Date:   Sat Oct 10 09:34:35 2015 +0800
-
-    Fix test_copyUnicode under PyPy
-
-diff --git a/pyperclip/__init__.py b/pyperclip/__init__.py
-index ab2b6df..1c3ec66 100644
---- a/pyperclip/__init__.py
-+++ b/pyperclip/__init__.py
-@@ -113,6 +113,8 @@ def _copyQt(text):
- 
- 
- def _copyXclip(text):
-+    if not isinstance(text, text_type):
-+        text = text.decode('utf-8')
-     p = Popen(['xclip', '-selection', 'c'], stdin=PIPE, close_fds=True)
-     p.communicate(input=text.encode('utf-8'))
- 
-@@ -124,6 +126,8 @@ def _pasteXclip():
- 
- 
- def _copyXsel(text):
-+    if not isinstance(text, text_type):
-+        text = text.decode('utf-8')
-     p = Popen(['xsel', '-b', '-i'], stdin=PIPE, close_fds=True)
-     p.communicate(input=text.encode('utf-8'))
- 
-@@ -134,6 +138,8 @@ def _pasteXsel():
-     return stdout.decode('utf-8')
- 
- def _copyKlipper(text):
-+    if not isinstance(text, text_type):
-+        text = text.decode('utf-8')
-     p = Popen(['qdbus', 'org.kde.klipper', '/klipper',
-             'setClipboardContents', text.encode('utf-8')],
-              stdin=PIPE, close_fds=True)

Copied: python-pyperclip/repos/community-any/fix-test_copyUnicode.patch (from rev 143900, python-pyperclip/trunk/fix-test_copyUnicode.patch)
===================================================================
--- fix-test_copyUnicode.patch	                        (rev 0)
+++ fix-test_copyUnicode.patch	2015-10-13 10:24:12 UTC (rev 143901)
@@ -0,0 +1,37 @@
+commit dbd1d58ba6c350db3aa7d154e9a940d835ee52a4
+Author: Felix Yan <felixonmars at archlinux.org>
+Date:   Sat Oct 10 09:34:35 2015 +0800
+
+    Fix test_copyUnicode under PyPy
+
+diff --git a/pyperclip/__init__.py b/pyperclip/__init__.py
+index ab2b6df..1c3ec66 100644
+--- a/pyperclip/__init__.py
++++ b/pyperclip/__init__.py
+@@ -113,6 +113,8 @@ def _copyQt(text):
+ 
+ 
+ def _copyXclip(text):
++    if not isinstance(text, text_type):
++        text = text.decode('utf-8')
+     p = Popen(['xclip', '-selection', 'c'], stdin=PIPE, close_fds=True)
+     p.communicate(input=text.encode('utf-8'))
+ 
+@@ -124,6 +126,8 @@ def _pasteXclip():
+ 
+ 
+ def _copyXsel(text):
++    if not isinstance(text, text_type):
++        text = text.decode('utf-8')
+     p = Popen(['xsel', '-b', '-i'], stdin=PIPE, close_fds=True)
+     p.communicate(input=text.encode('utf-8'))
+ 
+@@ -134,6 +138,8 @@ def _pasteXsel():
+     return stdout.decode('utf-8')
+ 
+ def _copyKlipper(text):
++    if not isinstance(text, text_type):
++        text = text.decode('utf-8')
+     p = Popen(['qdbus', 'org.kde.klipper', '/klipper',
+             'setClipboardContents', text.encode('utf-8')],
+              stdin=PIPE, close_fds=True)



More information about the arch-commits mailing list