Date: Saturday, October 29, 2022 @ 12:36:28
  Author: felixonmars
Revision: 1338602

upgpkg: python-prettytable 3.5.0-1

Modified:
  python-prettytable/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-29 12:34:21 UTC (rev 1338601)
+++ PKGBUILD    2022-10-29 12:36:28 UTC (rev 1338602)
@@ -1,10 +1,10 @@
-# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
 # Contributor: Sebastien Leduc <[email protected]>
 # Contributor: Emmanuel Gil Peyrot <[email protected]>
 
-_pkgname=prettytable
 pkgname=python-prettytable
-pkgver=3.4.1
+pkgver=3.5.0
 pkgrel=1
 pkgdesc="A simple Python library for easily displaying tabular data"
 url="https://github.com/jazzband/prettytable";
@@ -11,26 +11,27 @@
 arch=('any')
 license=('BSD')
 depends=('python-wcwidth')
-makedepends=('python-setuptools-scm')
+makedepends=('python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs')
 checkdepends=('python-pytest-lazy-fixture')
 conflicts=('python-ptable')
-source=("https://files.pythonhosted.org/packages/source/p/prettyTable/prettytable-${pkgver}.tar.gz";)
-sha512sums=('47a00d5d3bd6be77734abf0c6a50ac13f3d6fb72d8cc7bd2d760c860401f46ee94f766063eaeb30cf3d67c6f33fca9e3a1ae9d68af61139704bb1e23ba649ce4')
+source=("https://github.com/jazzband/prettytable/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('24ef28a42365568bf68a974afd42fcc1bfb9208e1cb75fc1b2890bc2253487afa6536e778b58e320e952ca8bf9b69193bd1293bb7615628d03765ee24c44edff')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
 build() {
   cd prettytable-$pkgver
-  python setup.py build
+  python -m build -nw
 }
 
 check() {
   cd prettytable-$pkgver
-  python setup.py egg_info
-  PYTHONPATH="$PWD/src" pytest
+  python -m installer --destdir="$PWD/tmp_install" dist/*.whl
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages" pytest
 }
 
 package() {
   cd prettytable-$pkgver
-  python setup.py install --root="$pkgdir/"
+  python -m installer -d "$pkgdir" dist/*.whl
+  install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to