[arch-commits] Commit in python-pyphen/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Tuesday, December 28, 2021 @ 19:32:37
  Author: dvzrv
Revision: 1086438

archrelease: copy trunk to community-any

Added:
  python-pyphen/repos/community-any/PKGBUILD
    (from rev 1086437, python-pyphen/trunk/PKGBUILD)
Deleted:
  python-pyphen/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   70 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 32 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-28 19:32:05 UTC (rev 1086437)
+++ PKGBUILD	2021-12-28 19:32:37 UTC (rev 1086438)
@@ -1,38 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=pyphen
-pkgname=python-pyphen
-pkgver=0.11.0
-pkgrel=3
-pkgdesc="Pure Python module to hyphenate text"
-arch=('any')
-url="https://pyphen.org/"
-license=('GPL2' 'LGPL2.1' 'MPL')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-nose')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('49f510cdc00af479054c64380de8fb5722e2c99a3cf0f882c4b78b82c80300b6cb28c53c593a091e358eae662b28a50ac6e63afb8d57f2adf5c03e5a7f879c68')
-b2sums=('9da03e913915e2b4719dc4c00f0f0c808e5e81732021e5ae00e70b02c15edd5d97849618e5b2f2f8d9c685c92debad4952848a9573f82194aa34ac2133cd42d1')
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  nosetests -v
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-pyphen/repos/community-any/PKGBUILD (from rev 1086437, python-pyphen/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-28 19:32:37 UTC (rev 1086438)
@@ -0,0 +1,32 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pyphen
+pkgname=python-pyphen
+pkgver=0.12.0
+pkgrel=1
+pkgdesc="Pure Python module to hyphenate text"
+arch=(any)
+url="https://pyphen.org/"
+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=('144218b8d5454fffc16de0c839c93a0badadd5c9b7867195072b77d9130440059ec84b5819d7eed12b65d2cc51cb7202226cb44ef6844f18fa428c4b3a1ef2b5')
+b2sums=('979f29051e65ea1411ce013760f4d7facfa87daac1d5325976a8fed7d6335eebaa14bc2d0f7ff521d9cf2637cef3f820fa91d983f7fce61eaaa7b23496cc1041')
+
+build() {
+  cd "${_name}-$pkgver"
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd "${_name}-$pkgver"
+  pytest -v -c /dev/null tests/
+}
+
+package() {
+  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