Date: Tuesday, January 31, 2023 @ 20:20:31
  Author: felixonmars
Revision: 1391534

upgpkg: python-pytest-subtests 0.9.0-2

Modified:
  python-pytest-subtests/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:19:32 UTC (rev 1391533)
+++ PKGBUILD    2023-01-31 20:20:31 UTC (rev 1391534)
@@ -2,33 +2,32 @@
 
 pkgname=python-pytest-subtests
 pkgver=0.9.0
-pkgrel=1
+_commit=bc84f33580ebf0594267ab902f8c7d832c58a9be
+pkgrel=2
 pkgdesc='unittest subTest() support and subtests fixture'
 arch=('any')
 license=('MIT')
 url='https://github.com/pytest-dev/pytest-subtests'
 depends=('python-pytest')
-makedepends=('python-setuptools-scm')
-source=("https://github.com/pytest-dev/pytest-subtests/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('f1bc2b99e6f04864cdc45675574d32821fd5e08c01c937bddc846ac509cd8906d21ee63b11e9e8a87c2631334541e9adc601a7dd69702572d51c3d4b72443ad2')
+makedepends=('git' 'python-setuptools-scm')
+source=("git+https://github.com/pytest-dev/pytest-subtests.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 build() {
-  cd pytest-subtests-$pkgver
+  cd pytest-subtests
   python setup.py build
 }
 
 check() {
-  cd pytest-subtests-$pkgver
+  cd pytest-subtests
   python setup.py egg_info
   PYTHONPATH="$PWD" pytest
 }
 
 package() {
-  cd pytest-subtests-$pkgver
+  cd pytest-subtests
   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/
 }
 
 # vim:set ts=2 sw=2 et:

Reply via email to