[arch-commits] Commit in python-arrow/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Sun Sep 16 05:43:23 UTC 2018
Date: Sunday, September 16, 2018 @ 05:43:23
Author: eschwartz
Revision: 382201
upgpkg: python-arrow 0.12.1-4
fix broken url
remove incorrect runtime dependency on nose
add tests
Modified:
python-arrow/trunk/PKGBUILD
----------+
PKGBUILD | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-16 05:40:14 UTC (rev 382200)
+++ PKGBUILD 2018-09-16 05:43:23 UTC (rev 382201)
@@ -4,13 +4,16 @@
pkgbase=python-arrow
pkgname=('python-arrow' 'python2-arrow')
pkgver=0.12.1
-pkgrel=3
+pkgrel=4
pkgdesc='Better dates and times for Python'
arch=('any')
-url='http://crsmithdev.com/arrow/'
-license=('GPL')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("python-arrow-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/e0/86/4eb5228a43042e9a80fe8c84093a8a36f5db34a3767ebd5e1e7729864e7b/arrow-0.12.1.tar.gz")
+url="https://arrow.readthedocs.io"
+license=('Apache')
+makedepends=('python-dateutil' 'python-setuptools'
+ 'python2-dateutil' 'python2-setuptools' 'python2-backports.functools_lru_cache')
+checkdepends=('python-chai' 'python-nose' 'python-simplejson'
+ 'python2-chai' 'python2-nose' 'python2-simplejson')
+source=("https://files.pythonhosted.org/packages/source/a/arrow/arrow-${pkgver}.tar.gz")
sha256sums=('a558d3b7b6ce7ffc74206a86c147052de23d3d4ef0e17c210dd478c53575c4cd')
prepare() {
@@ -25,8 +28,15 @@
popd
done
}
+
+check() {
+ cd python-arrow-${pkgver}
+ nosetests
+ nosetests2
+}
+
package_python-arrow() {
- depends=('python' 'python-dateutil' 'python-nose')
+ depends=('python' 'python-dateutil')
cd python-arrow-${pkgver}
@@ -34,7 +44,7 @@
}
package_python2-arrow() {
- depends=('python2' 'python2-backports.functools_lru_cache' 'python2-dateutil' 'python2-nose')
+ depends=('python2' 'python2-backports.functools_lru_cache' 'python2-dateutil')
cd python2-arrow-${pkgver}
More information about the arch-commits
mailing list