[arch-commits] Commit in python-braintree/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Thu May 12 07:37:55 UTC 2016
Date: Thursday, May 12, 2016 @ 09:37:55
Author: fyan
Revision: 174865
archrelease: copy trunk to community-any
Added:
python-braintree/repos/community-any/PKGBUILD
(from rev 174864, python-braintree/trunk/PKGBUILD)
Deleted:
python-braintree/repos/community-any/PKGBUILD
----------+
PKGBUILD | 108 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 53 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-05-12 07:37:11 UTC (rev 174864)
+++ PKGBUILD 2016-05-12 07:37:55 UTC (rev 174865)
@@ -1,55 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-braintree
-pkgname=(python-braintree python2-braintree)
-_pkgname=braintree
-pkgver=3.25.0
-pkgrel=1
-pkgdesc="Braintree Python Library"
-arch=('any')
-url="https://www.braintreepayments.com/docs/python"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
-checkdepends=('python-nose' 'python2-nose')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/braintree/braintree_python/archive/${pkgver}.tar.gz")
-sha512sums=('3800195fbf8a023accb814d4f24554de086d263d5f6032135cf7d06a28255282722f117211fbe18a6ca0f64c61c16f07b621a3c2c6c6430daeb37e45907cbab4')
-
-prepare() {
- cp -a ${_pkgname}_python-$pkgver{,-py2}
-}
-
-build() {
- cd ${_pkgname}_python-$pkgver
- python setup.py build
-
- cd ../${_pkgname}_python-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd ${_pkgname}_python-$pkgver
- nosetests3 tests/unit
-
- cd ../${_pkgname}_python-$pkgver-py2
- nosetests2 tests/unit
-}
-
-package_python-braintree() {
- depends=('python-requests')
-
- cd ${_pkgname}_python-$pkgver
- python setup.py install -O1 --root "${pkgdir}"
-
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_python2-braintree() {
- depends=('python2-requests')
-
- cd ${_pkgname}_python-$pkgver-py2
- python2 setup.py install -O1 --root "${pkgdir}"
-
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
Copied: python-braintree/repos/community-any/PKGBUILD (from rev 174864, python-braintree/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-05-12 07:37:55 UTC (rev 174865)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-braintree
+pkgname=(python-braintree python2-braintree)
+pkgver=3.26.1
+pkgrel=1
+pkgdesc="Braintree Python Library"
+arch=('any')
+url="https://www.braintreepayments.com/docs/python"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'git')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/braintree/braintree_python.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a braintree_python{,-py2}
+}
+
+build() {
+ cd "$srcdir"/braintree_python
+ python setup.py build
+
+ cd "$srcdir"/braintree_python-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/braintree_python
+ nosetests3 tests/unit
+
+ cd "$srcdir"/braintree_python-py2
+ nosetests2 tests/unit
+}
+
+package_python-braintree() {
+ depends=('python-requests')
+
+ cd braintree_python
+ python setup.py install -O1 --root="$pkgdir"
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-braintree() {
+ depends=('python2-requests')
+
+ cd braintree_python-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list