[arch-commits] Commit in python-calmjs.parse/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Wed Jul 15 22:03:50 UTC 2020
Date: Wednesday, July 15, 2020 @ 22:03:49
Author: dvzrv
Revision: 664018
archrelease: copy trunk to community-any
Added:
python-calmjs.parse/repos/community-any/PKGBUILD
(from rev 664017, python-calmjs.parse/trunk/PKGBUILD)
Deleted:
python-calmjs.parse/repos/community-any/PKGBUILD
----------+
PKGBUILD | 90 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 46 insertions(+), 44 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-15 22:03:41 UTC (rev 664017)
+++ PKGBUILD 2020-07-15 22:03:49 UTC (rev 664018)
@@ -1,44 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=calmjs.parse
-pkgname=python-calmjs.parse
-pkgver=1.2.5
-pkgrel=2
-pkgdesc="Various parsers for ECMA standards"
-arch=('any')
-url="https://github.com/calmjs/calmjs.parse"
-license=('MIT')
-depends=('python-ply')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.zip")
-sha512sums=('3614c1f495fa1ca746a8dd0813629da14115f4ef401176e389515239700849770b7c408d2ebdf55c8286dbde0b8f1b711f7ec4e4f3858f0477b39455a50bbe5a')
-b2sums=('9e3f81a99cf346b4ff61fa8f97bc3fa4c667d7dece38c47c512931508d5592b82143b0507e8e5190f2dd07f3596b6d146a90e59bad1a1c44d8f398a51ff0fb48')
-
-prepare() {
- mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$pkgname-$pkgver"
- export PYTHONPATH="build:${PYTHONPATH}"
- pytest -v
- # remove files created by tests, making package unreproducible:
- # https://github.com/calmjs/calmjs.parse/issues/34
- rm -v src/calmjs/parse/parsers/{lex,yacc}tab_es5_py3_ply3_11.py
-}
-
-package() {
- cd "$pkgname-$pkgver"
- export PYTHONHASHSEED=0
- python setup.py install --skip-build \
- --optimize=1 \
- --root="${pkgdir}"
- install -vDm 644 {CHANGES,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
Copied: python-calmjs.parse/repos/community-any/PKGBUILD (from rev 664017, python-calmjs.parse/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-07-15 22:03:49 UTC (rev 664018)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=calmjs.parse
+pkgname=python-calmjs.parse
+pkgver=1.2.5
+pkgrel=3
+pkgdesc="Various parsers for ECMA standards"
+arch=('any')
+url="https://github.com/calmjs/calmjs.parse"
+license=('MIT')
+depends=('python-ply=3.11')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.zip")
+sha512sums=('3614c1f495fa1ca746a8dd0813629da14115f4ef401176e389515239700849770b7c408d2ebdf55c8286dbde0b8f1b711f7ec4e4f3858f0477b39455a50bbe5a')
+b2sums=('9e3f81a99cf346b4ff61fa8f97bc3fa4c667d7dece38c47c512931508d5592b82143b0507e8e5190f2dd07f3596b6d146a90e59bad1a1c44d8f398a51ff0fb48')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+ # generate symbol tables required for lex and yacc
+ # this requires version pinning towards python-ply!
+ PYTHONPATH="src:${PYTHONPATH}" \
+ python -m calmjs.parse.parsers.optimize
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ PYTHONDONTWRITEBYTECODE=1 pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ export PYTHONHASHSEED=0
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --root="${pkgdir}"
+ install -vDm 644 {CHANGES,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list