Date: Tuesday, November 8, 2022 @ 13:02:19
Author: felixonmars
Revision: 1345932
archrelease: copy trunk to community-any
Added:
python-asteval/repos/community-any/PKGBUILD
(from rev 1345931, python-asteval/trunk/PKGBUILD)
Deleted:
python-asteval/repos/community-any/PKGBUILD
----------+
PKGBUILD | 65 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 32 insertions(+), 33 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-08 13:02:04 UTC (rev 1345931)
+++ PKGBUILD 2022-11-08 13:02:19 UTC (rev 1345932)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-asteval
-pkgver=0.9.27
-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-setuptools-scm')
-checkdepends=('python-pytest-cov' 'python-numpy')
-source=("https://github.com/newville/asteval/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('9cabe702d74f5ea3dbce3273f60628ccec7df106d9753fbfa0f10b9575ce349ba14565f838398938ef9fb9a18905561ca6c616e59e4f2f2b7babd1e5472c8f57')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
- cd asteval-$pkgver
- python setup.py build
-}
-
-check() {
- cd asteval-$pkgver
- python -m pytest
-}
-
-package() {
- cd asteval-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: python-asteval/repos/community-any/PKGBUILD (from rev 1345931,
python-asteval/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-08 13:02:19 UTC (rev 1345932)
@@ -0,0 +1,32 @@
+# 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/
+}