[arch-commits] Commit in python-tabulate/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Tue Jan 29 11:25:44 UTC 2019
Date: Tuesday, January 29, 2019 @ 11:25:43
Author: dvzrv
Revision: 428391
archrelease: copy trunk to community-any
Added:
python-tabulate/repos/community-any/PKGBUILD
(from rev 428390, python-tabulate/trunk/PKGBUILD)
Deleted:
python-tabulate/repos/community-any/PKGBUILD
----------+
PKGBUILD | 123 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 58 insertions(+), 65 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-29 11:25:29 UTC (rev 428390)
+++ PKGBUILD 2019-01-29 11:25:43 UTC (rev 428391)
@@ -1,65 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-_name=tabulate
-pkgbase=python-tabulate
-pkgname=('python-tabulate' 'python2-tabulate')
-pkgver=0.8.2
-pkgrel=3
-pkgdesc="Pretty-print tabular data in Python, a library and a command-line utility."
-arch=('any')
-url="https://bitbucket.org/astanin/python-tabulate"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('9e34fb84e16f4b2c1378c0f53c5ef803438fcae7bc1637ac8975f358a11653f641bba0ea19529858e8e62aa45bb5bccd3b6f0492fd2d9d9c9a3bf963dd1ac0a7')
-
-prepare() {
- mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
- python2 setup.py build
-}
-
-check() {
- cd "$pkgname-$pkgver"
- export PYTHONPATH="${PYTHONPATH}:${PWD}"
- # disabling failing tests:
- # https://bitbucket.org/astanin/python-tabulate/issues/149
- py.test -k 'not test_dict_like \
- and not test_list_of_dicts \
- and not test_List_of_dicts_keys \
- and not test_list_of_dicts_firstrow \
- and not test_list_of_dicts_dict_of_headers \
- and not test_list_of_lists_with_supplied_index \
- and not test_list_of_lists_with_index_firstrow \
- and not test_isconvertible_on_set_values'
- py.test2 -k 'not test_list_of_lists_with_supplied_index \
- and not test_list_of_lists_with_index_firstrow'
-}
-
-package_python-tabulate() {
- depends=('python-setuptools')
- cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
- install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
- install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
-}
-
-package_python2-tabulate() {
- depends=('python2-setuptools')
- cd "$pkgbase-$pkgver"
- python2 setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
- install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
- install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
- # move executable to unique name
- mv -v "${pkgdir}/usr/bin/${_name}"{,2}
-}
Copied: python-tabulate/repos/community-any/PKGBUILD (from rev 428390, python-tabulate/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-01-29 11:25:43 UTC (rev 428391)
@@ -0,0 +1,58 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=tabulate
+pkgbase=python-tabulate
+pkgname=('python-tabulate' 'python2-tabulate')
+pkgver=0.8.3
+pkgrel=1
+pkgdesc="Pretty-print tabular data in Python, a library and a command-line utility."
+arch=('any')
+url="https://bitbucket.org/astanin/python-tabulate"
+license=('MIT')
+makedepends=('python-numpy' 'python-pandas' 'python-setuptools'
+'python-wcwidth' 'python2-numpy' 'python2-pandas' 'python2-setuptools'
+'python2-wcwidth')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('7f0205a4d80ed0b426a45622a3b8ec0a9b77cf6d67c1207db7fbc20a12e83a15748e63d5f8e5e65fa348b6265fd0cac93be4d04f9c1c182476b93507e1131cbf')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="${PYTHONPATH}:${PWD}"
+ python setup.py test
+ python2 setup.py test
+}
+
+package_python-tabulate() {
+ depends=('python-numpy' 'python-pandas' 'python-setuptools' 'python-wcwidth')
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+
+package_python2-tabulate() {
+ depends=('python2-numpy' 'python2-pandas' 'python2-setuptools'
+ 'python2-wcwidth')
+ cd "$pkgbase-$pkgver"
+ python2 setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+ # move executable to unique name
+ mv -v "${pkgdir}/usr/bin/${_name}"{,2}
+}
More information about the arch-commits
mailing list