Date: Tuesday, January 31, 2023 @ 19:51:43
  Author: felixonmars
Revision: 1391492

upgpkg: python-prettytable 3.6.0-2

Modified:
  python-prettytable/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 19:51:29 UTC (rev 1391491)
+++ PKGBUILD    2023-01-31 19:51:43 UTC (rev 1391492)
@@ -5,27 +5,26 @@
 
 pkgname=python-prettytable
 pkgver=3.6.0
-pkgrel=1
+_commit=599bb886c87a704e93fc37df8ad3eee78da3e27f
+pkgrel=2
 pkgdesc="A simple Python library for easily displaying tabular data"
 url="https://github.com/jazzband/prettytable";
 arch=('any')
 license=('BSD')
 depends=('python-wcwidth')
-makedepends=('python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs')
+makedepends=('git' 'python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs')
 checkdepends=('python-pytest-lazy-fixture')
 conflicts=('python-ptable')
-source=("https://github.com/jazzband/prettytable/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('b4693a3d30555f598cb955923560d02ce7c757e87ee49bf09c8d50d3ce8bef67ebfad1c780914f488e89852c0e363c2cad098addc058a88864efb8eefa8e9cd8')
+source=("git+https://github.com/jazzband/prettytable.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 build() {
-  cd prettytable-$pkgver
+  cd prettytable
   python -m build -nw
 }
 
 check() {
-  cd prettytable-$pkgver
+  cd prettytable
   python -m installer --destdir="$PWD/tmp_install" dist/*.whl
   local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
   PYTHONPATH="$PWD/tmp_install/$site_packages" pytest
@@ -32,7 +31,7 @@
 }
 
 package() {
-  cd prettytable-$pkgver
+  cd prettytable
   python -m installer -d "$pkgdir" dist/*.whl
   install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to