Date: Tuesday, January 31, 2023 @ 20:19:32
Author: felixonmars
Revision: 1391533
archrelease: copy trunk to community-any
Added:
python-asteval/repos/community-any/PKGBUILD
(from rev 1391532, python-asteval/trunk/PKGBUILD)
Deleted:
python-asteval/repos/community-any/PKGBUILD
----------+
PKGBUILD | 63 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 31 insertions(+), 32 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-31 20:19:20 UTC (rev 1391532)
+++ PKGBUILD 2023-01-31 20:19:32 UTC (rev 1391533)
@@ -1,32 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-asteval
-pkgver=0.9.28
-pkgrel=1
-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')
-checkdepends=('python-pytest-cov' 'python-numpy')
-source=("https://github.com/newville/asteval/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('108652594a0eaaf009b8652ced9000ef7454d8f33fe844e74fb1dd78a2ead42a60d5ba68845c8d9c9d8570a70b5958519a6350d77c66257a7fa18de23802c3b0')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
- cd asteval-$pkgver
- python -m build -nw
-}
-
-check() {
- cd asteval-$pkgver
- python -m pytest
-}
-
-package() {
- cd asteval-$pkgver
- python -m installer -d "$pkgdir" dist/*.whl
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: python-asteval/repos/community-any/PKGBUILD (from rev 1391532,
python-asteval/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-31 20:19:32 UTC (rev 1391533)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-asteval
+pkgver=0.9.28
+_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=('git' 'python-build' 'python-installer' 'python-setuptools-scm'
'python-wheel')
+checkdepends=('python-pytest-cov' 'python-numpy')
+source=("git+https://github.com/newville/asteval.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd asteval
+ python -m build -nw
+}
+
+check() {
+ cd asteval
+ python -m pytest
+}
+
+package() {
+ cd asteval
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}