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

David Runge dvzrv at archlinux.org
Fri Jan 15 09:00:41 UTC 2021


    Date: Friday, January 15, 2021 @ 09:00:41
  Author: dvzrv
Revision: 820984

upgpkg: python-utils 2.5.0-1: Upgrade to 2.5.0.

Apply upstream provided patch to prevent tests from being installed top-level.

Modified:
  python-utils/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-15 08:45:19 UTC (rev 820983)
+++ PKGBUILD	2021-01-15 09:00:41 UTC (rev 820984)
@@ -4,8 +4,8 @@
 
 pkgdesc="A module with some convenient utilities not included with the standard Python install"
 pkgname=python-utils
-pkgver=2.4.0
-pkgrel=3
+pkgver=2.5.0
+pkgrel=1
 url="https://github.com/WoLpH/python-utils"
 license=('BSD')
 arch=('any')
@@ -12,13 +12,21 @@
 depends=('python-six')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest-runner')
-source=("https://pypi.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc})
-sha512sums=('bfad0ef30383df634b89bb2206a00e45434eff9fee9ba0eeab99361bacfb56f3fb420019608b639713a7e8777870de75becb1d7b48aa09c582df27f9ebe8c512'
-            'SKIP')
+source=("https://pypi.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc}
+        "${pkgname}-2.5.0-installation.patch::https://github.com/dvzrv/python-utils/commit/632a90dfbf9195cb67ea9e8c7248b31ecf88af6d.patch"
+)
+sha512sums=('d43aa1ddb20120d467c6d260f0dd495867596da2dcf9df8c83912bf79b76c51789060c27c5eb716bcb0198cc32343a349c19002ca3f1e509bb630fdb9df4dc29'
+            'SKIP'
+            'bdd46cd478d25862b528a1a1808faa5b5016ec6ce40bddcda58bb021d808da54a832acb4aa80105abed8fd3103a61ed1c9b8c86b767b197eecdce052a73fe9fb')
+b2sums=('fc357546754e4b3f06090f4a9e88e4352315fd692a360b592806e1c1eaea4042d483936fb0b810945d98d0c5bb07dbc08286bcff153aa14d4744adb05f70c1b0'
+        'SKIP'
+        'f4e935d8db37b146e28b669e6bae7a12114f1362f6a1c4195ad52996bd8776ad5e768908185b47101cd1257ebf6a48f2954eed6c6fc8f0bc9fa086fd7d2211f5')
 validpgpkeys=('149325FD15904E9C4EB89E95E81444E9CE1F695D') # Rick van Hattem <wolph at wol.ph>
 
 prepare() {
   cd "${pkgname}-${pkgver}"
+  # prevent tests from being installed globally
+  patch -Np1 -i "../${pkgname}-2.5.0-installation.patch"
   # don't care about custom pytest flags
   rm -v pytest.ini
 }
@@ -38,7 +46,6 @@
   cd "${pkgname}-${pkgver}"
   python setup.py install --skip-build \
                           --optimize=1 \
-                          --prefix=/usr \
                           --root="${pkgdir}"
   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"



More information about the arch-commits mailing list