Date: Wednesday, March 29, 2023 @ 04:11:00
  Author: felixonmars
Revision: 1430166

upgpkg: python-testtools 2.6.0-1

Modified:
  python-testtools/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++-------------------
 1 file changed, 11 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-29 04:09:40 UTC (rev 1430165)
+++ PKGBUILD    2023-03-29 04:11:00 UTC (rev 1430166)
@@ -1,39 +1,31 @@
 # Maintainer: Felix Yan <[email protected]>
 
 pkgname=python-testtools
-pkgver=2.5.0
-pkgrel=3
+pkgver=2.6.0
+_commit=280f4272832861cf35aec27d3857669d1053e8a8
+pkgrel=1
 pkgdesc="Extensions to the Python standard library unit testing framework"
 arch=('any')
 license=('MIT')
 url="https://github.com/testing-cabal/testtools";
-depends=('python-pbr' 'python-extras' 'python-fixtures')
-makedepends=('python-setuptools')
+depends=('python-pbr' 'python-fixtures')
+makedepends=('git' 'python-setuptools')
 checkdepends=('python-testscenarios')
-source=("https://github.com/testing-cabal/testtools/archive/$pkgver/$pkgname-$pkgver.tar.gz";
-        
$pkgname-python310.patch::https://github.com/testing-cabal/testtools/commit/ec9bb7ed0265.patch)
-sha512sums=('81e2a31f34461aefa52a553966deb979e2cc8632c0fe2b87640925958d403598e45a3a16eb35d583894fac507670b349cebae002ae5376185e86032ebfb5da80'
-            
'd1e9763a3fa5ef66666f28687e5c798c2d92c6eb73f702f216b125ef15f5eb10e100da8836e81a6dc0748f1cb8887c92647a29f0e615413d5c371653910f0573')
+source=("git+https://github.com/testing-cabal/testtools.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export PBR_VERSION=$pkgver
-
-prepare() {
-  cd testtools-$pkgver
-  patch -Np1 -i ../$pkgname-python310.patch
-}
-
 build() {
-  cd testtools-$pkgver
+  cd testtools
   python setup.py build
 }
 
 check() {
-  cd testtools-$pkgver
+  cd testtools
   python -m testtools.run testtools.tests.test_suite
 }
 
 package() {
-  cd testtools-$pkgver
+  cd testtools
   python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to