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

Felix Yan felixonmars at gemini.archlinux.org
Wed Feb 9 22:49:24 UTC 2022


    Date: Wednesday, February 9, 2022 @ 22:49:23
  Author: felixonmars
Revision: 1130422

upgpkg: python-prettytable 2.0.0-1

Modified:
  python-prettytable/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-09 22:06:29 UTC (rev 1130421)
+++ PKGBUILD	2022-02-09 22:49:23 UTC (rev 1130422)
@@ -4,28 +4,20 @@
 
 _pkgname=prettytable
 pkgname=python-prettytable
-pkgver=1.0.1
+pkgver=2.0.0
 pkgrel=1
 pkgdesc="A simple Python library for easily displaying tabular data"
 url="https://github.com/jazzband/prettytable"
 arch=('any')
 license=('BSD')
-depends=('python-wcwidth')
+depends=('python-wcwidth' 'python-setuptools')
 makedepends=('python-setuptools-scm')
 checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/p/prettyTable/prettytable-${pkgver}.tar.gz"
-        '0001-Fix-column-spacing-with-xterm-reset-escape-sequence.patch')
-sha512sums=('5031bc5e4b70cced9c6410dad9e9a499362322834de26ea852570b588c437ad3161afe4d3b83bc1f24f02b3c748978e3eeda24608c366e43b1434e881322bdc9'
-            '86cf8be475f62b0dfaa2483a37293cefd61e97bfe3c1226076cacc199da69bc5ea7e561bc311dd1b65f808f4fab202a0d38f702568ab7fbc091f285d2e52c924')
+source=("https://files.pythonhosted.org/packages/source/p/prettyTable/prettytable-${pkgver}.tar.gz")
+sha512sums=('b7c47df7d85a91e9518dea8dafcb27037e5cde81f59dd2b9e9468ae44b18431dd7d943fed487d5713e2c5aa25df76a8eb6587d045f73b8f25f53715a8a2085fc')
 
 export SETUPTOOLSA_SCM_PRETEND_VERSION=$pkgver
 
-prepare() {
-  pushd prettytable-$pkgver
-  patch -p1 -i "$srcdir"/0001-Fix-column-spacing-with-xterm-reset-escape-sequence.patch
-  popd
-}
-
 build() {
   cd prettytable-$pkgver
   python setup.py build
@@ -33,11 +25,11 @@
 
 check() {
   cd prettytable-$pkgver
-  pytest
+  python setup.py egg_info
+  PYTHONPATH="$PWD/src" pytest
 }
 
 package() {
   cd prettytable-$pkgver
-  chmod 644 -R prettytable.egg-info
   python setup.py install --root="$pkgdir/"
 }



More information about the arch-commits mailing list