[arch-commits] Commit in python-cmd2/trunk (PKGBUILD python-3.5.patch)

Felix Yan felixonmars at archlinux.org
Tue Oct 4 08:14:34 UTC 2016


    Date: Tuesday, October 4, 2016 @ 08:14:33
  Author: felixonmars
Revision: 191280

upgpkg: python-cmd2 0.6.9-1

Modified:
  python-cmd2/trunk/PKGBUILD
Deleted:
  python-cmd2/trunk/python-3.5.patch

------------------+
 PKGBUILD         |   20 +++++++-------------
 python-3.5.patch |   23 -----------------------
 2 files changed, 7 insertions(+), 36 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-04 05:58:20 UTC (rev 191279)
+++ PKGBUILD	2016-10-04 08:14:33 UTC (rev 191280)
@@ -4,22 +4,18 @@
 
 pkgbase=python-cmd2
 pkgname=(python-cmd2 python2-cmd2)
-pkgver=0.6.8
-_commit=3ed12b6154320d6e3e89c5aace04b7e5ac9bed2c
-pkgrel=2
+pkgver=0.6.9
+pkgrel=1
 pkgdesc="Extra features for standard library's cmd module"
 arch=('any')
 url="https://github.com/python-cmd2/cmd2"
 license=('MIT')
 makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("git+https://github.com/python-cmd2/cmd2.git#commit=$_commit"
-        python-3.5.patch)
-md5sums=('SKIP'
-         'a67eb13a752b55ba755f7fa7f7e954c9')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock')
+source=("git+https://github.com/python-cmd2/cmd2.git#tag=$pkgver")
+md5sums=('SKIP')
 
 prepare() {
-  (cd cmd2; patch -p1 -i ../python-3.5.patch)
   cp -a cmd2{,-py2}
 }
 
@@ -32,13 +28,11 @@
 }
 
 check() {
-  # Tests will be available in next release
-
   cd "$srcdir"/cmd2
-  # python setup.py ptr
+  python setup.py ptr
 
   cd "$srcdir"/cmd2-py2
-  # python2 setup.py ptr
+  python2 setup.py ptr
 }
 
 package_python-cmd2() {

Deleted: python-3.5.patch
===================================================================
--- python-3.5.patch	2016-10-04 05:58:20 UTC (rev 191279)
+++ python-3.5.patch	2016-10-04 08:14:33 UTC (rev 191280)
@@ -1,23 +0,0 @@
-From 6ee37b45de8d2a8a1fe9f4db7f7a4b77f216b9ed Mon Sep 17 00:00:00 2001
-From: Hans Lellelid <hans at xmpl.org>
-Date: Thu, 18 Feb 2016 21:49:15 -0500
-Subject: [PATCH] subprocess.mswindows does not exist in python3.5
-
-Am hoping that the sys.platform (https://docs.python.org/2/library/sys.html#sys.platform) check is sufficient, though perhaps there was a reason this was not done initially.
----
- cmd2.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/cmd2.py b/cmd2.py
-index 63e422f..4b11958 100755
---- a/cmd2.py
-+++ b/cmd2.py
-@@ -190,7 +190,7 @@ def __init__(self):
- to be installed on operating system.
- %s"""
- 
--if subprocess.mswindows:
-+if sys.platform == "win32":
-     try:
-         import win32clipboard
-         def get_paste_buffer():



More information about the arch-commits mailing list