[arch-commits] Commit in python-click-log/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sun Sep 4 18:38:01 UTC 2022
Date: Sunday, September 4, 2022 @ 18:38:00
Author: polyzen
Revision: 1292870
archrelease: copy trunk to community-any
Added:
python-click-log/repos/community-any/PKGBUILD
(from rev 1292869, python-click-log/trunk/PKGBUILD)
Deleted:
python-click-log/repos/community-any/PKGBUILD
----------+
PKGBUILD | 77 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 42 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-04 18:37:41 UTC (rev 1292869)
+++ PKGBUILD 2022-09-04 18:38:00 UTC (rev 1292870)
@@ -1,35 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
-
-_name=click-log
-pkgname=python-click-log
-pkgver=0.4.0
-pkgrel=1
-pkgdesc="Logging integration for Click"
-arch=(any)
-url="https://github.com/click-contrib/click-log"
-license=(MIT)
-depends=(python-click)
-makedepends=(python-setuptools)
-checkdepends=(python-pytest)
-source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-sha512sums=('95d3cb2fa9821e4f58b25072f39d34f21fe4a7600923f59f4b57b92dbcd9fa2584d710de1d4a1aa2a757c048398342aabbb1b5ab32cf4128ccecee10f9f15a5a')
-b2sums=('8a7ce0c2a7617253f08d011958bce158e987faa0008065c9dac382d46b905cc88cd5cb19d0d0859bf522da6448f7c9a20c0a8efe53b3feb5efc9ca3f64cfbc27')
-
-build() {
- cd $_name-$pkgver
- python setup.py build
-}
-
-check() {
- cd $_name-$pkgver
- export PYTHONPATH="build:$PYTHONPATH"
- pytest -v
-}
-
-package() {
- cd $_name-$pkgver
- python setup.py install --optimize=1 --root="$pkgdir"
- install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
- install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
-}
Copied: python-click-log/repos/community-any/PKGBUILD (from rev 1292869, python-click-log/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-04 18:38:00 UTC (rev 1292870)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+
+_name=click-log
+pkgname=python-click-log
+pkgver=0.4.0
+pkgrel=2
+pkgdesc="Logging integration for Click"
+arch=('any')
+url="https://github.com/click-contrib/click-log"
+license=('MIT')
+depends=('python-click')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('3970f8570ac54491237bcdb3d8ab5e3eef6c057df29f8c3d1151a51a9c23b975')
+b2sums=('8a7ce0c2a7617253f08d011958bce158e987faa0008065c9dac382d46b905cc88cd5cb19d0d0859bf522da6448f7c9a20c0a8efe53b3feb5efc9ca3f64cfbc27')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_name-$pkgver
+ export PYTHONPATH="build:$PYTHONPATH"
+ pytest -v
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+
+ # 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"/click_log-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list