[arch-commits] Commit in hy/trunk (PKGBUILD)

Morten Linderud foxboron at gemini.archlinux.org
Sat Dec 4 13:17:36 UTC 2021


    Date: Saturday, December 4, 2021 @ 13:17:36
  Author: foxboron
Revision: 1065028

upgpkg: hy 1.0a3-1

Modified:
  hy/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-04 12:49:55 UTC (rev 1065027)
+++ PKGBUILD	2021-12-04 13:17:36 UTC (rev 1065028)
@@ -2,7 +2,7 @@
 # Contributor: JP Cimalando <jp-dev at inbox.ru>
 
 pkgname=hy
-pkgver=0.20.0
+pkgver=1.0a3
 pkgrel=1
 pkgdesc="A dialect of Lisp that's embedded in Python"
 arch=('any')
@@ -11,8 +11,10 @@
 depends=('python-rply' 'python-astor' 'python-funcparserlib' 'python-colorama')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest' 'python-pytest-runner')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/hylang/hy/archive/$pkgver.tar.gz")
-sha256sums=('d4a96426e5367e170b3c245e3fa222c99f04d3f646e037c6f45b58376ad88020')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hylang/hy/archive/$pkgver.tar.gz"
+	"fix-linetable.patch::https://github.com/hylang/hy/commit/b04d3ddbf98e6c7b39979ce15f678bfc64f98e56.patch")
+sha256sums=('cfc1d554c7859016794e33adf8093129de1c7d8c999a633e2ea7e654d487c555'
+            '7642e8306fdb8d8a24cb42923e46732766c8adcd30d6903627b6efaee7d88dfe')
 
 prepare() {
     cd "$pkgname-$pkgver"
@@ -20,6 +22,7 @@
     # usually generated from git metadata and aded to PyPI sdist
     # PyPI does not include testsuite files.
     echo "__version__ = '$pkgver'" > hy/version.py
+    patch -Np1 < "$srcdir/fix-linetable.patch"
 }
 
 build() {
@@ -32,17 +35,15 @@
 
     python setup.py develop --user
     PATH="$HOME/.local/bin:$PATH"
-    python setup.py pytest #--addopts "-k 'not test_bin'"
+    pytest
 
     # Hy does magic to the bytecode, but we need this gone from check.
     # this should be generated as part of the build step
     for file in hy/contrib/__pycache__/__init__.cpython-*.pyc \
-	hy/contrib/__pycache__/hy_repr.cpython-*.pyc \
 	hy/contrib/__pycache__/loop.cpython-*.pyc \
 	hy/contrib/__pycache__/sequences.cpython-*.pyc \
 	hy/contrib/__pycache__/walk.cpython-*.pyc \
 	hy/core/__pycache__/__init__.cpython-*.pyc \
-	hy/core/__pycache__/bootstrap.cpython-*.pyc \
 	hy/core/__pycache__/language.cpython-*.pyc \
 	hy/core/__pycache__/macros.cpython-*.pyc \
 	hy/core/__pycache__/shadow.cpython-*.pyc \
@@ -50,7 +51,7 @@
 	hy/extra/__pycache__/anaphoric.cpython-*.pyc \
 	hy/extra/__pycache__/reserved.cpython-*.pyc
     do
-        rm "$file"
+        rm "$file" || true
     done
 
 }



More information about the arch-commits mailing list