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

Felix Yan felixonmars at gemini.archlinux.org
Fri Feb 25 15:35:48 UTC 2022


    Date: Friday, February 25, 2022 @ 15:35:47
  Author: felixonmars
Revision: 1136592

upgpkg: python-testfixtures 6.18.4-1

Modified:
  python-testfixtures/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-25 15:26:23 UTC (rev 1136591)
+++ PKGBUILD	2022-02-25 15:35:47 UTC (rev 1136592)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-testfixtures
-pkgver=6.18.3
-pkgrel=3
+pkgver=6.18.4
+pkgrel=1
 pkgdesc="A collection of helpers and mock objects that are useful when writing unit tests or doc tests"
 arch=('any')
 license=('MIT')
@@ -11,23 +11,16 @@
 makedepends=('python-setuptools')
 checkdepends=('python-pytest-runner' 'python-zope-component' 'python-sybil'
               'python-pytest-django' 'python-django' 'python-twisted')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz"
-        'tests-fix-with-python-3-10.patch::https://github.com/simplistix/testfixtures/commit/8fb2122eea0f1d0de1ccca7a3a0f5426bc6d4964.patch')
-sha512sums=('1fdd3e8a9dc39be00ebb707c4febb30f4975e7c2c83d6edead14f180bb6171b8cd2625acf0f6285c1ecf5ea56ee3c1e40317a9c47fa0b01fd525303816ced69c'
-            'd91b46005525cbefa2100eee25720b1229c6ca8213aaf36578635ffc82edc50aeef278d8e009d13bdb14ab791d7969b5fd39ae70fb2becce8f255edee1256792')
+source=("https://github.com/Simplistix/testfixtures/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('79d7fc9f66c6dc1663cf996dbc20c10b4ecf9f5bbe9dea19b80ba89e0fc632c8dc42a7d05c59774e44b8d717bcc5ea6cf35648dd5c869f0a1d858900957654c0')
 
-prepare() {
-  cd "$srcdir"/testfixtures-$pkgver
-  patch -p1 <"$srcdir"/tests-fix-with-python-3-10.patch
-}
-
 build() {
-  cd "$srcdir"/testfixtures-$pkgver
+  cd  testfixtures-$pkgver
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/testfixtures-$pkgver
+  cd  testfixtures-$pkgver
   python setup.py pytest --addopts "--ignore=build"
 }
 
@@ -34,5 +27,5 @@
 package() {
   cd testfixtures-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+  install -Dm644 docs/license.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



More information about the arch-commits mailing list