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

David Runge dvzrv at gemini.archlinux.org
Tue Dec 28 19:32:05 UTC 2021


    Date: Tuesday, December 28, 2021 @ 19:32:05
  Author: dvzrv
Revision: 1086437

upgpkg: python-pyphen 0.12.0-1: Upgrade to 0.12.0.

Switch to python-flit based build system.
Use python-pytest instead of python-nose.
Remove unneeded prepare().
Simplify quoting in file.

Modified:
  python-pyphen/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++---------------------
 1 file changed, 15 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-28 17:56:31 UTC (rev 1086436)
+++ PKGBUILD	2021-12-28 19:32:05 UTC (rev 1086437)
@@ -2,37 +2,31 @@
 
 _name=pyphen
 pkgname=python-pyphen
-pkgver=0.11.0
-pkgrel=3
+pkgver=0.12.0
+pkgrel=1
 pkgdesc="Pure Python module to hyphenate text"
-arch=('any')
+arch=(any)
 url="https://pyphen.org/"
-license=('GPL2' 'LGPL2.1' 'MPL')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-nose')
+license=(GPL2 LGPL2.1 MPL)
+depends=(python)
+makedepends=(python-build python-flit python-install python-wheel)
+checkdepends=(python-pytest)
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('49f510cdc00af479054c64380de8fb5722e2c99a3cf0f882c4b78b82c80300b6cb28c53c593a091e358eae662b28a50ac6e63afb8d57f2adf5c03e5a7f879c68')
-b2sums=('9da03e913915e2b4719dc4c00f0f0c808e5e81732021e5ae00e70b02c15edd5d97849618e5b2f2f8d9c685c92debad4952848a9573f82194aa34ac2133cd42d1')
+sha512sums=('144218b8d5454fffc16de0c839c93a0badadd5c9b7867195072b77d9130440059ec84b5819d7eed12b65d2cc51cb7202226cb44ef6844f18fa428c4b3a1ef2b5')
+b2sums=('979f29051e65ea1411ce013760f4d7facfa87daac1d5325976a8fed7d6335eebaa14bc2d0f7ff521d9cf2637cef3f820fa91d983f7fce61eaaa7b23496cc1041')
 
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
 build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
+  cd "${_name}-$pkgver"
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
-  cd "$pkgname-$pkgver"
-  nosetests -v
+  cd "${_name}-$pkgver"
+  pytest -v -c /dev/null tests/
 }
 
 package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
+  cd "${_name}-$pkgver"
+  python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
   install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



More information about the arch-commits mailing list