[arch-commits] Commit in python-arrow/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Mon Jul 29 07:03:25 UTC 2019


    Date: Monday, July 29, 2019 @ 07:03:24
  Author: alucryd
Revision: 494395

upgpkg: python-arrow 0.14.3-1

Modified:
  python-arrow/trunk/PKGBUILD

----------+
 PKGBUILD |   57 +++++++++++----------------------------------------------
 1 file changed, 11 insertions(+), 46 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-29 06:56:11 UTC (rev 494394)
+++ PKGBUILD	2019-07-29 07:03:24 UTC (rev 494395)
@@ -1,24 +1,17 @@
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 # Contributor: Tatsuyuki Ishi <ishitatsuyuki at gmail.com>
 
-pkgbase=python-arrow
-pkgname=(
-  python-arrow
-  python2-arrow
-)
-pkgver=0.14.2
+pkgname=python-arrow
+pkgver=0.14.3
 pkgrel=1
 pkgdesc='Better dates and times for Python'
 arch=(any)
 url=https://arrow.readthedocs.io
-license=(Apache)
+license=(APACHE)
 makedepends=(
   git
   python-dateutil
   python-setuptools
-  python2-dateutil
-  python2-setuptools
-  python2-backports.functools_lru_cache
 )
 checkdepends=(
   python-chai
@@ -25,54 +18,26 @@
   python-nose
   python-pytz
   python-simplejson
-  python2-chai
-  python2-nose
-  python2-pytz
-  python2-simplejson
 )
 source=(git+https://github.com/crsmithdev/arrow.git#tag=${pkgver})
 sha256sums=('SKIP')
 
-prepare() {
-  cp -r {,python-}arrow
-  mv {,python2-}arrow
-}
+build() {
+  cd arrow
 
-build() {
-  for py in python{,2}; do
-    pushd ${py}-arrow
-    ${py} setup.py build
-    popd
-  done
+  python setup.py build
 }
 
 check() {
-  cd python-arrow
+  cd arrow
+
   nosetests
-  nosetests2
 }
 
-package_python-arrow() {
-  depends=(
-    python
-    python-dateutil
-  )
+package() {
+  cd arrow
 
-  cd python-arrow
-
-  python setup.py install --skip-build --root="${pkgdir}" --optimize='1' --skip-build
+  python setup.py install --skip-build --root="${pkgdir}" --optimize=1 --skip-build
 }
 
-package_python2-arrow() {
-  depends=(
-    python2
-    python2-backports.functools_lru_cache
-    python2-dateutil
-  )
-
-  cd python2-arrow
-
-  python2 setup.py install --skip-build --root="${pkgdir}" --optimize='1' --skip-build
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list