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

upgpkg: python-asteval 0.9.28-2

Modified:
  python-asteval/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:16:20 UTC (rev 1391531)
+++ PKGBUILD    2023-01-31 20:19:20 UTC (rev 1391532)
@@ -2,31 +2,30 @@
 
 pkgname=python-asteval
 pkgver=0.9.28
-pkgrel=1
+_commit=4af02f779ea4309f94d763560f522d2f8a794c32
+pkgrel=2
 pkgdesc="Minimalistic evaluator of python expression using ast module"
 url="https://github.com/newville/asteval";
 license=('MIT')
 arch=('any')
 depends=('python')
-makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
 checkdepends=('python-pytest-cov' 'python-numpy')
-source=("https://github.com/newville/asteval/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('108652594a0eaaf009b8652ced9000ef7454d8f33fe844e74fb1dd78a2ead42a60d5ba68845c8d9c9d8570a70b5958519a6350d77c66257a7fa18de23802c3b0')
+source=("git+https://github.com/newville/asteval.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 build() {
-  cd asteval-$pkgver
+  cd asteval
   python -m build -nw
 }
 
 check() {
-  cd asteval-$pkgver
+  cd asteval
   python -m pytest
 }
 
 package() {
-  cd asteval-$pkgver
+  cd asteval
   python -m installer -d "$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to