[arch-commits] Commit in python-uncertainties/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Oct 29 16:39:37 UTC 2018
Date: Monday, October 29, 2018 @ 16:39:36
Author: felixonmars
Revision: 399450
upgpkg: python-uncertainties 3.0.3-1
Modified:
python-uncertainties/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-29 16:31:00 UTC (rev 399449)
+++ PKGBUILD 2018-10-29 16:39:36 UTC (rev 399450)
@@ -2,34 +2,35 @@
pkgbase=python-uncertainties
pkgname=('python-uncertainties' 'python2-uncertainties')
-pkgver=3.0.2
-pkgrel=2
+pkgver=3.0.3
+pkgrel=1
pkgdesc="Transparent calculations with uncertainties on the quantities involved (aka error propagation); fast calculation of derivatives."
arch=('any')
license=('BSD')
url="https://github.com/lebigot/uncertainties"
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
+makedepends=('python-setuptools' 'python2-setuptools')
checkdepends=('python-nose' 'python2-nose' 'python-numpy' 'python2-numpy')
-source=("git+https://github.com/lebigot/uncertainties.git#tag=$pkgver")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/lebigot/uncertainties/archive/$pkgver.tar.gz")
+sha512sums=('d8cc8f13803ab55f81ce429f61248aaee2be9fa73058ee651302ca642440dfaaa26adcb57c754fb6ee6512d3d4238f34adb4e7e29a97273baba7216ddc39e2ba')
prepare() {
- cp -a uncertainties{,-py2}
+ # Copy needed for 2to3
+ cp -a uncertainties-$pkgver{,-py2}
}
build() {
- cd "$srcdir"/uncertainties
+ cd "$srcdir"/uncertainties-$pkgver
python setup.py build
- cd "$srcdir"/uncertainties-py2
+ cd "$srcdir"/uncertainties-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/uncertainties
+ cd "$srcdir"/uncertainties-$pkgver
python setup.py nosetests
- cd "$srcdir"/uncertainties-py2
+ cd "$srcdir"/uncertainties-$pkgver-py2
python2 setup.py nosetests
}
@@ -37,7 +38,7 @@
depends=('python')
optdepends=('python-numpy: additional support for NumPy arrays and matrices')
- cd uncertainties
+ cd uncertainties-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
@@ -46,7 +47,7 @@
depends=('python2')
optdepends=('python2-numpy: additional support for NumPy arrays and matrices')
- cd uncertainties-py2
+ cd uncertainties-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
More information about the arch-commits
mailing list