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

David Runge dvzrv at gemini.archlinux.org
Tue Jan 11 23:42:37 UTC 2022


    Date: Tuesday, January 11, 2022 @ 23:42:36
  Author: dvzrv
Revision: 1101292

upgpkg: python-progressbar 4.0.0-1: Upgrade to 4.0.0.

Simplify quoting in file.
Remove unneeded prepare().

Modified:
  python-progressbar/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++----------------------
 1 file changed, 14 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-11 23:42:02 UTC (rev 1101291)
+++ PKGBUILD	2022-01-11 23:42:36 UTC (rev 1101292)
@@ -5,44 +5,36 @@
 _name=progressbar2
 pkgname=python-progressbar
 pkgdesc="A progress bar for Python"
-pkgver=3.55.0
-pkgrel=3
+pkgver=4.0.0
+pkgrel=1
+arch=(any)
 url="https://github.com/WoLpH/python-progressbar"
-license=('BSD')
-arch=('any')
-depends=('python-six' 'python-utils')
-makedepends=('python-setuptools' 'python-sphinx')
-checkdepends=('python-pytest' 'python-freezegun')
+license=(BSD)
+depends=(python-six python-utils)
+makedepends=(python-setuptools python-sphinx)
+checkdepends=(python-pytest python-freezegun)
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
-sha512sums=('16dcdffeba6e9cb6696ac41c16701874c5f314432332d7ae2d898d1040e603c428240a8ca5718789d0d431750e2ae923a6f63fe75785213e80494bcc5825aab5'
+sha512sums=('b9b9dabb3093e42bc6f40c0e284caae2d29ebfa450db379c214a5ae39e7ccb8c690655da21a44882d0b68f24d83f55a3342671087a25ada168bce9d236685666'
             'SKIP')
-b2sums=('89034af2cc623063e98c9de1683f159c2eeb491354c66357d9c3fb5a7ac0503b5c9d2dd6ebf36d3e2803558f3841820188eaf6dc931e992c352e0e02fa020f87'
+b2sums=('1616f1b9c5f720f370dc9eb02ba37cf83391c853a525fca523fb33af1b580f38647b835a83558674a78dacc33bf7652cb9af8799ad13763f62d33417abaa35cf'
         'SKIP')
 validpgpkeys=('149325FD15904E9C4EB89E95E81444E9CE1F695D') # Rick van Hattem <wolph at wol.ph>
 
-prepare() {
-  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
-  cd "${pkgname}-${pkgver}"
-  # don't care about custom pytest config
-  rm -v pytest.ini
-}
-
 build() {
-  cd "${pkgname}-${pkgver}"
+  cd "${_name}-${pkgver}"
   python setup.py build
 }
 
 check() {
-  cd "${pkgname}-${pkgver}"
+  cd "${_name}-${pkgver}"
   export PYTHONPATH="${PWD}/build:${PYTHONPATH}"
   # Don't write pyc files of tests so the package is reproducible.
-  PYTHONDONTWRITEBYTECODE=1 pytest -v
+  PYTHONDONTWRITEBYTECODE=1 pytest -v -c /dev/null
 }
 
 package() {
-  cd "${pkgname}-${pkgver}"
+  cd "${_name}-${pkgver}"
   python setup.py install --optimize=1 --root="${pkgdir}"
-  install -vDm 644 {CHANGES,CONTRIBUTING,README}.rst \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 {CHANGES,CONTRIBUTING,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }



More information about the arch-commits mailing list