[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Wed May 13 03:08:02 UTC 2015


    Date: Wednesday, May 13, 2015 @ 05:08:02
  Author: fyan
Revision: 133351

addpkg: python-pluggy 0.3.0-1

Added:
  python-pluggy/
  python-pluggy/repos/
  python-pluggy/trunk/
  python-pluggy/trunk/PKGBUILD

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

Added: python-pluggy/trunk/PKGBUILD
===================================================================
--- python-pluggy/trunk/PKGBUILD	                        (rev 0)
+++ python-pluggy/trunk/PKGBUILD	2015-05-13 03:08:02 UTC (rev 133351)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pluggy
+pkgname=(python-pluggy python2-pluggy)
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="Plugin and hook calling mechanisms for python"
+arch=('any')
+url="https://www.pluggypayments.com/docs/python"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.python.org/packages/source/p/pluggy/pluggy-$pkgver.tar.gz")
+sha512sums=('0c4deb74f8d5d5584cd347fcfdb694e54e4beb17dba153e4cdd9da56ae1626211c08e1d4452034a1adf5b4f9fea5f3908a0bf8eaa661cf98fb5a4d61f16e4c18')
+
+prepare() {
+  cp -a pluggy-$pkgver{,-py2}
+}
+
+build() {
+  cd pluggy-$pkgver
+  python setup.py build
+
+  cd ../pluggy-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd pluggy-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
+
+  cd ../pluggy-$pkgver-py2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2
+}
+
+package_python-pluggy() {
+  depends=('python')
+
+  cd pluggy-$pkgver
+  python setup.py install -O1 --root "${pkgdir}"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pluggy() {
+  depends=('python2')
+
+  cd pluggy-$pkgver-py2
+  python2 setup.py install -O1 --root "${pkgdir}"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


Property changes on: python-pluggy/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list