Date: Wednesday, February 8, 2023 @ 17:34:00
  Author: felixonmars
Revision: 1396226

upgpkg: python-testfixtures 7.1.0-1

Modified:
  python-testfixtures/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-08 17:33:37 UTC (rev 1396225)
+++ PKGBUILD    2023-02-08 17:34:00 UTC (rev 1396226)
@@ -1,7 +1,8 @@
 # Maintainer: Felix Yan <[email protected]>
 
 pkgname=python-testfixtures
-pkgver=7.0.4
+pkgver=7.1.0
+_commit=3f5500aa9b4fabb138a1dc0e132369df61403882
 pkgrel=1
 pkgdesc="A collection of helpers and mock objects that are useful when writing 
unit tests or doc tests"
 arch=('any')
@@ -8,24 +9,24 @@
 license=('MIT')
 url="https://github.com/Simplistix/testfixtures";
 depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-zope-component' 'python-sybil'
+makedepends=('git' 'python-setuptools')
+checkdepends=('python-pytest' 'python-zope-component' 'python-sybil'
               'python-pytest-django' 'python-django' 'python-twisted')
-source=("https://github.com/Simplistix/testfixtures/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('30f51a7ff7511ac92998228ddd8778798759668659d544b43738c602a9ac66a50dcab002e694a42fdbb8fadb40b9a1e85dd6d3fc7e560625d87e248561889701')
+source=("git+https://github.com/Simplistix/testfixtures.git#commit=$_commit";)
+sha512sums=('SKIP')
 
 build() {
-  cd  testfixtures-$pkgver
+  cd testfixtures
   python setup.py build
 }
 
 check() {
-  cd  testfixtures-$pkgver
-  python setup.py pytest --addopts "--ignore=build"
+  cd testfixtures
+  PYTHONPATH="$PWD" pytest --ignore=build
 }
 
 package() {
-  cd testfixtures-$pkgver
+  cd testfixtures
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 docs/license.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to