Date: Tuesday, January 31, 2023 @ 20:23:48
  Author: felixonmars
Revision: 1391542

upgpkg: python-tenacity 8.1.0-2

Modified:
  python-tenacity/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:21:48 UTC (rev 1391541)
+++ PKGBUILD    2023-01-31 20:23:48 UTC (rev 1391542)
@@ -2,7 +2,8 @@
 
 pkgname=python-tenacity
 pkgver=8.1.0
-pkgrel=1
+_commit=014b8e6c39d0052d9bb80ad85bae9a390d1aad09
+pkgrel=2
 pkgdesc='Retry code until it succeeeds'
 arch=('any')
 license=('Apache')
@@ -9,24 +10,22 @@
 url='https://github.com/jd/tenacity'
 depends=('python')
 optdepends=('python-tornado: for Tornado coroutines support')
-makedepends=('python-setuptools-scm')
+makedepends=('git' 'python-setuptools-scm')
 checkdepends=('python-pytest-runner' 'python-tornado' 'python-typeguard')
-source=("https://github.com/jd/tenacity/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('cb81b6f6fdea4834483681544d138de6464ec94fc8464af898d3a8e9003a215aba0a3f7ce897f48e8f4948c26f1e7bc6548a16c7c7f3f784eb34e94de96223f1')
+source=("git+https://github.com/jd/tenacity.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 build() {
-  cd tenacity-$pkgver
+  cd tenacity
   python setup.py build
 }
 
 check() {
-  cd tenacity-$pkgver
+  cd tenacity
   python setup.py pytest
 }
 
 package() {
-  cd tenacity-$pkgver
+  cd tenacity
   python setup.py install --root="$pkgdir" --optimize=1
 }

Reply via email to