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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 02:14:40 UTC 2018


    Date: Saturday, June 30, 2018 @ 02:14:40
  Author: felixonmars
Revision: 347846

archrelease: copy trunk to community-staging-any

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

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

Copied: python-extras/repos/community-staging-any/PKGBUILD (from rev 347845, python-extras/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 02:14:40 UTC (rev 347846)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-extras
+pkgname=('python-extras' 'python2-extras')
+pkgver=1.0.0
+pkgrel=3
+pkgdesc="Useful extra bits for Python - things that should be in the standard library"
+arch=('any')
+license=('MIT')
+url="https://github.com/testing-cabal/extras"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-testtools' 'python2-testtools')
+source=("git+https://github.com/testing-cabal/extras.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a extras{,-py2}
+}
+
+build() {
+  cd "$srcdir/extras"
+  python setup.py build
+
+  cd "$srcdir/extras-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/extras"
+  python -m testtools.run extras.tests.test_suite
+
+  cd "$srcdir/extras-py2"
+  python2 -m testtools.run extras.tests.test_suite
+}
+
+package_python-extras() {
+  depends=('python')
+
+  cd extras
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-extras() {
+  depends=('python2')
+
+  cd extras-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list