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

David Runge dvzrv at gemini.archlinux.org
Wed Sep 22 17:11:09 UTC 2021


    Date: Wednesday, September 22, 2021 @ 17:11:08
  Author: dvzrv
Revision: 1021647

upgpkg: python-natsort 7.1.1-2: Rebuild to apply python package guidelines.

Demote python-setuptools to makedepends.
Simplify installation in package() to adhere to python packaging guidelines.

Modified:
  python-natsort/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-22 17:09:15 UTC (rev 1021646)
+++ PKGBUILD	2021-09-22 17:11:08 UTC (rev 1021647)
@@ -3,12 +3,13 @@
 _name=natsort
 pkgname=python-natsort
 pkgver=7.1.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Simple yet flexible natural sorting in Python"
 arch=('any')
 url="https://github.com/SethMMorton/natsort"
 license=('MIT')
-depends=('python-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 checkdepends=('python-hypothesis' 'python-mock' 'python-pytest-mock')
 optdepends=('python-fastnumbers: more efficient sorting'
             'python-pyicu: sort in locale dependant manner')
@@ -33,9 +34,7 @@
 
 package() {
   cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
+  python setup.py install --optimize=1 --root="${pkgdir}"
   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -vDm 644 {CHANGELOG.md,README.rst} \
     -t "${pkgdir}/usr/share/doc/${pkgname}"



More information about the arch-commits mailing list