[arch-commits] Commit in python-backcall/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at archlinux.org
Sun Jun 20 05:09:16 UTC 2021
Date: Sunday, June 20, 2021 @ 05:09:15
Author: polyzen
Revision: 965823
archrelease: copy trunk to community-any
Added:
python-backcall/repos/community-any/PKGBUILD
(from rev 965822, python-backcall/trunk/PKGBUILD)
Deleted:
python-backcall/repos/community-any/PKGBUILD
----------+
PKGBUILD | 76 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 42 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-20 05:08:49 UTC (rev 965822)
+++ PKGBUILD 2021-06-20 05:09:15 UTC (rev 965823)
@@ -1,34 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-_name=backcall
-pkgname=python-backcall
-pkgver=0.2.0
-pkgrel=3
-pkgdesc='Backwards compatible callback APIs'
-arch=('any')
-url=https://github.com/takluyver/backcall
-license=('BSD')
-depends=('python')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e')
-
-build() {
- cd $_name-$pkgver
- python setup.py build
-}
-
-check() {
- cd $_name-$pkgver
- mkdir -p temp
- local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
- python setup.py install --skip-build --root=temp
- PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" python tests/test_callback_prototypes.py
-}
-
-package() {
- cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-backcall/repos/community-any/PKGBUILD (from rev 965822, python-backcall/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-06-20 05:09:15 UTC (rev 965823)
@@ -0,0 +1,42 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=backcall
+pkgname=python-backcall
+pkgver=0.2.0
+pkgrel=4
+pkgdesc='Backwards compatible callback APIs'
+arch=('any')
+url=https://github.com/takluyver/backcall
+license=('BSD')
+depends=('python')
+makedepends=('python-build' 'python-flit-core' 'python-install')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e')
+b2sums=('67f9ac96d26b368972a5749775a70c497b5705b37d45ba7f64c1259be776cc7f4c9d78ae51da9c1e9e46521d33bf511790675688feef88a68d25ae30cd79612d')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_name-$pkgver
+ mkdir -p temp
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ python -m install --optimize=1 --destdir=temp dist/*.whl
+ PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" python tests/test_callback_prototypes.py
+}
+
+package() {
+ cd $_name-$pkgver
+ export PYTHONHASHSEED=0
+ python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s $site_packages/$_name-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list