[arch-commits] Commit in python-cmd2/repos/community-any (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Oct 4 08:14:54 UTC 2016
Date: Tuesday, October 4, 2016 @ 08:14:54
Author: felixonmars
Revision: 191281
archrelease: copy trunk to community-any
Added:
python-cmd2/repos/community-any/PKGBUILD
(from rev 191280, python-cmd2/trunk/PKGBUILD)
Deleted:
python-cmd2/repos/community-any/PKGBUILD
python-cmd2/repos/community-any/python-3.5.patch
------------------+
PKGBUILD | 110 +++++++++++++++++++++++++----------------------------
python-3.5.patch | 23 -----------
2 files changed, 52 insertions(+), 81 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-04 08:14:33 UTC (rev 191280)
+++ PKGBUILD 2016-10-04 08:14:54 UTC (rev 191281)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-
-pkgbase=python-cmd2
-pkgname=(python-cmd2 python2-cmd2)
-pkgver=0.6.8
-_commit=3ed12b6154320d6e3e89c5aace04b7e5ac9bed2c
-pkgrel=2
-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')
-
-prepare() {
- (cd cmd2; patch -p1 -i ../python-3.5.patch)
- cp -a cmd2{,-py2}
-}
-
-build() {
- cd "$srcdir"/cmd2
- python setup.py build
-
- cd "$srcdir"/cmd2-py2
- python2 setup.py build
-}
-
-check() {
- # Tests will be available in next release
-
- cd "$srcdir"/cmd2
- # python setup.py ptr
-
- cd "$srcdir"/cmd2-py2
- # python2 setup.py ptr
-}
-
-package_python-cmd2() {
- depends=('python-pyparsing')
-
- cd "$srcdir"/cmd2
- python setup.py install --root="$pkgdir/" --optimize=1
-}
-
-package_python2-cmd2() {
- depends=('python2-pyparsing')
-
- cd "$srcdir"/cmd2-py2
- python2 setup.py install --root="$pkgdir/" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-cmd2/repos/community-any/PKGBUILD (from rev 191280, python-cmd2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-10-04 08:14:54 UTC (rev 191281)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-cmd2
+pkgname=(python-cmd2 python2-cmd2)
+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' 'python-mock' 'python2-mock')
+source=("git+https://github.com/python-cmd2/cmd2.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a cmd2{,-py2}
+}
+
+build() {
+ cd "$srcdir"/cmd2
+ python setup.py build
+
+ cd "$srcdir"/cmd2-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/cmd2
+ python setup.py ptr
+
+ cd "$srcdir"/cmd2-py2
+ python2 setup.py ptr
+}
+
+package_python-cmd2() {
+ depends=('python-pyparsing')
+
+ cd "$srcdir"/cmd2
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-cmd2() {
+ depends=('python2-pyparsing')
+
+ cd "$srcdir"/cmd2-py2
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: python-3.5.patch
===================================================================
--- python-3.5.patch 2016-10-04 08:14:33 UTC (rev 191280)
+++ python-3.5.patch 2016-10-04 08:14:54 UTC (rev 191281)
@@ -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