[arch-commits] Commit in python-dockerpty/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Jul 19 07:29:58 UTC 2018


    Date: Thursday, July 19, 2018 @ 07:29:57
  Author: foutrelis
Revision: 362372

archrelease: copy trunk to community-staging-any

Added:
  python-dockerpty/repos/community-staging-any/
  python-dockerpty/repos/community-staging-any/PKGBUILD
    (from rev 362371, python-dockerpty/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: python-dockerpty/repos/community-staging-any/PKGBUILD (from rev 362371, python-dockerpty/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-19 07:29:57 UTC (rev 362372)
@@ -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.4.1
+pkgrel=3
+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