[arch-commits] Commit in python-dockerpty/repos (community-any community-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Thu Oct 29 09:46:12 UTC 2015
Date: Thursday, October 29, 2015 @ 10:46:12
Author: fyan
Revision: 145244
archrelease: copy trunk to community-any
Added:
python-dockerpty/repos/community-any/
python-dockerpty/repos/community-any/PKGBUILD
(from rev 145243, python-dockerpty/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-dockerpty/repos/community-any/PKGBUILD (from rev 145243, python-dockerpty/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-10-29 09:46:12 UTC (rev 145244)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Hideaki Takahashi <mymelo+aur at gmail.com>
+# Contributor: Vincent Demeester <vincent at sbr.pm>
+
+pkgname=(python-dockerpty python2-dockerpty)
+pkgver=0.3.4
+pkgrel=1
+pkgdesc="Python library to use the pseudo-tty of a docker container"
+arch=('any')
+license=('Apache')
+url="https://github.com/d11wtq/dockerpty"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-docker-py' 'python2-docker-py'
+ 'python-six' 'python2-six' 'git')
+checkdepends=('python-pytest' 'python2-pytest' 'python-expects' 'python2-expects')
+source=("git+https://github.com/d11wtq/dockerpty.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a dockerpty{,-py2}
+}
+
+build() {
+ cd "$srcdir/dockerpty"
+ python setup.py build
+
+ cd "$srcdir/dockerpty-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/dockerpty"
+ py.test
+
+ cd "$srcdir/dockerpty-py2"
+ py.test2
+}
+
+package_python-dockerpty() {
+ depends=('python-six' 'python-docker-py')
+
+ cd dockerpty
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-dockerpty() {
+ depends=('python2-six' 'python2-docker-py')
+
+ cd dockerpty-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}
More information about the arch-commits
mailing list