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

David Runge dvzrv at gemini.archlinux.org
Thu Feb 3 09:16:18 UTC 2022


    Date: Thursday, February 3, 2022 @ 09:16:18
  Author: dvzrv
Revision: 1124078

upgpkg: python-inflect 5.4.0-1: Upgrade to 5.4.0.

Simplify quoting in file.
Remove unneeded prepare().

Modified:
  python-inflect/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-03 09:13:40 UTC (rev 1124077)
+++ PKGBUILD	2022-02-03 09:16:18 UTC (rev 1124078)
@@ -2,41 +2,33 @@
 
 _name=inflect
 pkgname=python-inflect
-pkgver=5.3.0
-pkgrel=4
+pkgver=5.4.0
+pkgrel=1
 pkgdesc="Correctly generate plurals, singular nouns, ordinals, indefinite articles"
-arch=('any')
+arch=(any)
 url="https://github.com/jazzband/inflect"
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools-scm' 'python-toml')
-checkdepends=('python-pytest')
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools-scm python-toml)
+checkdepends=(python-pytest)
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('f5baf65fb7a6ba59c91a36a17acb0abda3efc74fef56b3a3d99c100b2c6e94c5aafb08ab37310ce410631ac928e9c24a4a4c5e6b5c7d8f907c3d999f4a70cce4')
-b2sums=('20c591012a5a6692c3da3a39f4aeaaae290da5ba723af5c9ac90f7d28112a1894acf082633f8f673f6d903f756b9bb70c6c3366762e872cf7ca6c6d5edf1c99c')
+sha512sums=('48b7d38faf41b3f682226b66ea5493b7d4ff58a8db52c9b90092fc329aee761b090791deeda24234b9f9fa47d8db9b499e1f4304367ef3637c441959e8b8d005')
+b2sums=('60898e019c04b9d86a1591c341f48e7e3093eaa4f93bb4f902f4d405f1151d705f902b792028ca97a85ed47ffe509bab758b3ec74878ec82f5dac3c953197ca0')
 
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  # we don't do linting
-  sed '/addopts/d' -i pytest.ini
-}
-
 build() {
-  cd "$pkgname-$pkgver"
+  cd "${_name}-$pkgver"
   python setup.py build
 }
 
 check() {
-  cd "$pkgname-$pkgver"
+  cd "${_name}-$pkgver"
   export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v
+  pytest -v -c /dev/null
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd "${_name}-$pkgver"
   python setup.py install --optimize=1 --root="${pkgdir}"
-  install -vDm 644 {CHANGES,README}.rst \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 {CHANGES,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