[arch-commits] Commit in python-tabulate/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Thu Jun 23 09:03:51 UTC 2022
Date: Thursday, June 23, 2022 @ 09:03:51
Author: dvzrv
Revision: 1239233
archrelease: copy trunk to community-any
Added:
python-tabulate/repos/community-any/PKGBUILD
(from rev 1239232, python-tabulate/trunk/PKGBUILD)
Deleted:
python-tabulate/repos/community-any/PKGBUILD
----------+
PKGBUILD | 80 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 43 insertions(+), 37 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-23 09:03:43 UTC (rev 1239232)
+++ PKGBUILD 2022-06-23 09:03:51 UTC (rev 1239233)
@@ -1,37 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=tabulate
-pkgname=python-tabulate
-pkgver=0.8.9
-pkgrel=4
-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')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-numpy' 'python-pandas' 'python-pytest' 'python-wcwidth')
-optdepends=('python-numpy: NumPy array support'
- 'python-pandas: pandas.DataFrame support'
- 'python-wcwidth: wide-character support')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('4170bb4ded836997ea053b039f19e084818c40e8ae2ae4f56c686ed3d33a341986bc311dd0370256b1af815db7b1ed8ba89008f87f8634b216412d0fd5fa76d9')
-b2sums=('6c2a939d2e5e1c128545ee9d7c2ad6e51c2a0512b7cf97858dbd2bc9df9e58198b74441c5963bde64fa851558e1146dc4252951ed47d4c56630b89e5210293ac')
-
-build() {
- cd "${_name}-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "${_name}-$pkgver"
- export PYTHONPATH="${PYTHONPATH}:${PWD}"
- pytest -v
-}
-
-package_python-tabulate() {
- cd "${_name}-$pkgver"
- python setup.py install --optimize=1 --root="${pkgdir}"
- install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
- install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
-}
Copied: python-tabulate/repos/community-any/PKGBUILD (from rev 1239232, python-tabulate/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-06-23 09:03:51 UTC (rev 1239233)
@@ -0,0 +1,43 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=tabulate
+pkgname=python-tabulate
+pkgver=0.8.10
+pkgrel=1
+pkgdesc="Pretty-print tabular data in Python, a library and a command-line utility."
+arch=(any)
+url="https://github.com/astanin/python-tabulate"
+license=(MIT)
+depends=(python)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-nose python-numpy python-pandas python-pytest python-wcwidth)
+optdepends=(
+ 'python-numpy: NumPy array support'
+ 'python-pandas: pandas.DataFrame support'
+ 'python-wcwidth: wide-character support'
+)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('da390eb620c257eb4a24393d011c8835c59b0da573ce2ed19950a8f16033ef432e7847d8a39f3e7907ba5502635b744ed69c4ebed9fa0efed9d2385a03798a3f')
+b2sums=('4cc092e75f057e342ced8c317b9ec927c20dff4e55da40405712df231df6b7543a591d75de10e708b06ac6946714cb4cd1c1af568300e0d7f449640382516600')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+ cd $_name-$pkgver
+ # install to temporary location, as importlib is used
+ python -m installer --destdir=test_dir dist/*.whl
+ export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+ pytest -v
+}
+
+package_python-tabulate() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+ install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}
More information about the arch-commits
mailing list