Date: Thursday, March 2, 2023 @ 20:30:50
Author: dvzrv
Revision: 1407453
archrelease: copy trunk to community-any
Added:
python-calmjs/repos/community-any/PKGBUILD
(from rev 1407452, python-calmjs/trunk/PKGBUILD)
Deleted:
python-calmjs/repos/community-any/PKGBUILD
----------+
PKGBUILD | 83 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 41 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-02 20:30:38 UTC (rev 1407452)
+++ PKGBUILD 2023-03-02 20:30:50 UTC (rev 1407453)
@@ -1,42 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=calmjs
-pkgname=python-calmjs
-pkgver=3.4.2
-pkgrel=3
-pkgdesc="framework for building toolchains and utilities for working with the
JavaScript/Node.js ecosystem"
-arch=('any')
-url="https://github.com/calmjs/calmjs"
-license=('GPL2')
-depends=('python-calmjs.parse' 'python-calmjs.types' 'python-setuptools')
-checkdepends=('npm' 'python-pytest' 'yarn')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.zip")
-sha512sums=('7730a392acb511227fc455774557ed74286aeea71d94f3fe53588dd5119d9bd90c43a49999a324d83dda8ed0d1282d4d2d9b0263b4ad5b853ea8669a87a68919')
-b2sums=('436d85e40882902f9c0b4efe338124eff6a401e46d187a554d1d3b7621929f2e682a662d1beb8bc3b8d404d96dbf857d92f4b8daacbb30fe072debf3d0ca7416')
-
-prepare() {
- mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-check() {
- local test_dir="test_dir"
- local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
-
- cd "$pkgname-$pkgver"
- python setup.py install --optimize=1 --root="${test_dir}"
- # remove unnecessary tests:
- # https://github.com/calmjs/calmjs/issues/60
- find "${test_dir}" -type f -iname "*test_dist.py" -delete
- PATH="${test_dir}/usr/bin:${PATH}"
PYTHONPATH="${test_dir}/${site_packages}:${PWD}:${PYTHONPATH}" python -Wignore
-m unittest calmjs.tests.make_suite
-}
-
-package() {
- cd "$pkgname-$pkgver"
- python setup.py install --optimize=1 --root="${pkgdir}"
- install -vDm 644 {CHANGES,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
Copied: python-calmjs/repos/community-any/PKGBUILD (from rev 1407452,
python-calmjs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-03-02 20:30:50 UTC (rev 1407453)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=calmjs
+pkgname=python-calmjs
+pkgver=3.4.3
+pkgrel=1
+pkgdesc="Framework for building toolchains and utilities for working with the
JavaScript/Node.js ecosystem"
+arch=(any)
+url="https://github.com/calmjs/calmjs"
+license=(GPL2)
+depends=(python python-calmjs.parse python-calmjs.types python-setuptools)
+makedepends=(python-build python-installer python-wheel)
+checkdepends=(npm yarn)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.zip)
+sha512sums=('3fac1089a4743466dbc41c7963b0e9bdb64ef369a96420bfb3dea4070be5b5b9bb86109e70cc93983762bf1911a1d5dce11dd5870fbd3c939c6778e9a787bcc9')
+b2sums=('7b081a58574810addf863cd0a400bc2142c5589ad68e3d5aef407d260f694e986b854db45cd8f37ad15541a78f934b36a671b9874a928559b9b23de055ce61dd')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+
+ cd $_name-$pkgver
+ python -m installer --destdir=test_dir dist/*.whl
+ export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH"
+
+ # remove broken tests:
+ # https://github.com/calmjs/calmjs/issues/66
+ rm -vf src/$_name/tests/test_{command,npm,yarn}.py
+
+ python -m unittest discover -vs src/$_name/tests/
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 {CHANGES,README}.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+}